$search

Fn_trace

Functions

template<typename T1 , typename T2 >
arma_warn_unused T1::elem_type trace (const Glue< T1, T2, glue_times > &X)
 speedup for trace(A*B), where the result of A*B is a square sized matrix
template<typename T1 >
arma_warn_unused T1::elem_type trace (const Op< T1, op_diagmat > &X)
template<typename T1 >
arma_warn_unused T1::elem_type trace (const Base< typename T1::elem_type, T1 > &X)
 Immediate trace (sum of diagonal elements) of a square dense matrix.

Function Documentation

template<typename T1 , typename T2 >
arma_warn_unused T1::elem_type trace ( const Glue< T1, T2, glue_times > &  X  )  [inline]

speedup for trace(A*B), where the result of A*B is a square sized matrix

Definition at line 76 of file fn_trace.hpp.

template<typename T1 >
arma_warn_unused T1::elem_type trace ( const Op< T1, op_diagmat > &  X  )  [inline]

Definition at line 50 of file fn_trace.hpp.

template<typename T1 >
arma_warn_unused T1::elem_type trace ( const Base< typename T1::elem_type, T1 > &  X  )  [inline]

Immediate trace (sum of diagonal elements) of a square dense matrix.

Definition at line 23 of file fn_trace.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


armadillo_matrix
Author(s): Conrad Sanderson - NICTA (www.nicta.com.au), (Wrapper by Sjoerd van den Dries)
autogenerated on Tue Mar 5 12:27:51 2013