Fn_trans


Functions

template<typename T1 >
const Op< T1, op_transtrans (const Base< typename T1::elem_type, T1 > &X)
template<typename eT >
const Op< Row< eT >, op_transtrans (const Row< eT > &X)
template<typename eT >
const Op< Col< eT >, op_transtrans (const Col< eT > &X)
template<typename T1 >
const T1 & trans (const Op< T1, op_trans > &X)
 two consecutive transpose operations cancel each other
template<typename T1 >
const Op< T1, op_diagmattrans (const Op< T1, op_diagmat > &X)
 transpose of a diagonal matrix gives you the original matrix back
template<typename T1 >
const Op< T1, op_htranstrans (const Op< T1, op_conj > &X)
 the transpose of the conjugate of a complex matrix is equivalent to the hermitian transpose

Function Documentation

template<typename T1 >
const Op<T1, op_trans> trans ( const Base< typename T1::elem_type, T1 > &  X  )  [inline]

template<typename eT >
const Op<Row<eT>, op_trans> trans ( const Row< eT > &  X  )  [inline]

Definition at line 35 of file fn_trans.hpp.

00036   {
00037   arma_extra_debug_sigprint();
00038   
00039   return Op<Row<eT>, op_trans>(X);
00040   }

template<typename eT >
const Op<Col<eT>, op_trans> trans ( const Col< eT > &  X  )  [inline]

Definition at line 47 of file fn_trans.hpp.

00048   {
00049   arma_extra_debug_sigprint();
00050   
00051   return Op<Col<eT>, op_trans>(X);
00052   }

template<typename T1 >
const T1& trans ( const Op< T1, op_trans > &  X  )  [inline]

two consecutive transpose operations cancel each other

Definition at line 60 of file fn_trans.hpp.

References Op< T1, op_type >::m.

00061   {
00062   arma_extra_debug_sigprint();
00063   arma_extra_debug_print("trans(): removing op_trans");
00064   
00065   return X.m;
00066   }

template<typename T1 >
const Op<T1, op_diagmat> trans ( const Op< T1, op_diagmat > &  X  )  [inline]

transpose of a diagonal matrix gives you the original matrix back

Definition at line 74 of file fn_trans.hpp.

00075   {
00076   arma_extra_debug_sigprint();
00077   arma_extra_debug_print("trans(): not applying op_trans to diagonal matrix");
00078   
00079   return X;
00080   }

template<typename T1 >
const Op<T1, op_htrans> trans ( const Op< T1, op_conj > &  X  )  [inline]

the transpose of the conjugate of a complex matrix is equivalent to the hermitian transpose

Definition at line 88 of file fn_trans.hpp.

References Op< T1, op_type >::m.

00089   {
00090   arma_extra_debug_sigprint();
00091 
00092   arma_type_check< is_complex<typename T1::elem_type>::value == false >::apply();
00093 
00094   return Op<T1, op_htrans>(X.m);
00095   }