$search

Fn_diagmat

Functions

template<typename T1 >
arma_inline const Op< T1,
op_diagmat
diagmat (const Base< typename T1::elem_type, T1 > &X)
 interpret a matrix or a vector as a diagonal matrix (i.e. off-diagonal entries are zero)

Function Documentation

template<typename T1 >
arma_inline const Op<T1, op_diagmat> diagmat ( const Base< typename T1::elem_type, T1 > &  X  )  [inline]

interpret a matrix or a vector as a diagonal matrix (i.e. off-diagonal entries are zero)

Definition at line 22 of file fn_diagmat.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