unwrap_check< Mat< eT > > Class Template Reference
[Unwrap]

#include <unwrap.hpp>

List of all members.

Public Member Functions

 unwrap_check (const Mat< eT > &A, const Mat< eT > &B)
 unwrap_check (const Mat< eT > &A, const Row< eT > &B)
 unwrap_check (const Mat< eT > &A, const Col< eT > &B)
 unwrap_check (const Mat< eT > &A, const subview< eT > &B)
 unwrap_check (const Mat< eT > &A, const diagview< eT > &B)
 ~unwrap_check ()

Public Attributes

const Mat< eT > * M_local
const Mat< eT > & M


Detailed Description

template<typename eT>
class unwrap_check< Mat< eT > >

Definition at line 386 of file unwrap.hpp.


Constructor & Destructor Documentation

template<typename eT >
unwrap_check< Mat< eT > >::unwrap_check ( const Mat< eT > &  A,
const Mat< eT > &  B 
) [inline]

Definition at line 391 of file unwrap.hpp.

00392     : M_local( (&A == reinterpret_cast<const Mat<eT>*>(&B)) ? new Mat<eT>(A) : 0 )
00393     , M      ( (&A == reinterpret_cast<const Mat<eT>*>(&B)) ? (*M_local)     : A )
00394     {
00395     arma_extra_debug_sigprint();
00396     }

template<typename eT >
unwrap_check< Mat< eT > >::unwrap_check ( const Mat< eT > &  A,
const Row< eT > &  B 
) [inline]

Definition at line 400 of file unwrap.hpp.

00401     : M_local( (&A == reinterpret_cast<const Mat<eT>*>(&B)) ? new Mat<eT>(A) : 0 )
00402     , M      ( (&A == reinterpret_cast<const Mat<eT>*>(&B)) ? (*M_local)     : A )
00403     {
00404     arma_extra_debug_sigprint();
00405     }

template<typename eT >
unwrap_check< Mat< eT > >::unwrap_check ( const Mat< eT > &  A,
const Col< eT > &  B 
) [inline]

Definition at line 409 of file unwrap.hpp.

00410     : M_local( (&A == reinterpret_cast<const Mat<eT>*>(&B)) ? new Mat<eT>(A) : 0 )
00411     , M      ( (&A == reinterpret_cast<const Mat<eT>*>(&B)) ? (*M_local)     : A )
00412     {
00413     arma_extra_debug_sigprint();
00414     }

template<typename eT >
unwrap_check< Mat< eT > >::unwrap_check ( const Mat< eT > &  A,
const subview< eT > &  B 
) [inline]

Definition at line 418 of file unwrap.hpp.

00419     : M_local( (&A == reinterpret_cast<const Mat<eT>*>(&B.m)) ? new Mat<eT>(A) : 0 )
00420     , M      ( (&A == reinterpret_cast<const Mat<eT>*>(&B.m)) ? (*M_local)     : A )
00421     {
00422     arma_extra_debug_sigprint();
00423     }

template<typename eT >
unwrap_check< Mat< eT > >::unwrap_check ( const Mat< eT > &  A,
const diagview< eT > &  B 
) [inline]

Definition at line 427 of file unwrap.hpp.

00428     : M_local( (&A == reinterpret_cast<const Mat<eT>*>(&B.m)) ? new Mat<eT>(A) : 0 )
00429     , M      ( (&A == reinterpret_cast<const Mat<eT>*>(&B.m)) ? (*M_local)     : A )
00430     {
00431     arma_extra_debug_sigprint();
00432     }

template<typename eT >
unwrap_check< Mat< eT > >::~unwrap_check (  )  [inline]

Definition at line 436 of file unwrap.hpp.

00437     {
00438     arma_extra_debug_sigprint();
00439     
00440     if(M_local)
00441       {
00442       delete M_local;
00443       }
00444     }


Member Data Documentation

template<typename eT >
const Mat<eT>* unwrap_check< Mat< eT > >::M_local

Definition at line 448 of file unwrap.hpp.

template<typename eT >
const Mat<eT>& unwrap_check< Mat< eT > >::M

Definition at line 449 of file unwrap.hpp.