Functions

Fn_trans

//! More...

Functions

template<typename T1 >
arma_inline const Op< T1,
op_trans
trans (const Base< typename T1::elem_type, T1 > &X)
template<typename T1 >
arma_inline const T1 & trans (const Op< T1, op_trans > &X)
 two consecutive transpose operations cancel each other
template<typename T1 >
arma_inline const Op< T1,
op_diagmat
trans (const Op< T1, op_diagmat > &X)
 transpose of a diagonal matrix (which is square) does nothing

Detailed Description

//!


Function Documentation

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

two consecutive transpose operations cancel each other

Definition at line 37 of file fn_trans.hpp.

References Op< T1, op_type >::m.

  {
  arma_extra_debug_sigprint();
  arma_extra_debug_print("trans(): removing op_trans");
  
  return X.m;
  }

template<typename T1 >
arma_inline const Op<T1, op_diagmat> trans ( const Op< T1, op_diagmat > &  X  ) 

transpose of a diagonal matrix (which is square) does nothing

Definition at line 51 of file fn_trans.hpp.

  {
  arma_extra_debug_sigprint();
  arma_extra_debug_print("trans(): not applying op_trans to diagonal matrix");
  
  return X;
  }