Classes | Functions
Mat

Classes

class  Mat< eT >
 Dense matrix class. More...
class  Mat_aux

Functions

arma_inline arma_warn_unused eT & Mat< eT >::at (const uword i)
 linear element accessor (treats the matrix as a vector); no bounds check.
arma_inline arma_warn_unused eT Mat< eT >::at (const uword i) const
 linear element accessor (treats the matrix as a vector); no bounds check
arma_inline arma_warn_unused eT & Mat< eT >::at (const uword in_row, const uword in_col)
 element accessor; no bounds check
arma_inline arma_warn_unused eT Mat< eT >::at (const uword in_row, const uword in_col) const
 element accessor; no bounds check
arma_inline arma_warn_unused eT & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::at (const uword i)
 linear element accessor (treats the matrix as a vector); no bounds check.
arma_inline arma_warn_unused eT Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::at (const uword i) const
 linear element accessor (treats the matrix as a vector); no bounds check
arma_inline arma_warn_unused eT & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::at (const uword in_row, const uword in_col)
 element accessor; no bounds check
arma_inline arma_warn_unused eT Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::at (const uword in_row, const uword in_col) const
 element accessor; no bounds check
iterator Mat< eT >::begin ()
const_iterator Mat< eT >::begin () const
col_iterator Mat< eT >::begin_col (const uword col_num)
const_col_iterator Mat< eT >::begin_col (const uword col_num) const
row_iterator Mat< eT >::begin_row (const uword row_num)
const_row_iterator Mat< eT >::begin_row (const uword row_num) const
void Mat< eT >::clear ()
 resets this matrix to an empty matrix
arma_inline subview_col< eT > Mat< eT >::col (const uword col_num)
 creation of subview (column vector)
arma_inline const subview_col< eT > Mat< eT >::col (const uword col_num) const
 creation of subview (column vector)
arma_inline arma_warn_unused eT * Mat< eT >::colptr (const uword in_col)
 returns a pointer to array of eTs for a specified column; no bounds check
arma_inline arma_warn_unused
const eT * 
Mat< eT >::colptr (const uword in_col) const
 returns a pointer to array of eTs for a specified column; no bounds check
arma_inline subview< eT > Mat< eT >::cols (const uword in_col1, const uword in_col2)
 creation of subview (submatrix comprised of specified column vectors)
arma_inline const subview< eT > Mat< eT >::cols (const uword in_col1, const uword in_col2) const
 creation of subview (submatrix comprised of specified column vectors)
 Mat< eT >::const_row_iterator::const_row_iterator (const Mat< eT > &in_M, const uword in_row)
template<typename eT2 >
void Mat< eT >::copy_size (const Mat< eT2 > &m)
 change the matrix (without preserving data) to have the same dimensions as the given matrix
arma_inline diagview< eT > Mat< eT >::diag (const sword in_id=0)
 creation of diagview (diagonal)
arma_inline const diagview< eT > Mat< eT >::diag (const sword in_id=0) const
 creation of diagview (diagonal)
template<typename T1 >
arma_inline subview_elem1< eT, T1 > Mat< eT >::elem (const Base< uword, T1 > &a)
template<typename T1 >
arma_inline const
subview_elem1< eT, T1 > 
Mat< eT >::elem (const Base< uword, T1 > &a) const
bool Mat< eT >::empty () const
 returns true if the matrix has no elements
iterator Mat< eT >::end ()
const_iterator Mat< eT >::end () const
col_iterator Mat< eT >::end_col (const uword col_num)
const_col_iterator Mat< eT >::end_col (const uword col_num) const
row_iterator Mat< eT >::end_row (const uword row_num)
const_row_iterator Mat< eT >::end_row (const uword row_num) const
const MatMat< eT >::eye ()
const MatMat< eT >::eye (const uword in_rows, const uword in_cols)
arma_hot const MatMat< eT >::fill (const eT val)
 fill the matrix with the specified value
arma_hot const Mat< eT > & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fill (const eT val)
 fill the matrix with the specified value
arma_inline Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed ()
arma_inline Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed (const fixed< fixed_n_rows, fixed_n_cols > &X)
template<typename T1 >
 Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed (const Base< eT, T1 > &A)
template<typename T1 , typename T2 >
 Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed (const Base< pod_type, T1 > &A, const Base< pod_type, T2 > &B)
 Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed (eT *aux_mem, const bool copy_aux_mem=true)
 Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed (const eT *aux_mem)
 Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed (const char *text)
 Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed (const std::string &text)
void Mat< eT >::impl_print (const std::string &extra_text) const
void Mat< eT >::impl_print (std::ostream &user_stream, const std::string &extra_text) const
void Mat< eT >::impl_print_trans (const std::string &extra_text) const
 DEPRECATED FUNCTION.
void Mat< eT >::impl_print_trans (std::ostream &user_stream, const std::string &extra_text) const
 DEPRECATED FUNCTION.
void Mat< eT >::impl_raw_print (const std::string &extra_text) const
void Mat< eT >::impl_raw_print (std::ostream &user_stream, const std::string &extra_text) const
void Mat< eT >::impl_raw_print_trans (const std::string &extra_text) const
 DEPRECATED FUNCTION.
void Mat< eT >::impl_raw_print_trans (std::ostream &user_stream, const std::string &extra_text) const
 DEPRECATED FUNCTION.
arma_inline arma_warn_unused bool Mat< eT >::in_range (const uword i) const
 returns true if the given index is currently in range
arma_inline arma_warn_unused bool Mat< eT >::in_range (const span &x) const
 returns true if the given start and end indices are currently in range
arma_inline arma_warn_unused bool Mat< eT >::in_range (const uword in_row, const uword in_col) const
 returns true if the given location is currently in range
arma_inline arma_warn_unused bool Mat< eT >::in_range (const span &row_span, const uword in_col) const
arma_inline arma_warn_unused bool Mat< eT >::in_range (const uword in_row, const span &col_span) const
arma_inline arma_warn_unused bool Mat< eT >::in_range (const span &row_span, const span &col_span) const
void Mat< eT >::init (const std::string &text)
 internal function to create the matrix from a textual description
template<typename T1 , typename T2 >
void Mat< eT >::init (const Base< typename Mat< eT >::pod_type, T1 > &A, const Base< typename Mat< eT >::pod_type, T2 > &B)
 for constructing a complex matrix out of two non-complex matrices
void Mat< eT >::init_cold ()
void Mat< eT >::init_warm (uword in_rows, uword in_cols)
 internal matrix construction; if the requested size is small enough, memory from the stack is used. otherwise memory is allocated via 'new'
void Mat< eT >::insert_cols (const uword col_num, const uword N, const bool set_to_zero=true)
template<typename T1 >
void Mat< eT >::insert_cols (const uword col_num, const Base< eT, T1 > &X)
void Mat< eT >::insert_rows (const uword row_num, const uword N, const bool set_to_zero=true)
template<typename T1 >
void Mat< eT >::insert_rows (const uword row_num, const Base< eT, T1 > &X)
arma_inline arma_warn_unused bool Mat< eT >::is_colvec () const
 returns true if the object can be interpreted as a column vector
arma_inline arma_warn_unused bool Mat< eT >::is_empty () const
 returns true if the matrix has no elements
arma_warn_unused bool Mat< eT >::is_finite () const
 returns true if all of the elements are finite
arma_inline arma_warn_unused bool Mat< eT >::is_rowvec () const
 returns true if the object can be interpreted as a row vector
arma_inline arma_warn_unused bool Mat< eT >::is_square () const
 returns true if the object has the same number of non-zero rows and columnns
arma_inline arma_warn_unused bool Mat< eT >::is_vec () const
 returns true if the object can be interpreted as a column or row vector
bool Mat< eT >::load (const std::string name, const file_type type=auto_detect, const bool print_status=true)
 load a matrix from a file
bool Mat< eT >::load (std::istream &is, const file_type type=auto_detect, const bool print_status=true)
 load a matrix from a stream
 Mat< eT >::Mat ()
 Mat< eT >::Mat (const uword in_rows, const uword in_cols)
 construct the matrix to have user specified dimensions
 Mat< eT >::Mat (const char *text)
 create the matrix from a textual description
 Mat< eT >::Mat (const std::string &text)
 create the matrix from a textual description
 Mat< eT >::Mat (eT *aux_mem, const uword aux_n_rows, const uword aux_n_cols, const bool copy_aux_mem=true, const bool strict=true)
 Mat< eT >::Mat (const eT *aux_mem, const uword aux_n_rows, const uword aux_n_cols)
 Mat< eT >::Mat (const Mat &m)
 construct a matrix from a given matrix
template<typename T1 >
 Mat< eT >::Mat (const BaseCube< eT, T1 > &X)
 Mat< eT >::Mat (const subview< eT > &X)
 construct a matrix from subview (e.g. construct a matrix from a delayed submatrix operation)
 Mat< eT >::Mat (const subview_cube< eT > &X)
 construct a matrix from a subview_cube instance
 Mat< eT >::Mat (const diagview< eT > &X)
 construct a matrix from diagview (e.g. construct a matrix from a delayed diag operation)
template<typename T1 >
 Mat< eT >::Mat (const subview_elem1< eT, T1 > &X)
template<typename gen_type >
 Mat< eT >::Mat (const Gen< eT, gen_type > &X)
template<typename T1 , typename op_type >
 Mat< eT >::Mat (const Op< T1, op_type > &X)
 create a matrix from Op, i.e. run the previously delayed unary operations
template<typename T1 , typename eop_type >
 Mat< eT >::Mat (const eOp< T1, eop_type > &X)
 create a matrix from eOp, i.e. run the previously delayed unary operations
template<typename T1 , typename op_type >
 Mat< eT >::Mat (const mtOp< eT, T1, op_type > &X)
 EXPERIMENTAL.
template<typename T1 , typename T2 , typename glue_type >
 Mat< eT >::Mat (const Glue< T1, T2, glue_type > &X)
 create a matrix from Glue, i.e. run the previously delayed binary operations
template<typename T1 , typename T2 , typename eglue_type >
 Mat< eT >::Mat (const eGlue< T1, T2, eglue_type > &X)
 create a matrix from eGlue, i.e. run the previously delayed binary operations
template<typename T1 , typename T2 , typename glue_type >
 Mat< eT >::Mat (const mtGlue< eT, T1, T2, glue_type > &X)
 EXPERIMENTAL: create a matrix from mtGlue, i.e. run the previously delayed binary operations.
 Mat< eT >::Mat (const char junk, const eT *aux_mem, const uword aux_n_rows, const uword aux_n_cols)
template<typename T1 , typename T2 >
 Mat< eT >::Mat (const Base< typename Mat< eT >::pod_type, T1 > &A, const Base< typename Mat< eT >::pod_type, T2 > &B)
 for constructing a complex matrix out of two non-complex matrices
arma_warn_unused eT Mat< eT >::max () const
eT Mat< eT >::max (uword &index_of_max_val) const
eT Mat< eT >::max (uword &row_of_max_val, uword &col_of_max_val) const
arma_inline void Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::mem_setup ()
arma_inline arma_warn_unused eT * Mat< eT >::memptr ()
 returns a pointer to array of eTs used by the matrix
arma_inline arma_warn_unused
const eT * 
Mat< eT >::memptr () const
 returns a pointer to array of eTs used by the matrix
arma_warn_unused eT Mat< eT >::min () const
eT Mat< eT >::min (uword &index_of_min_val) const
eT Mat< eT >::min (uword &row_of_min_val, uword &col_of_min_val) const
const MatMat< eT >::ones ()
const MatMat< eT >::ones (const uword in_elem)
const MatMat< eT >::ones (const uword in_rows, const uword in_cols)
arma_hot const Mat< eT > & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::ones ()
bool Mat< eT >::row_iterator::operator!= (const row_iterator &X) const
bool Mat< eT >::const_row_iterator::operator!= (const const_row_iterator &X) const
const MatMat< eT >::operator%= (const Mat &m)
 in-place element-wise matrix multiplication
template<typename T1 >
const MatMat< eT >::operator%= (const BaseCube< eT, T1 > &X)
const MatMat< eT >::operator%= (const subview< eT > &X)
 in-place element-wise matrix mutiplication (using a submatrix on the right-hand-side)
const MatMat< eT >::operator%= (const subview_cube< eT > &X)
 in-place element-wise matrix mutiplication (using a single-slice subcube on the right-hand-side)
const MatMat< eT >::operator%= (const diagview< eT > &X)
 in-place element-wise matrix mutiplication (using a diagview on the right-hand-side)
template<typename T1 >
const MatMat< eT >::operator%= (const subview_elem1< eT, T1 > &X)
template<typename gen_type >
const MatMat< eT >::operator%= (const Gen< eT, gen_type > &X)
template<typename T1 , typename op_type >
const MatMat< eT >::operator%= (const Op< T1, op_type > &X)
 in-place matrix element-wise multiplication, with the right-hand-side operand having delayed operations
template<typename T1 , typename eop_type >
const MatMat< eT >::operator%= (const eOp< T1, eop_type > &X)
template<typename T1 , typename op_type >
const MatMat< eT >::operator%= (const mtOp< eT, T1, op_type > &X)
 EXPERIMENTAL.
template<typename T1 , typename T2 , typename glue_type >
const MatMat< eT >::operator%= (const Glue< T1, T2, glue_type > &X)
 in-place matrix element-wise multiplication, with the right-hand-side operands having delayed operations
template<typename T1 , typename T2 , typename eglue_type >
const MatMat< eT >::operator%= (const eGlue< T1, T2, eglue_type > &X)
template<typename T1 , typename T2 , typename glue_type >
const MatMat< eT >::operator%= (const mtGlue< eT, T1, T2, glue_type > &X)
 EXPERIMENTAL: in-place matrix element-wise multiplication, with the right-hand-side operands having delayed operations.
subview_row< eT > Mat< eT >::operator() (const uword row_num, const span &col_span)
const subview_row< eT > Mat< eT >::operator() (const uword row_num, const span &col_span) const
subview_col< eT > Mat< eT >::operator() (const span &row_span, const uword col_num)
const subview_col< eT > Mat< eT >::operator() (const span &row_span, const uword col_num) const
subview< eT > Mat< eT >::operator() (const span &row_span, const span &col_span)
const subview< eT > Mat< eT >::operator() (const span &row_span, const span &col_span) const
arma_inline arma_warn_unused eT & Mat< eT >::operator() (const uword i)
 linear element accessor (treats the matrix as a vector); bounds checking not done when ARMA_NO_DEBUG is defined
arma_inline arma_warn_unused eT Mat< eT >::operator() (const uword i) const
 linear element accessor (treats the matrix as a vector); bounds checking not done when ARMA_NO_DEBUG is defined
arma_inline arma_warn_unused eT & Mat< eT >::operator() (const uword in_row, const uword in_col)
 element accessor; bounds checking not done when ARMA_NO_DEBUG is defined
arma_inline arma_warn_unused eT Mat< eT >::operator() (const uword in_row, const uword in_col) const
 element accessor; bounds checking not done when ARMA_NO_DEBUG is defined
subview_row< eT > Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() (const uword row_num, const span &col_span)
const subview_row< eT > Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() (const uword row_num, const span &col_span) const
subview_col< eT > Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() (const span &row_span, const uword col_num)
const subview_col< eT > Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() (const span &row_span, const uword col_num) const
subview< eT > Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() (const span &row_span, const span &col_span)
const subview< eT > Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() (const span &row_span, const span &col_span) const
arma_inline arma_warn_unused eT & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() (const uword i)
 linear element accessor (treats the matrix as a vector); bounds checking not done when ARMA_NO_DEBUG is defined
arma_inline arma_warn_unused eT Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() (const uword i) const
 linear element accessor (treats the matrix as a vector); bounds checking not done when ARMA_NO_DEBUG is defined
arma_inline arma_warn_unused eT & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() (const uword in_row, const uword in_col)
 element accessor; bounds checking not done when ARMA_NO_DEBUG is defined
arma_inline arma_warn_unused eT Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() (const uword in_row, const uword in_col) const
 element accessor; bounds checking not done when ARMA_NO_DEBUG is defined
eT & Mat< eT >::row_iterator::operator* ()
eT Mat< eT >::const_row_iterator::operator* () const
arma_inline const MatMat< eT >::operator*= (const eT val)
 In-place multiplication of all elements of the matrix with a scalar.
const MatMat< eT >::operator*= (const Mat &m)
 in-place matrix multiplication
template<typename T1 >
const MatMat< eT >::operator*= (const BaseCube< eT, T1 > &X)
const MatMat< eT >::operator*= (const subview< eT > &X)
 in-place matrix mutiplication (using a submatrix on the right-hand-side)
const MatMat< eT >::operator*= (const subview_cube< eT > &X)
 in-place matrix mutiplication (using a single-slice subcube on the right-hand-side)
const MatMat< eT >::operator*= (const diagview< eT > &X)
 in-place matrix mutiplication (using a diagview on the right-hand-side)
template<typename T1 >
const MatMat< eT >::operator*= (const subview_elem1< eT, T1 > &X)
template<typename gen_type >
const MatMat< eT >::operator*= (const Gen< eT, gen_type > &X)
template<typename T1 , typename op_type >
const MatMat< eT >::operator*= (const Op< T1, op_type > &X)
 in-place matrix multiplication, with the right-hand-side operand having delayed operations
template<typename T1 , typename eop_type >
const MatMat< eT >::operator*= (const eOp< T1, eop_type > &X)
template<typename T1 , typename op_type >
const MatMat< eT >::operator*= (const mtOp< eT, T1, op_type > &X)
 EXPERIMENTAL.
template<typename T1 , typename T2 , typename glue_type >
const MatMat< eT >::operator*= (const Glue< T1, T2, glue_type > &X)
 in-place matrix multiplications, with the right-hand-side operands having delayed operations
template<typename T1 , typename T2 , typename eglue_type >
const MatMat< eT >::operator*= (const eGlue< T1, T2, eglue_type > &X)
template<typename T1 , typename T2 , typename glue_type >
const MatMat< eT >::operator*= (const mtGlue< eT, T1, T2, glue_type > &X)
 EXPERIMENTAL: in-place matrix multiplications, with the right-hand-side operands having delayed operations.
arma_inline const MatMat< eT >::operator++ ()
 prefix ++
arma_inline void Mat< eT >::operator++ (int)
 postfix ++ (must not return the object by reference)
row_iterator & Mat< eT >::row_iterator::operator++ ()
void Mat< eT >::row_iterator::operator++ (int)
const_row_iterator & Mat< eT >::const_row_iterator::operator++ ()
void Mat< eT >::const_row_iterator::operator++ (int)
arma_inline const MatMat< eT >::operator+= (const eT val)
 In-place addition of a scalar to all elements of the matrix.
const MatMat< eT >::operator+= (const Mat &m)
 in-place matrix addition
template<typename T1 >
const MatMat< eT >::operator+= (const BaseCube< eT, T1 > &X)
const MatMat< eT >::operator+= (const subview< eT > &X)
 in-place matrix addition (using a submatrix on the right-hand-side)
const MatMat< eT >::operator+= (const subview_cube< eT > &X)
 in-place matrix addition (using a single-slice subcube on the right-hand-side)
const MatMat< eT >::operator+= (const diagview< eT > &X)
 in-place matrix addition (using a diagview on the right-hand-side)
template<typename T1 >
const MatMat< eT >::operator+= (const subview_elem1< eT, T1 > &X)
template<typename gen_type >
const MatMat< eT >::operator+= (const Gen< eT, gen_type > &X)
template<typename T1 , typename op_type >
const MatMat< eT >::operator+= (const Op< T1, op_type > &X)
 in-place matrix addition, with the right-hand-side operand having delayed operations
template<typename T1 , typename eop_type >
const MatMat< eT >::operator+= (const eOp< T1, eop_type > &X)
template<typename T1 , typename op_type >
const MatMat< eT >::operator+= (const mtOp< eT, T1, op_type > &X)
 EXPERIMENTAL.
template<typename T1 , typename T2 , typename glue_type >
const MatMat< eT >::operator+= (const Glue< T1, T2, glue_type > &X)
 in-place matrix addition, with the right-hand-side operands having delayed operations
template<typename T1 , typename T2 >
const MatMat< eT >::operator+= (const Glue< T1, T2, glue_times > &X)
template<typename T1 , typename T2 , typename eglue_type >
const MatMat< eT >::operator+= (const eGlue< T1, T2, eglue_type > &X)
 in-place matrix addition, with the right-hand-side operands having delayed operations
template<typename T1 , typename T2 , typename glue_type >
const MatMat< eT >::operator+= (const mtGlue< eT, T1, T2, glue_type > &X)
 EXPERIMENTAL: in-place matrix addition, with the right-hand-side operands having delayed operations.
arma_inline const MatMat< eT >::operator-- ()
 prefix --
arma_inline void Mat< eT >::operator-- (int)
 postfix -- (must not return the object by reference)
row_iterator & Mat< eT >::row_iterator::operator-- ()
void Mat< eT >::row_iterator::operator-- (int)
const_row_iterator & Mat< eT >::const_row_iterator::operator-- ()
void Mat< eT >::const_row_iterator::operator-- (int)
arma_inline const MatMat< eT >::operator-= (const eT val)
 In-place subtraction of a scalar from all elements of the matrix.
const MatMat< eT >::operator-= (const Mat &m)
 in-place matrix subtraction
template<typename T1 >
const MatMat< eT >::operator-= (const BaseCube< eT, T1 > &X)
const MatMat< eT >::operator-= (const subview< eT > &X)
 in-place matrix subtraction (using a submatrix on the right-hand-side)
const MatMat< eT >::operator-= (const subview_cube< eT > &X)
 in-place matrix subtraction (using a single-slice subcube on the right-hand-side)
const MatMat< eT >::operator-= (const diagview< eT > &X)
 in-place matrix subtraction (using a diagview on the right-hand-side)
template<typename T1 >
const MatMat< eT >::operator-= (const subview_elem1< eT, T1 > &X)
template<typename gen_type >
const MatMat< eT >::operator-= (const Gen< eT, gen_type > &X)
template<typename T1 , typename op_type >
const MatMat< eT >::operator-= (const Op< T1, op_type > &X)
 in-place matrix subtraction, with the right-hand-side operand having delayed operations
template<typename T1 , typename eop_type >
const MatMat< eT >::operator-= (const eOp< T1, eop_type > &X)
template<typename T1 , typename op_type >
const MatMat< eT >::operator-= (const mtOp< eT, T1, op_type > &X)
 EXPERIMENTAL.
template<typename T1 , typename T2 , typename glue_type >
const MatMat< eT >::operator-= (const Glue< T1, T2, glue_type > &X)
 in-place matrix subtraction, with the right-hand-side operands having delayed operations
template<typename T1 , typename T2 >
const MatMat< eT >::operator-= (const Glue< T1, T2, glue_times > &X)
template<typename T1 , typename T2 , typename eglue_type >
const MatMat< eT >::operator-= (const eGlue< T1, T2, eglue_type > &X)
 in-place matrix subtraction, with the right-hand-side operands having delayed operations
template<typename T1 , typename T2 , typename glue_type >
const MatMat< eT >::operator-= (const mtGlue< eT, T1, T2, glue_type > &X)
 EXPERIMENTAL: in-place matrix subtraction, with the right-hand-side operands having delayed operations.
arma_inline const MatMat< eT >::operator/= (const eT val)
 In-place division of all elements of the matrix with a scalar.
const MatMat< eT >::operator/= (const Mat &m)
 in-place element-wise matrix division
template<typename T1 >
const MatMat< eT >::operator/= (const BaseCube< eT, T1 > &X)
const MatMat< eT >::operator/= (const subview< eT > &X)
 in-place element-wise matrix division (using a submatrix on the right-hand-side)
const MatMat< eT >::operator/= (const subview_cube< eT > &X)
 in-place element-wise matrix division (using a single-slice subcube on the right-hand-side)
const MatMat< eT >::operator/= (const diagview< eT > &X)
 in-place element-wise matrix division (using a diagview on the right-hand-side)
template<typename T1 >
const MatMat< eT >::operator/= (const subview_elem1< eT, T1 > &X)
template<typename gen_type >
const MatMat< eT >::operator/= (const Gen< eT, gen_type > &X)
template<typename T1 , typename op_type >
const MatMat< eT >::operator/= (const Op< T1, op_type > &X)
 in-place matrix element-wise division, with the right-hand-side operand having delayed operations
template<typename T1 , typename eop_type >
const MatMat< eT >::operator/= (const eOp< T1, eop_type > &X)
template<typename T1 , typename op_type >
const MatMat< eT >::operator/= (const mtOp< eT, T1, op_type > &X)
 EXPERIMENTAL.
template<typename T1 , typename T2 , typename glue_type >
const MatMat< eT >::operator/= (const Glue< T1, T2, glue_type > &X)
 in-place matrix element-wise division, with the right-hand-side operands having delayed operations
template<typename T1 , typename T2 , typename eglue_type >
const MatMat< eT >::operator/= (const eGlue< T1, T2, eglue_type > &X)
template<typename T1 , typename T2 , typename glue_type >
const MatMat< eT >::operator/= (const mtGlue< eT, T1, T2, glue_type > &X)
 EXPERIMENTAL: in-place matrix element-wise division, with the right-hand-side operands having delayed operations.
mat_injector< MatMat< eT >::operator<< (const eT val)
mat_injector< MatMat< eT >::operator<< (const injector_end_of_row &x)
const MatMat< eT >::operator= (const char *text)
 create the matrix from a textual description
const MatMat< eT >::operator= (const std::string &text)
 create the matrix from a textual description
arma_inline const MatMat< eT >::operator= (const eT val)
const MatMat< eT >::operator= (const Mat &m)
 construct a matrix from a given matrix
template<typename T1 >
const MatMat< eT >::operator= (const BaseCube< eT, T1 > &X)
const MatMat< eT >::operator= (const subview< eT > &X)
 construct a matrix from subview (e.g. construct a matrix from a delayed submatrix operation)
const MatMat< eT >::operator= (const subview_cube< eT > &X)
 construct a matrix from a subview_cube instance
const MatMat< eT >::operator= (const diagview< eT > &X)
 construct a matrix from diagview (e.g. construct a matrix from a delayed diag operation)
template<typename T1 >
const MatMat< eT >::operator= (const subview_elem1< eT, T1 > &X)
template<typename gen_type >
const MatMat< eT >::operator= (const Gen< eT, gen_type > &X)
template<typename T1 , typename op_type >
const MatMat< eT >::operator= (const Op< T1, op_type > &X)
 create a matrix from Op, i.e. run the previously delayed unary operations
template<typename T1 , typename eop_type >
const MatMat< eT >::operator= (const eOp< T1, eop_type > &X)
 create a matrix from eOp, i.e. run the previously delayed unary operations
template<typename T1 , typename op_type >
const MatMat< eT >::operator= (const mtOp< eT, T1, op_type > &X)
 EXPERIMENTAL.
template<typename T1 , typename T2 , typename glue_type >
const MatMat< eT >::operator= (const Glue< T1, T2, glue_type > &X)
 create a matrix from Glue, i.e. run the previously delayed binary operations
template<typename T1 , typename T2 , typename eglue_type >
const MatMat< eT >::operator= (const eGlue< T1, T2, eglue_type > &X)
 create a matrix from eGlue, i.e. run the previously delayed binary operations
template<typename T1 , typename T2 , typename glue_type >
const MatMat< eT >::operator= (const mtGlue< eT, T1, T2, glue_type > &X)
 EXPERIMENTAL: create a matrix from Glue, i.e. run the previously delayed binary operations.
template<typename T1 >
const MatMat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator= (const Base< eT, T1 > &A)
const MatMat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator= (const eT val)
const MatMat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator= (const char *text)
 create the matrix from a textual description
const MatMat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator= (const std::string &text)
 create the matrix from a textual description
bool Mat< eT >::row_iterator::operator== (const row_iterator &X) const
bool Mat< eT >::const_row_iterator::operator== (const const_row_iterator &X) const
arma_inline arma_warn_unused eT & Mat< eT >::operator[] (const uword i)
 linear element accessor (treats the matrix as a vector); no bounds check.
arma_inline arma_warn_unused eT Mat< eT >::operator[] (const uword i) const
 linear element accessor (treats the matrix as a vector); no bounds check
arma_inline arma_warn_unused eT & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator[] (const uword i)
 linear element accessor (treats the matrix as a vector); no bounds check.
arma_inline arma_warn_unused eT Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator[] (const uword i) const
 linear element accessor (treats the matrix as a vector); no bounds check
template<typename eT >
static arma_inline void Mat_aux::postfix_mm (Mat< eT > &x)
 postfix --
template<typename T >
static arma_inline void Mat_aux::postfix_mm (Mat< std::complex< T > > &x)
 postfix ++ for complex numbers (work around for limitations of the std::complex class)
template<typename eT >
static arma_inline void Mat_aux::postfix_pp (Mat< eT > &x)
 postfix ++
template<typename T >
static arma_inline void Mat_aux::postfix_pp (Mat< std::complex< T > > &x)
 postfix ++ for complex numbers (work around for limitations of the std::complex class)
template<typename eT >
static arma_inline void Mat_aux::prefix_mm (Mat< eT > &x)
 prefix --
template<typename T >
static arma_inline void Mat_aux::prefix_mm (Mat< std::complex< T > > &x)
 prefix -- for complex numbers (work around for limitations of the std::complex class)
template<typename eT >
static arma_inline void Mat_aux::prefix_pp (Mat< eT > &x)
 prefix ++
template<typename T >
static arma_inline void Mat_aux::prefix_pp (Mat< std::complex< T > > &x)
 prefix ++ for complex numbers (work around for limitations of the std::complex class)
bool Mat< eT >::quiet_load (const std::string name, const file_type type=auto_detect)
 load a matrix from a file, without printing any error messages
bool Mat< eT >::quiet_load (std::istream &is, const file_type type=auto_detect)
 load a matrix from a stream, without printing any error messages
bool Mat< eT >::quiet_save (const std::string name, const file_type type=arma_binary) const
 save the matrix to a file, without printing any error messages
bool Mat< eT >::quiet_save (std::ostream &os, const file_type type=arma_binary) const
 save the matrix to a stream, without printing any error messages
const MatMat< eT >::randn ()
const MatMat< eT >::randn (const uword in_elem)
const MatMat< eT >::randn (const uword in_rows, const uword in_cols)
const MatMat< eT >::randu ()
const MatMat< eT >::randu (const uword in_elem)
const MatMat< eT >::randu (const uword in_rows, const uword in_cols)
void Mat< eT >::reset ()
void Mat< eT >::reshape (const uword in_rows, const uword in_cols, const uword dim=0)
 change the matrix to have user specified dimensions (data is preserved)
void Mat< eT >::resize (const uword in_elem)
 change the matrix to have user specified dimensions (data is preserved)
void Mat< eT >::resize (const uword in_rows, const uword in_cols)
 change the matrix to have user specified dimensions (data is preserved)
arma_inline subview_row< eT > Mat< eT >::row (const uword row_num)
 creation of subview (row vector)
arma_inline const subview_row< eT > Mat< eT >::row (const uword row_num) const
 creation of subview (row vector)
 Mat< eT >::row_iterator::row_iterator (Mat< eT > &in_M, const uword in_row)
arma_inline subview< eT > Mat< eT >::rows (const uword in_row1, const uword in_row2)
 creation of subview (submatrix comprised of specified row vectors)
arma_inline const subview< eT > Mat< eT >::rows (const uword in_row1, const uword in_row2) const
 creation of subview (submatrix comprised of specified row vectors)
bool Mat< eT >::save (const std::string name, const file_type type=arma_binary, const bool print_status=true) const
 save the matrix to a file
bool Mat< eT >::save (std::ostream &os, const file_type type=arma_binary, const bool print_status=true) const
 save the matrix to a stream
template<typename eT , typename T1 >
static void Mat_aux::set_imag (Mat< eT > &out, const Base< eT, T1 > &X)
template<typename T , typename T1 >
static void Mat_aux::set_imag (Mat< std::complex< T > > &out, const Base< T, T1 > &X)
template<typename T1 >
void Mat< eT >::set_imag (const Base< typename Mat< eT >::pod_type, T1 > &X)
template<typename eT , typename T1 >
static void Mat_aux::set_real (Mat< eT > &out, const Base< eT, T1 > &X)
template<typename T , typename T1 >
static void Mat_aux::set_real (Mat< std::complex< T > > &out, const Base< T, T1 > &X)
template<typename T1 >
void Mat< eT >::set_real (const Base< typename Mat< eT >::pod_type, T1 > &X)
void Mat< eT >::set_size (const uword in_elem)
 change the matrix to have user specified dimensions (data is not preserved)
void Mat< eT >::set_size (const uword in_rows, const uword in_cols)
 change the matrix to have user specified dimensions (data is not preserved)
void Mat< eT >::shed_col (const uword col_num)
 remove specified column
void Mat< eT >::shed_cols (const uword in_col1, const uword in_col2)
 remove specified columns
void Mat< eT >::shed_row (const uword row_num)
 remove specified row
void Mat< eT >::shed_rows (const uword in_row1, const uword in_row2)
 remove specified rows
uword Mat< eT >::size () const
 returns the number of elements in this matrix
void Mat< eT >::steal_mem (Mat &X)
arma_inline subview< eT > Mat< eT >::submat (const uword in_row1, const uword in_col1, const uword in_row2, const uword in_col2)
 creation of subview (submatrix)
arma_inline const subview< eT > Mat< eT >::submat (const uword in_row1, const uword in_col1, const uword in_row2, const uword in_col2) const
 creation of subview (generic submatrix)
subview< eT > Mat< eT >::submat (const span &row_span, const span &col_span)
 creation of subview (submatrix)
const subview< eT > Mat< eT >::submat (const span &row_span, const span &col_span) const
 creation of subview (generic submatrix)
void Mat< eT >::swap_cols (const uword in_col1, const uword in_col2)
void Mat< eT >::swap_rows (const uword in_row1, const uword in_row2)
Col< eT > Mat< eT >::unsafe_col (const uword col_num)
const Col< eT > Mat< eT >::unsafe_col (const uword col_num) const
const MatMat< eT >::zeros ()
const MatMat< eT >::zeros (const uword in_elem)
const MatMat< eT >::zeros (const uword in_rows, const uword in_cols)
arma_hot const Mat< eT > & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::zeros ()
 Mat< eT >::~Mat ()

Function Documentation

template<typename eT >
arma_inline arma_warn_unused eT & Mat< eT >::at ( const uword  i)

linear element accessor (treats the matrix as a vector); no bounds check.

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, and Row< eT >::fixed< fixed_n_elem >.

Definition at line 3692 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused eT Mat< eT >::at ( const uword  i) const

linear element accessor (treats the matrix as a vector); no bounds check

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, and Row< eT >::fixed< fixed_n_elem >.

Definition at line 3704 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused eT & Mat< eT >::at ( const uword  in_row,
const uword  in_col 
)

element accessor; no bounds check

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, and Row< eT >::fixed< fixed_n_elem >.

Definition at line 3742 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused eT Mat< eT >::at ( const uword  in_row,
const uword  in_col 
) const

element accessor; no bounds check

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, and Row< eT >::fixed< fixed_n_elem >.

Definition at line 3754 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline arma_warn_unused eT & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::at ( const uword  i)

linear element accessor (treats the matrix as a vector); no bounds check.

Reimplemented from Mat< eT >.

Definition at line 5710 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline arma_warn_unused eT Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::at ( const uword  i) const

linear element accessor (treats the matrix as a vector); no bounds check

Reimplemented from Mat< eT >.

Definition at line 5722 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline arma_warn_unused eT & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::at ( const uword  in_row,
const uword  in_col 
)

element accessor; no bounds check

Reimplemented from Mat< eT >.

Definition at line 5762 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline arma_warn_unused eT Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::at ( const uword  in_row,
const uword  in_col 
) const

element accessor; no bounds check

Reimplemented from Mat< eT >.

Definition at line 5776 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::iterator Mat< eT >::begin ( ) [inline]

Definition at line 5207 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::const_iterator Mat< eT >::begin ( ) const [inline]

Definition at line 5219 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::col_iterator Mat< eT >::begin_col ( const uword  col_num) [inline]

Definition at line 5255 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::const_col_iterator Mat< eT >::begin_col ( const uword  col_num) const [inline]

Definition at line 5269 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::row_iterator Mat< eT >::begin_row ( const uword  row_num) [inline]

Reimplemented in Col< eT >, Col< eT1 >, Row< eT >, and Row< eT1 >.

Definition at line 5311 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::const_row_iterator Mat< eT >::begin_row ( const uword  row_num) const [inline]

Reimplemented in Col< eT >, Col< eT1 >, Row< eT >, and Row< eT1 >.

Definition at line 5325 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::clear ( void  ) [inline]

resets this matrix to an empty matrix

Definition at line 5368 of file Mat_meat.hpp.

template<typename eT >
arma_inline subview_col< eT > Mat< eT >::col ( const uword  col_num)

creation of subview (column vector)

Reimplemented in Row< eT >, and Row< eT1 >.

Definition at line 1880 of file Mat_meat.hpp.

template<typename eT >
arma_inline const subview_col< eT > Mat< eT >::col ( const uword  col_num) const

creation of subview (column vector)

Reimplemented in Row< eT >, and Row< eT1 >.

Definition at line 1895 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused eT * Mat< eT >::colptr ( const uword  in_col)

returns a pointer to array of eTs for a specified column; no bounds check

Definition at line 4000 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused const eT * Mat< eT >::colptr ( const uword  in_col) const

returns a pointer to array of eTs for a specified column; no bounds check

Definition at line 4012 of file Mat_meat.hpp.

template<typename eT >
arma_inline subview< eT > Mat< eT >::cols ( const uword  in_col1,
const uword  in_col2 
)

creation of subview (submatrix comprised of specified column vectors)

Reimplemented in Row< eT >, and Row< eT1 >.

Definition at line 2050 of file Mat_meat.hpp.

template<typename eT >
arma_inline const subview< eT > Mat< eT >::cols ( const uword  in_col1,
const uword  in_col2 
) const

creation of subview (submatrix comprised of specified column vectors)

Reimplemented in Row< eT >, and Row< eT1 >.

Definition at line 2071 of file Mat_meat.hpp.

template<typename eT>
Mat< eT >::const_row_iterator::const_row_iterator ( const Mat< eT > &  in_M,
const uword  in_row 
) [inline]

Definition at line 5091 of file Mat_meat.hpp.

template<typename eT >
template<typename eT2 >
void Mat< eT >::copy_size ( const Mat< eT2 > &  m) [inline]

change the matrix (without preserving data) to have the same dimensions as the given matrix

Definition at line 4303 of file Mat_meat.hpp.

template<typename eT >
arma_inline diagview< eT > Mat< eT >::diag ( const sword  in_id = 0)

creation of diagview (diagonal)

Definition at line 2284 of file Mat_meat.hpp.

template<typename eT >
arma_inline const diagview< eT > Mat< eT >::diag ( const sword  in_id = 0) const

creation of diagview (diagonal)

Definition at line 2308 of file Mat_meat.hpp.

template<typename eT >
template<typename T1 >
arma_inline subview_elem1< eT, T1 > Mat< eT >::elem ( const Base< uword, T1 > &  a)

Definition at line 2232 of file Mat_meat.hpp.

template<typename eT >
template<typename T1 >
arma_inline const subview_elem1< eT, T1 > Mat< eT >::elem ( const Base< uword, T1 > &  a) const

Definition at line 2245 of file Mat_meat.hpp.

template<typename eT >
bool Mat< eT >::empty ( ) const [inline]

returns true if the matrix has no elements

Definition at line 5379 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::iterator Mat< eT >::end ( ) [inline]

Definition at line 5231 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::const_iterator Mat< eT >::end ( ) const [inline]

Definition at line 5243 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::col_iterator Mat< eT >::end_col ( const uword  col_num) [inline]

Definition at line 5283 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::const_col_iterator Mat< eT >::end_col ( const uword  col_num) const [inline]

Definition at line 5297 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::row_iterator Mat< eT >::end_row ( const uword  row_num) [inline]

Reimplemented in Col< eT >, Col< eT1 >, Row< eT >, and Row< eT1 >.

Definition at line 5339 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::const_row_iterator Mat< eT >::end_row ( const uword  row_num) const [inline]

Reimplemented in Col< eT >, Col< eT1 >, Row< eT >, and Row< eT1 >.

Definition at line 5353 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::eye ( ) [inline]

Definition at line 4518 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::eye ( const uword  in_rows,
const uword  in_cols 
) [inline]

Definition at line 4539 of file Mat_meat.hpp.

template<typename eT>
arma_hot const Mat< eT > & Mat< eT >::fill ( const eT  val) [inline]

fill the matrix with the specified value

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, and Row< eT >::fixed< fixed_n_elem >.

Definition at line 4317 of file Mat_meat.hpp.

template<typename eT>
template<uword fixed_n_rows, uword fixed_n_cols>
arma_hot const Mat< eT > & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fill ( const eT  val) [inline]

fill the matrix with the specified value

Reimplemented from Mat< eT >.

Definition at line 5822 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed ( )

Definition at line 5418 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed ( const fixed< fixed_n_rows, fixed_n_cols > &  X)

Definition at line 5430 of file Mat_meat.hpp.

template<typename eT>
template<uword fixed_n_rows, uword fixed_n_cols>
template<typename T1 >
Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed ( const Base< eT, T1 > &  A) [inline]

Definition at line 5447 of file Mat_meat.hpp.

template<typename eT>
template<uword fixed_n_rows, uword fixed_n_cols>
template<typename T1 , typename T2 >
Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed ( const Base< pod_type, T1 > &  A,
const Base< pod_type, T2 > &  B 
) [inline]

Definition at line 5462 of file Mat_meat.hpp.

template<typename eT>
template<uword fixed_n_rows, uword fixed_n_cols>
Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed ( eT *  aux_mem,
const bool  copy_aux_mem = true 
) [inline]

Definition at line 5476 of file Mat_meat.hpp.

template<typename eT>
template<uword fixed_n_rows, uword fixed_n_cols>
Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed ( const eT *  aux_mem) [inline]

Definition at line 5505 of file Mat_meat.hpp.

template<typename eT>
template<uword fixed_n_rows, uword fixed_n_cols>
Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed ( const char *  text) [inline]

Definition at line 5519 of file Mat_meat.hpp.

template<typename eT>
template<uword fixed_n_rows, uword fixed_n_cols>
Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::fixed ( const std::string &  text) [inline]

Definition at line 5533 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::impl_print ( const std::string &  extra_text) const [inline]

print contents of the matrix (to the cout stream), optionally preceding with a user specified line of text. the precision and cell width are modified. on return, the stream's state are restored to their original values.

Definition at line 4050 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::impl_print ( std::ostream &  user_stream,
const std::string &  extra_text 
) const [inline]

print contents of the matrix to a user specified stream, optionally preceding with a user specified line of text. the precision and cell width are modified. on return, the stream's state are restored to their original values.

Definition at line 4075 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::impl_print_trans ( const std::string &  extra_text) const [inline]

DEPRECATED FUNCTION.

Definition at line 4097 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::impl_print_trans ( std::ostream &  user_stream,
const std::string &  extra_text 
) const [inline]

DEPRECATED FUNCTION.

Definition at line 4113 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::impl_raw_print ( const std::string &  extra_text) const [inline]

print contents of the matrix (to the cout stream), optionally preceding with a user specified line of text. the stream's state are used as is and are not modified (i.e. the precision and cell width are not modified).

Definition at line 4132 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::impl_raw_print ( std::ostream &  user_stream,
const std::string &  extra_text 
) const [inline]

print contents of the matrix to a user specified stream, optionally preceding with a user specified line of text. the stream's state are used as is and are not modified. (i.e. the precision and cell width are not modified).

Definition at line 4157 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::impl_raw_print_trans ( const std::string &  extra_text) const [inline]

DEPRECATED FUNCTION.

Definition at line 4179 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::impl_raw_print_trans ( std::ostream &  user_stream,
const std::string &  extra_text 
) const [inline]

DEPRECATED FUNCTION.

Definition at line 4195 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused bool Mat< eT >::in_range ( const uword  i) const

returns true if the given index is currently in range

Definition at line 3884 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused bool Mat< eT >::in_range ( const span x) const

returns true if the given start and end indices are currently in range

Definition at line 3896 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused bool Mat< eT >::in_range ( const uword  in_row,
const uword  in_col 
) const

returns true if the given location is currently in range

Definition at line 3920 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused bool Mat< eT >::in_range ( const span row_span,
const uword  in_col 
) const

Definition at line 3931 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused bool Mat< eT >::in_range ( const uword  in_row,
const span col_span 
) const

Definition at line 3954 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused bool Mat< eT >::in_range ( const span row_span,
const span col_span 
) const

Definition at line 3977 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::init ( const std::string &  text) [inline, protected]

internal function to create the matrix from a textual description

Definition at line 318 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 >
void Mat< eT >::init ( const Base< typename Mat< eT >::pod_type, T1 > &  A,
const Base< typename Mat< eT >::pod_type, T2 > &  B 
) [inline]

for constructing a complex matrix out of two non-complex matrices

< compile-time abort if eT isn't std::complex

< compile-time abort if T is std::complex

< compile-time abort if types are not compatible

Definition at line 589 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::init_cold ( ) [inline, protected]

Definition at line 86 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::init_warm ( uword  in_rows,
uword  in_cols 
) [inline, protected]

internal matrix construction; if the requested size is small enough, memory from the stack is used. otherwise memory is allocated via 'new'

Definition at line 126 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::insert_cols ( const uword  col_num,
const uword  N,
const bool  set_to_zero = true 
) [inline]

insert N columns at the specified column position, optionally setting the elements of the inserted columns to zero

Reimplemented in Row< eT >, and Row< eT1 >.

Definition at line 2531 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
void Mat< eT >::insert_cols ( const uword  col_num,
const Base< eT, T1 > &  X 
) [inline]

insert the given object at the specified column position; the given object must have the same number of rows as the matrix

Reimplemented in Row< eT >, and Row< eT1 >.

Definition at line 2648 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::insert_rows ( const uword  row_num,
const uword  N,
const bool  set_to_zero = true 
) [inline]

insert N rows at the specified row position, optionally setting the elements of the inserted rows to zero

Reimplemented in Col< eT >, and Col< eT1 >.

Definition at line 2488 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
void Mat< eT >::insert_rows ( const uword  row_num,
const Base< eT, T1 > &  X 
) [inline]

insert the given object at the specified row position; the given object must have the same number of columns as the matrix

Reimplemented in Col< eT >, and Col< eT1 >.

Definition at line 2575 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused bool Mat< eT >::is_colvec ( ) const

returns true if the object can be interpreted as a column vector

Definition at line 3848 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused bool Mat< eT >::is_empty ( ) const

returns true if the matrix has no elements

Definition at line 3812 of file Mat_meat.hpp.

template<typename eT >
arma_warn_unused bool Mat< eT >::is_finite ( ) const [inline]

returns true if all of the elements are finite

Definition at line 3872 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused bool Mat< eT >::is_rowvec ( ) const

returns true if the object can be interpreted as a row vector

Definition at line 3836 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused bool Mat< eT >::is_square ( ) const

returns true if the object has the same number of non-zero rows and columnns

Definition at line 3860 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused bool Mat< eT >::is_vec ( ) const

returns true if the object can be interpreted as a column or row vector

Definition at line 3824 of file Mat_meat.hpp.

template<typename eT >
bool Mat< eT >::load ( const std::string  name,
const file_type  type = auto_detect,
const bool  print_status = true 
) [inline]

load a matrix from a file

Definition at line 4801 of file Mat_meat.hpp.

template<typename eT >
bool Mat< eT >::load ( std::istream &  is,
const file_type  type = auto_detect,
const bool  print_status = true 
) [inline]

load a matrix from a stream

Definition at line 4869 of file Mat_meat.hpp.

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

Definition at line 52 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::Mat ( const uword  in_rows,
const uword  in_cols 
) [inline]

construct the matrix to have user specified dimensions

Definition at line 68 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::Mat ( const char *  text) [inline]

create the matrix from a textual description

Definition at line 253 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::Mat ( const std::string &  text) [inline]

create the matrix from a textual description

Definition at line 285 of file Mat_meat.hpp.

template<typename eT>
Mat< eT >::Mat ( eT *  aux_mem,
const uword  aux_n_rows,
const uword  aux_n_cols,
const bool  copy_aux_mem = true,
const bool  strict = true 
) [inline]

construct a matrix from a given auxiliary array of eTs. if copy_aux_mem is true, new memory is allocated and the array is copied. if copy_aux_mem is false, the auxiliary array is used directly (without allocating memory and copying). the default is to copy the array.

Definition at line 695 of file Mat_meat.hpp.

template<typename eT>
Mat< eT >::Mat ( const eT *  aux_mem,
const uword  aux_n_rows,
const uword  aux_n_cols 
) [inline]

construct a matrix from a given auxiliary read-only array of eTs. the array is copied.

Definition at line 719 of file Mat_meat.hpp.

template<typename eT>
Mat< eT >::Mat ( const Mat< eT > &  m) [inline]

construct a matrix from a given matrix

Definition at line 526 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
Mat< eT >::Mat ( const BaseCube< eT, T1 > &  X) [inline]

Definition at line 842 of file Mat_meat.hpp.

template<typename eT>
Mat< eT >::Mat ( const subview< eT > &  X) [inline]

construct a matrix from subview (e.g. construct a matrix from a delayed submatrix operation)

Definition at line 1311 of file Mat_meat.hpp.

template<typename eT>
Mat< eT >::Mat ( const subview_cube< eT > &  X) [inline]

construct a matrix from a subview_cube instance

Definition at line 1432 of file Mat_meat.hpp.

template<typename eT>
Mat< eT >::Mat ( const diagview< eT > &  X) [inline]

construct a matrix from diagview (e.g. construct a matrix from a delayed diag operation)

Definition at line 1541 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
Mat< eT >::Mat ( const subview_elem1< eT, T1 > &  X) [inline]

Definition at line 1663 of file Mat_meat.hpp.

template<typename eT>
template<typename gen_type >
Mat< eT >::Mat ( const Gen< eT, gen_type > &  X) [inline]

Definition at line 2718 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
Mat< eT >::Mat ( const Op< T1, op_type > &  X) [inline]

create a matrix from Op, i.e. run the previously delayed unary operations

Definition at line 2831 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename eop_type >
Mat< eT >::Mat ( const eOp< T1, eop_type > &  X) [inline]

create a matrix from eOp, i.e. run the previously delayed unary operations

Definition at line 2960 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
Mat< eT >::Mat ( const mtOp< eT, T1, op_type > &  X) [inline]

EXPERIMENTAL.

Definition at line 3099 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
Mat< eT >::Mat ( const Glue< T1, T2, glue_type > &  X) [inline]

create a matrix from Glue, i.e. run the previously delayed binary operations

Definition at line 3214 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename eglue_type >
Mat< eT >::Mat ( const eGlue< T1, T2, eglue_type > &  X) [inline]

create a matrix from eGlue, i.e. run the previously delayed binary operations

Definition at line 3380 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
Mat< eT >::Mat ( const mtGlue< eT, T1, T2, glue_type > &  X) [inline]

EXPERIMENTAL: create a matrix from mtGlue, i.e. run the previously delayed binary operations.

Definition at line 3525 of file Mat_meat.hpp.

template<typename eT>
Mat< eT >::Mat ( const char  junk,
const eT *  aux_mem,
const uword  aux_n_rows,
const uword  aux_n_cols 
) [inline, protected]

DANGEROUS! Construct a temporary matrix, using auxiliary memory. This constructor is NOT intended for usage by user code. Its sole purpose is to be used by the Cube class.

Definition at line 742 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 >
Mat< eT >::Mat ( const Base< typename Mat< eT >::pod_type, T1 > &  A,
const Base< typename Mat< eT >::pod_type, T2 > &  B 
) [inline]

for constructing a complex matrix out of two non-complex matrices

Definition at line 1290 of file Mat_meat.hpp.

template<typename eT >
arma_warn_unused eT Mat< eT >::max ( ) const [inline]

Definition at line 4620 of file Mat_meat.hpp.

template<typename eT >
eT Mat< eT >::max ( uword index_of_max_val) const [inline]

Definition at line 4648 of file Mat_meat.hpp.

template<typename eT >
eT Mat< eT >::max ( uword row_of_max_val,
uword col_of_max_val 
) const [inline]

Definition at line 4683 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline void Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::mem_setup ( ) [private]

Definition at line 5401 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused eT * Mat< eT >::memptr ( )

returns a pointer to array of eTs used by the matrix

Definition at line 4024 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused const eT * Mat< eT >::memptr ( ) const

returns a pointer to array of eTs used by the matrix

Definition at line 4036 of file Mat_meat.hpp.

template<typename eT >
arma_warn_unused eT Mat< eT >::min ( ) const [inline]

Definition at line 4605 of file Mat_meat.hpp.

template<typename eT >
eT Mat< eT >::min ( uword index_of_min_val) const [inline]

Definition at line 4634 of file Mat_meat.hpp.

template<typename eT >
eT Mat< eT >::min ( uword row_of_min_val,
uword col_of_min_val 
) const [inline]

Definition at line 4662 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::ones ( ) [inline]
template<typename eT >
const Mat< eT > & Mat< eT >::ones ( const uword  in_elem) [inline]

Definition at line 4383 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::ones ( const uword  in_rows,
const uword  in_cols 
) [inline]

Definition at line 4397 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_hot const Mat< eT > & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::ones ( ) [inline]

Reimplemented from Mat< eT >.

Definition at line 5854 of file Mat_meat.hpp.

template<typename eT>
bool Mat< eT >::row_iterator::operator!= ( const row_iterator X) const [inline]

Definition at line 5072 of file Mat_meat.hpp.

template<typename eT>
bool Mat< eT >::const_row_iterator::operator!= ( const const_row_iterator X) const [inline]

Definition at line 5187 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::operator%= ( const Mat< eT > &  m) [inline]

in-place element-wise matrix multiplication

Definition at line 809 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
const Mat< eT > & Mat< eT >::operator%= ( const BaseCube< eT, T1 > &  X) [inline]

Definition at line 1127 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator%= ( const subview< eT > &  X) [inline]

in-place element-wise matrix mutiplication (using a submatrix on the right-hand-side)

Definition at line 1403 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator%= ( const subview_cube< eT > &  X) [inline]

in-place element-wise matrix mutiplication (using a single-slice subcube on the right-hand-side)

Definition at line 1512 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator%= ( const diagview< eT > &  X) [inline]

in-place element-wise matrix mutiplication (using a diagview on the right-hand-side)

Definition at line 1634 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
const Mat< eT > & Mat< eT >::operator%= ( const subview_elem1< eT, T1 > &  X) [inline]

Definition at line 1742 of file Mat_meat.hpp.

template<typename eT>
template<typename gen_type >
const Mat< eT > & Mat< eT >::operator%= ( const Gen< eT, gen_type > &  X) [inline]

Definition at line 2801 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
const Mat< eT > & Mat< eT >::operator%= ( const Op< T1, op_type > &  X) [inline]

in-place matrix element-wise multiplication, with the right-hand-side operand having delayed operations

Definition at line 2925 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename eop_type >
const Mat< eT > & Mat< eT >::operator%= ( const eOp< T1, eop_type > &  X) [inline]

Definition at line 3065 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
const Mat< eT > & Mat< eT >::operator%= ( const mtOp< eT, T1, op_type > &  X) [inline]

EXPERIMENTAL.

Definition at line 3183 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
const Mat< eT > & Mat< eT >::operator%= ( const Glue< T1, T2, glue_type > &  X) [inline]

in-place matrix element-wise multiplication, with the right-hand-side operands having delayed operations

Definition at line 3313 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename eglue_type >
const Mat< eT > & Mat< eT >::operator%= ( const eGlue< T1, T2, eglue_type > &  X) [inline]

Definition at line 3491 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
const Mat< eT > & Mat< eT >::operator%= ( const mtGlue< eT, T1, T2, glue_type > &  X) [inline]

EXPERIMENTAL: in-place matrix element-wise multiplication, with the right-hand-side operands having delayed operations.

Definition at line 3611 of file Mat_meat.hpp.

template<typename eT >
subview_row< eT > Mat< eT >::operator() ( const uword  row_num,
const span col_span 
) [inline]
template<typename eT >
const subview_row< eT > Mat< eT >::operator() ( const uword  row_num,
const span col_span 
) const [inline]
template<typename eT >
subview_col< eT > Mat< eT >::operator() ( const span row_span,
const uword  col_num 
) [inline]
template<typename eT >
const subview_col< eT > Mat< eT >::operator() ( const span row_span,
const uword  col_num 
) const [inline]
template<typename eT >
subview< eT > Mat< eT >::operator() ( const span row_span,
const span col_span 
) [inline]
template<typename eT >
const subview< eT > Mat< eT >::operator() ( const span row_span,
const span col_span 
) const [inline]
template<typename eT >
arma_inline arma_warn_unused eT & Mat< eT >::operator() ( const uword  i)

linear element accessor (treats the matrix as a vector); bounds checking not done when ARMA_NO_DEBUG is defined

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, and Row< eT >::fixed< fixed_n_elem >.

Definition at line 3643 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused eT Mat< eT >::operator() ( const uword  i) const

linear element accessor (treats the matrix as a vector); bounds checking not done when ARMA_NO_DEBUG is defined

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, and Row< eT >::fixed< fixed_n_elem >.

Definition at line 3656 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused eT & Mat< eT >::operator() ( const uword  in_row,
const uword  in_col 
)

element accessor; bounds checking not done when ARMA_NO_DEBUG is defined

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, and Row< eT >::fixed< fixed_n_elem >.

Definition at line 3716 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused eT Mat< eT >::operator() ( const uword  in_row,
const uword  in_col 
) const

element accessor; bounds checking not done when ARMA_NO_DEBUG is defined

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, and Row< eT >::fixed< fixed_n_elem >.

Definition at line 3729 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
subview_row< eT > Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() ( const uword  row_num,
const span col_span 
) [inline]

Reimplemented from Mat< eT >.

Definition at line 5607 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
const subview_row< eT > Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() ( const uword  row_num,
const span col_span 
) const [inline]

Reimplemented from Mat< eT >.

Definition at line 5620 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
subview_col< eT > Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() ( const span row_span,
const uword  col_num 
) [inline]

Reimplemented from Mat< eT >.

Definition at line 5633 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
const subview_col< eT > Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() ( const span row_span,
const uword  col_num 
) const [inline]

Reimplemented from Mat< eT >.

Definition at line 5646 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
subview< eT > Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() ( const span row_span,
const span col_span 
) [inline]

Reimplemented from Mat< eT >.

Definition at line 5659 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
const subview< eT > Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() ( const span row_span,
const span col_span 
) const [inline]

Reimplemented from Mat< eT >.

Definition at line 5672 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline arma_warn_unused eT & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() ( const uword  i)

linear element accessor (treats the matrix as a vector); bounds checking not done when ARMA_NO_DEBUG is defined

Reimplemented from Mat< eT >.

Definition at line 5734 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline arma_warn_unused eT Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() ( const uword  i) const

linear element accessor (treats the matrix as a vector); bounds checking not done when ARMA_NO_DEBUG is defined

Reimplemented from Mat< eT >.

Definition at line 5748 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline arma_warn_unused eT & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() ( const uword  in_row,
const uword  in_col 
)

element accessor; bounds checking not done when ARMA_NO_DEBUG is defined

Reimplemented from Mat< eT >.

Definition at line 5790 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline arma_warn_unused eT Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator() ( const uword  in_row,
const uword  in_col 
) const

element accessor; bounds checking not done when ARMA_NO_DEBUG is defined

Reimplemented from Mat< eT >.

Definition at line 5806 of file Mat_meat.hpp.

template<typename eT >
eT & Mat< eT >::row_iterator::operator* ( ) [inline]

Definition at line 5001 of file Mat_meat.hpp.

template<typename eT >
eT Mat< eT >::const_row_iterator::operator* ( ) const [inline]

Definition at line 5116 of file Mat_meat.hpp.

template<typename eT>
arma_inline const Mat< eT > & Mat< eT >::operator*= ( const eT  val)

In-place multiplication of all elements of the matrix with a scalar.

Definition at line 497 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator*= ( const Mat< eT > &  m) [inline]

in-place matrix multiplication

Definition at line 794 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
const Mat< eT > & Mat< eT >::operator*= ( const BaseCube< eT, T1 > &  X) [inline]

Definition at line 1110 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator*= ( const subview< eT > &  X) [inline]

in-place matrix mutiplication (using a submatrix on the right-hand-side)

Definition at line 1388 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator*= ( const subview_cube< eT > &  X) [inline]

in-place matrix mutiplication (using a single-slice subcube on the right-hand-side)

Definition at line 1496 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator*= ( const diagview< eT > &  X) [inline]

in-place matrix mutiplication (using a diagview on the right-hand-side)

Definition at line 1619 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
const Mat< eT > & Mat< eT >::operator*= ( const subview_elem1< eT, T1 > &  X) [inline]

Definition at line 1727 of file Mat_meat.hpp.

template<typename eT>
template<typename gen_type >
const Mat< eT > & Mat< eT >::operator*= ( const Gen< eT, gen_type > &  X) [inline]

Definition at line 2786 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
const Mat< eT > & Mat< eT >::operator*= ( const Op< T1, op_type > &  X) [inline]

in-place matrix multiplication, with the right-hand-side operand having delayed operations

Definition at line 2907 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename eop_type >
const Mat< eT > & Mat< eT >::operator*= ( const eOp< T1, eop_type > &  X) [inline]

Definition at line 3048 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
const Mat< eT > & Mat< eT >::operator*= ( const mtOp< eT, T1, op_type > &  X) [inline]

EXPERIMENTAL.

Definition at line 3167 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
const Mat< eT > & Mat< eT >::operator*= ( const Glue< T1, T2, glue_type > &  X) [inline]

in-place matrix multiplications, with the right-hand-side operands having delayed operations

Definition at line 3294 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename eglue_type >
const Mat< eT > & Mat< eT >::operator*= ( const eGlue< T1, T2, eglue_type > &  X) [inline]

Definition at line 3474 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
const Mat< eT > & Mat< eT >::operator*= ( const mtGlue< eT, T1, T2, glue_type > &  X) [inline]

EXPERIMENTAL: in-place matrix multiplications, with the right-hand-side operands having delayed operations.

Definition at line 3593 of file Mat_meat.hpp.

template<typename eT >
arma_inline const Mat< eT > & Mat< eT >::operator++ ( )

prefix ++

Definition at line 3765 of file Mat_meat.hpp.

template<typename eT >
arma_inline void Mat< eT >::operator++ ( int  )

postfix ++ (must not return the object by reference)

Definition at line 3777 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::row_iterator & Mat< eT >::row_iterator::operator++ ( ) [inline]

Definition at line 5011 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::row_iterator::operator++ ( int  ) [inline]

Definition at line 5029 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::const_row_iterator & Mat< eT >::const_row_iterator::operator++ ( ) [inline]

Definition at line 5126 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::const_row_iterator::operator++ ( int  ) [inline]

Definition at line 5144 of file Mat_meat.hpp.

template<typename eT>
arma_inline const Mat< eT > & Mat< eT >::operator+= ( const eT  val)

In-place addition of a scalar to all elements of the matrix.

Definition at line 467 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator+= ( const Mat< eT > &  m) [inline]

in-place matrix addition

Definition at line 760 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
const Mat< eT > & Mat< eT >::operator+= ( const BaseCube< eT, T1 > &  X) [inline]

Definition at line 948 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator+= ( const subview< eT > &  X) [inline]

in-place matrix addition (using a submatrix on the right-hand-side)

Definition at line 1359 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator+= ( const subview_cube< eT > &  X) [inline]

in-place matrix addition (using a single-slice subcube on the right-hand-side)

Definition at line 1466 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator+= ( const diagview< eT > &  X) [inline]

in-place matrix addition (using a diagview on the right-hand-side)

Definition at line 1590 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
const Mat< eT > & Mat< eT >::operator+= ( const subview_elem1< eT, T1 > &  X) [inline]

Definition at line 1697 of file Mat_meat.hpp.

template<typename eT>
template<typename gen_type >
const Mat< eT > & Mat< eT >::operator+= ( const Gen< eT, gen_type > &  X) [inline]

Definition at line 2756 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
const Mat< eT > & Mat< eT >::operator+= ( const Op< T1, op_type > &  X) [inline]

in-place matrix addition, with the right-hand-side operand having delayed operations

Definition at line 2871 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename eop_type >
const Mat< eT > & Mat< eT >::operator+= ( const eOp< T1, eop_type > &  X) [inline]

Definition at line 3014 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
const Mat< eT > & Mat< eT >::operator+= ( const mtOp< eT, T1, op_type > &  X) [inline]

EXPERIMENTAL.

Definition at line 3135 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
const Mat< eT > & Mat< eT >::operator+= ( const Glue< T1, T2, glue_type > &  X) [inline]

in-place matrix addition, with the right-hand-side operands having delayed operations

Definition at line 3256 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 >
const Mat< eT > & Mat< eT >::operator+= ( const Glue< T1, T2, glue_times > &  X) [inline]

Definition at line 3350 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename eglue_type >
const Mat< eT > & Mat< eT >::operator+= ( const eGlue< T1, T2, eglue_type > &  X) [inline]

in-place matrix addition, with the right-hand-side operands having delayed operations

Definition at line 3437 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
const Mat< eT > & Mat< eT >::operator+= ( const mtGlue< eT, T1, T2, glue_type > &  X) [inline]

EXPERIMENTAL: in-place matrix addition, with the right-hand-side operands having delayed operations.

Definition at line 3561 of file Mat_meat.hpp.

template<typename eT >
arma_inline const Mat< eT > & Mat< eT >::operator-- ( )

prefix --

Definition at line 3788 of file Mat_meat.hpp.

template<typename eT >
arma_inline void Mat< eT >::operator-- ( int  )

postfix -- (must not return the object by reference)

Definition at line 3800 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::row_iterator & Mat< eT >::row_iterator::operator-- ( ) [inline]

Definition at line 5039 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::row_iterator::operator-- ( int  ) [inline]

Definition at line 5062 of file Mat_meat.hpp.

template<typename eT >
Mat< eT >::const_row_iterator & Mat< eT >::const_row_iterator::operator-- ( ) [inline]

Definition at line 5154 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::const_row_iterator::operator-- ( int  ) [inline]

Definition at line 5177 of file Mat_meat.hpp.

template<typename eT>
arma_inline const Mat< eT > & Mat< eT >::operator-= ( const eT  val)

In-place subtraction of a scalar from all elements of the matrix.

Definition at line 482 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator-= ( const Mat< eT > &  m) [inline]

in-place matrix subtraction

Definition at line 777 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
const Mat< eT > & Mat< eT >::operator-= ( const BaseCube< eT, T1 > &  X) [inline]

Definition at line 1029 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator-= ( const subview< eT > &  X) [inline]

in-place matrix subtraction (using a submatrix on the right-hand-side)

Definition at line 1373 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator-= ( const subview_cube< eT > &  X) [inline]

in-place matrix subtraction (using a single-slice subcube on the right-hand-side)

Definition at line 1481 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator-= ( const diagview< eT > &  X) [inline]

in-place matrix subtraction (using a diagview on the right-hand-side)

Definition at line 1604 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
const Mat< eT > & Mat< eT >::operator-= ( const subview_elem1< eT, T1 > &  X) [inline]

Definition at line 1712 of file Mat_meat.hpp.

template<typename eT>
template<typename gen_type >
const Mat< eT > & Mat< eT >::operator-= ( const Gen< eT, gen_type > &  X) [inline]

Definition at line 2771 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
const Mat< eT > & Mat< eT >::operator-= ( const Op< T1, op_type > &  X) [inline]

in-place matrix subtraction, with the right-hand-side operand having delayed operations

Definition at line 2889 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename eop_type >
const Mat< eT > & Mat< eT >::operator-= ( const eOp< T1, eop_type > &  X) [inline]

Definition at line 3031 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
const Mat< eT > & Mat< eT >::operator-= ( const mtOp< eT, T1, op_type > &  X) [inline]

EXPERIMENTAL.

Definition at line 3151 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
const Mat< eT > & Mat< eT >::operator-= ( const Glue< T1, T2, glue_type > &  X) [inline]

in-place matrix subtraction, with the right-hand-side operands having delayed operations

Definition at line 3275 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 >
const Mat< eT > & Mat< eT >::operator-= ( const Glue< T1, T2, glue_times > &  X) [inline]

Definition at line 3365 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename eglue_type >
const Mat< eT > & Mat< eT >::operator-= ( const eGlue< T1, T2, eglue_type > &  X) [inline]

in-place matrix subtraction, with the right-hand-side operands having delayed operations

Definition at line 3456 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
const Mat< eT > & Mat< eT >::operator-= ( const mtGlue< eT, T1, T2, glue_type > &  X) [inline]

EXPERIMENTAL: in-place matrix subtraction, with the right-hand-side operands having delayed operations.

Definition at line 3577 of file Mat_meat.hpp.

template<typename eT>
arma_inline const Mat< eT > & Mat< eT >::operator/= ( const eT  val)

In-place division of all elements of the matrix with a scalar.

Definition at line 512 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator/= ( const Mat< eT > &  m) [inline]

in-place element-wise matrix division

Definition at line 826 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
const Mat< eT > & Mat< eT >::operator/= ( const BaseCube< eT, T1 > &  X) [inline]

Definition at line 1208 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator/= ( const subview< eT > &  X) [inline]

in-place element-wise matrix division (using a submatrix on the right-hand-side)

Definition at line 1418 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator/= ( const subview_cube< eT > &  X) [inline]

in-place element-wise matrix division (using a single-slice subcube on the right-hand-side)

Definition at line 1527 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator/= ( const diagview< eT > &  X) [inline]

in-place element-wise matrix division (using a diagview on the right-hand-side)

Definition at line 1649 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
const Mat< eT > & Mat< eT >::operator/= ( const subview_elem1< eT, T1 > &  X) [inline]

Definition at line 1757 of file Mat_meat.hpp.

template<typename eT>
template<typename gen_type >
const Mat< eT > & Mat< eT >::operator/= ( const Gen< eT, gen_type > &  X) [inline]

Definition at line 2816 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
const Mat< eT > & Mat< eT >::operator/= ( const Op< T1, op_type > &  X) [inline]

in-place matrix element-wise division, with the right-hand-side operand having delayed operations

Definition at line 2943 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename eop_type >
const Mat< eT > & Mat< eT >::operator/= ( const eOp< T1, eop_type > &  X) [inline]

Definition at line 3082 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
const Mat< eT > & Mat< eT >::operator/= ( const mtOp< eT, T1, op_type > &  X) [inline]

EXPERIMENTAL.

Definition at line 3199 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
const Mat< eT > & Mat< eT >::operator/= ( const Glue< T1, T2, glue_type > &  X) [inline]

in-place matrix element-wise division, with the right-hand-side operands having delayed operations

Definition at line 3332 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename eglue_type >
const Mat< eT > & Mat< eT >::operator/= ( const eGlue< T1, T2, eglue_type > &  X) [inline]

Definition at line 3508 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
const Mat< eT > & Mat< eT >::operator/= ( const mtGlue< eT, T1, T2, glue_type > &  X) [inline]

EXPERIMENTAL: in-place matrix element-wise division, with the right-hand-side operands having delayed operations.

Definition at line 3627 of file Mat_meat.hpp.

template<typename eT>
mat_injector< Mat< eT > > Mat< eT >::operator<< ( const eT  val) [inline]

Reimplemented in Col< eT >, Col< eT1 >, Row< eT >, and Row< eT1 >.

Definition at line 1771 of file Mat_meat.hpp.

template<typename eT>
mat_injector< Mat< eT > > Mat< eT >::operator<< ( const injector_end_of_row x) [inline]

Definition at line 1781 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::operator= ( const char *  text) [inline]

create the matrix from a textual description

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, Row< eT >::fixed< fixed_n_elem >, Col< eT >, Row< eT >, Col< eT1 >, and Row< eT1 >.

Definition at line 272 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::operator= ( const std::string &  text) [inline]

create the matrix from a textual description

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, Row< eT >::fixed< fixed_n_elem >, Col< eT >, Row< eT >, Col< eT1 >, and Row< eT1 >.

Definition at line 304 of file Mat_meat.hpp.

template<typename eT>
arma_inline const Mat< eT > & Mat< eT >::operator= ( const eT  val)

Set the matrix to be equal to the specified scalar. NOTE: the size of the matrix will be 1x1

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, Row< eT >::fixed< fixed_n_elem >, Col< eT >, Col< eT1 >, Row< eT >, and Row< eT1 >.

Definition at line 452 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator= ( const Mat< eT > &  m) [inline]

construct a matrix from a given matrix

Definition at line 547 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
const Mat< eT > & Mat< eT >::operator= ( const BaseCube< eT, T1 > &  X) [inline]

Reimplemented in Col< eT >, Col< eT1 >, Row< eT >, and Row< eT1 >.

Definition at line 861 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator= ( const subview< eT > &  X) [inline]

construct a matrix from subview (e.g. construct a matrix from a delayed submatrix operation)

Definition at line 1332 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator= ( const subview_cube< eT > &  X) [inline]

construct a matrix from a subview_cube instance

Reimplemented in Col< eT >::fixed< fixed_n_elem >, Row< eT >::fixed< fixed_n_elem >, Col< eT >, Col< eT1 >, Row< eT >, and Row< eT1 >.

Definition at line 1451 of file Mat_meat.hpp.

template<typename eT>
const Mat< eT > & Mat< eT >::operator= ( const diagview< eT > &  X) [inline]

construct a matrix from diagview (e.g. construct a matrix from a delayed diag operation)

Definition at line 1562 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
const Mat< eT > & Mat< eT >::operator= ( const subview_elem1< eT, T1 > &  X) [inline]

Definition at line 1682 of file Mat_meat.hpp.

template<typename eT>
template<typename gen_type >
const Mat< eT > & Mat< eT >::operator= ( const Gen< eT, gen_type > &  X) [inline]

Definition at line 2739 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
const Mat< eT > & Mat< eT >::operator= ( const Op< T1, op_type > &  X) [inline]

create a matrix from Op, i.e. run the previously delayed unary operations

Definition at line 2853 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename eop_type >
const Mat< eT > & Mat< eT >::operator= ( const eOp< T1, eop_type > &  X) [inline]

create a matrix from eOp, i.e. run the previously delayed unary operations

Definition at line 2984 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename op_type >
const Mat< eT > & Mat< eT >::operator= ( const mtOp< eT, T1, op_type > &  X) [inline]

EXPERIMENTAL.

Definition at line 3119 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
const Mat< eT > & Mat< eT >::operator= ( const Glue< T1, T2, glue_type > &  X) [inline]

create a matrix from Glue, i.e. run the previously delayed binary operations

Definition at line 3237 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename eglue_type >
const Mat< eT > & Mat< eT >::operator= ( const eGlue< T1, T2, eglue_type > &  X) [inline]

create a matrix from eGlue, i.e. run the previously delayed binary operations

Definition at line 3405 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 , typename T2 , typename glue_type >
const Mat< eT > & Mat< eT >::operator= ( const mtGlue< eT, T1, T2, glue_type > &  X) [inline]

EXPERIMENTAL: create a matrix from Glue, i.e. run the previously delayed binary operations.

Definition at line 3545 of file Mat_meat.hpp.

template<typename eT>
template<uword fixed_n_rows, uword fixed_n_cols>
template<typename T1 >
const Mat< eT > & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator= ( const Base< eT, T1 > &  A) [inline]

Definition at line 5549 of file Mat_meat.hpp.

template<typename eT>
template<uword fixed_n_rows, uword fixed_n_cols>
const Mat< eT > & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator= ( const eT  val) [inline]

Set the matrix to be equal to the specified scalar. NOTE: the size of the matrix will be 1x1

Reimplemented from Mat< eT >.

Definition at line 5562 of file Mat_meat.hpp.

template<typename eT>
template<uword fixed_n_rows, uword fixed_n_cols>
const Mat< eT > & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator= ( const char *  text) [inline]

create the matrix from a textual description

Reimplemented from Mat< eT >.

Definition at line 5577 of file Mat_meat.hpp.

template<typename eT>
template<uword fixed_n_rows, uword fixed_n_cols>
const Mat< eT > & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator= ( const std::string &  text) [inline]

create the matrix from a textual description

Reimplemented from Mat< eT >.

Definition at line 5592 of file Mat_meat.hpp.

template<typename eT>
bool Mat< eT >::row_iterator::operator== ( const row_iterator X) const [inline]

Definition at line 5082 of file Mat_meat.hpp.

template<typename eT>
bool Mat< eT >::const_row_iterator::operator== ( const const_row_iterator X) const [inline]

Definition at line 5197 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused eT & Mat< eT >::operator[] ( const uword  i)

linear element accessor (treats the matrix as a vector); no bounds check.

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, and Row< eT >::fixed< fixed_n_elem >.

Definition at line 3668 of file Mat_meat.hpp.

template<typename eT >
arma_inline arma_warn_unused eT Mat< eT >::operator[] ( const uword  i) const

linear element accessor (treats the matrix as a vector); no bounds check

Reimplemented in Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >, Col< eT >::fixed< fixed_n_elem >, and Row< eT >::fixed< fixed_n_elem >.

Definition at line 3680 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline arma_warn_unused eT & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator[] ( const uword  i)

linear element accessor (treats the matrix as a vector); no bounds check.

Reimplemented from Mat< eT >.

Definition at line 5686 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_inline arma_warn_unused eT Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::operator[] ( const uword  i) const

linear element accessor (treats the matrix as a vector); no bounds check

Reimplemented from Mat< eT >.

Definition at line 5698 of file Mat_meat.hpp.

template<typename eT >
arma_inline void Mat_aux::postfix_mm ( Mat< eT > &  x) [static]

postfix --

Definition at line 5977 of file Mat_meat.hpp.

template<typename T >
arma_inline void Mat_aux::postfix_mm ( Mat< std::complex< T > > &  x) [static]

postfix ++ for complex numbers (work around for limitations of the std::complex class)

Definition at line 6002 of file Mat_meat.hpp.

template<typename eT >
arma_inline void Mat_aux::postfix_pp ( Mat< eT > &  x) [static]

postfix ++

Definition at line 5905 of file Mat_meat.hpp.

template<typename T >
arma_inline void Mat_aux::postfix_pp ( Mat< std::complex< T > > &  x) [static]

postfix ++ for complex numbers (work around for limitations of the std::complex class)

Definition at line 5930 of file Mat_meat.hpp.

template<typename eT >
arma_inline void Mat_aux::prefix_mm ( Mat< eT > &  x) [static]

prefix --

Definition at line 5941 of file Mat_meat.hpp.

template<typename T >
arma_inline void Mat_aux::prefix_mm ( Mat< std::complex< T > > &  x) [static]

prefix -- for complex numbers (work around for limitations of the std::complex class)

Definition at line 5966 of file Mat_meat.hpp.

template<typename eT >
arma_inline void Mat_aux::prefix_pp ( Mat< eT > &  x) [static]

prefix ++

Definition at line 5869 of file Mat_meat.hpp.

template<typename T >
arma_inline void Mat_aux::prefix_pp ( Mat< std::complex< T > > &  x) [static]

prefix ++ for complex numbers (work around for limitations of the std::complex class)

Definition at line 5894 of file Mat_meat.hpp.

template<typename eT >
bool Mat< eT >::quiet_load ( const std::string  name,
const file_type  type = auto_detect 
) [inline]

load a matrix from a file, without printing any error messages

Definition at line 4964 of file Mat_meat.hpp.

template<typename eT >
bool Mat< eT >::quiet_load ( std::istream &  is,
const file_type  type = auto_detect 
) [inline]

load a matrix from a stream, without printing any error messages

Definition at line 4977 of file Mat_meat.hpp.

template<typename eT >
bool Mat< eT >::quiet_save ( const std::string  name,
const file_type  type = arma_binary 
) const [inline]

save the matrix to a file, without printing any error messages

Definition at line 4938 of file Mat_meat.hpp.

template<typename eT >
bool Mat< eT >::quiet_save ( std::ostream &  os,
const file_type  type = arma_binary 
) const [inline]

save the matrix to a stream, without printing any error messages

Definition at line 4951 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::randn ( ) [inline]

Definition at line 4470 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::randn ( const uword  in_elem) [inline]

Definition at line 4490 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::randn ( const uword  in_rows,
const uword  in_cols 
) [inline]

Definition at line 4504 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::randu ( ) [inline]

Definition at line 4411 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::randu ( const uword  in_elem) [inline]

Definition at line 4442 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::randu ( const uword  in_rows,
const uword  in_cols 
) [inline]

Definition at line 4456 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::reset ( ) [inline]

Definition at line 4553 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::reshape ( const uword  in_rows,
const uword  in_cols,
const uword  dim = 0 
) [inline]

change the matrix to have user specified dimensions (data is preserved)

Definition at line 4289 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::resize ( const uword  in_elem) [inline]

change the matrix to have user specified dimensions (data is preserved)

Definition at line 4250 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::resize ( const uword  in_rows,
const uword  in_cols 
) [inline]

change the matrix to have user specified dimensions (data is preserved)

Definition at line 4276 of file Mat_meat.hpp.

template<typename eT >
arma_inline subview_row< eT > Mat< eT >::row ( const uword  row_num)

creation of subview (row vector)

Reimplemented in Col< eT >, and Col< eT1 >.

Definition at line 1792 of file Mat_meat.hpp.

template<typename eT >
arma_inline const subview_row< eT > Mat< eT >::row ( const uword  row_num) const

creation of subview (row vector)

Reimplemented in Col< eT >, and Col< eT1 >.

Definition at line 1807 of file Mat_meat.hpp.

template<typename eT>
Mat< eT >::row_iterator::row_iterator ( Mat< eT > &  in_M,
const uword  in_row 
) [inline]

Definition at line 4988 of file Mat_meat.hpp.

template<typename eT >
arma_inline subview< eT > Mat< eT >::rows ( const uword  in_row1,
const uword  in_row2 
)

creation of subview (submatrix comprised of specified row vectors)

Reimplemented in Col< eT >, and Col< eT1 >.

Definition at line 2008 of file Mat_meat.hpp.

template<typename eT >
arma_inline const subview< eT > Mat< eT >::rows ( const uword  in_row1,
const uword  in_row2 
) const

creation of subview (submatrix comprised of specified row vectors)

Reimplemented in Col< eT >, and Col< eT1 >.

Definition at line 2029 of file Mat_meat.hpp.

template<typename eT >
bool Mat< eT >::save ( const std::string  name,
const file_type  type = arma_binary,
const bool  print_status = true 
) const [inline]

save the matrix to a file

Definition at line 4705 of file Mat_meat.hpp.

template<typename eT >
bool Mat< eT >::save ( std::ostream &  os,
const file_type  type = arma_binary,
const bool  print_status = true 
) const [inline]

save the matrix to a stream

Definition at line 4753 of file Mat_meat.hpp.

template<typename eT , typename T1 >
void Mat_aux::set_imag ( Mat< eT > &  out,
const Base< eT, T1 > &  X 
) [inline, static]

Definition at line 6029 of file Mat_meat.hpp.

template<typename T , typename T1 >
void Mat_aux::set_imag ( Mat< std::complex< T > > &  out,
const Base< T, T1 > &  X 
) [inline, static]

Definition at line 6066 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
void Mat< eT >::set_imag ( const Base< typename Mat< eT >::pod_type, T1 > &  X) [inline]

Definition at line 4592 of file Mat_meat.hpp.

template<typename eT , typename T1 >
void Mat_aux::set_real ( Mat< eT > &  out,
const Base< eT, T1 > &  X 
) [inline, static]

Definition at line 6012 of file Mat_meat.hpp.

template<typename T , typename T1 >
void Mat_aux::set_real ( Mat< std::complex< T > > &  out,
const Base< T, T1 > &  X 
) [inline, static]

Definition at line 6039 of file Mat_meat.hpp.

template<typename eT>
template<typename T1 >
void Mat< eT >::set_real ( const Base< typename Mat< eT >::pod_type, T1 > &  X) [inline]

Definition at line 4579 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::set_size ( const uword  in_elem) [inline]

change the matrix to have user specified dimensions (data is not preserved)

Definition at line 4211 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::set_size ( const uword  in_rows,
const uword  in_cols 
) [inline]

change the matrix to have user specified dimensions (data is not preserved)

Definition at line 4237 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::shed_col ( const uword  col_num) [inline]

remove specified column

Reimplemented in Row< eT >, and Row< eT1 >.

Definition at line 2404 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::shed_cols ( const uword  in_col1,
const uword  in_col2 
) [inline]

remove specified columns

Reimplemented in Row< eT >, and Row< eT1 >.

Definition at line 2453 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::shed_row ( const uword  row_num) [inline]

remove specified row

Reimplemented in Col< eT >, and Col< eT1 >.

Definition at line 2389 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::shed_rows ( const uword  in_row1,
const uword  in_row2 
) [inline]

remove specified rows

Reimplemented in Col< eT >, and Col< eT1 >.

Definition at line 2419 of file Mat_meat.hpp.

template<typename eT >
uword Mat< eT >::size ( ) const [inline]

returns the number of elements in this matrix

Definition at line 5390 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::steal_mem ( Mat< eT > &  X) [inline, protected]

try to steal the memory from a given matrix; if memory can't be stolen, copy the given matrix

Definition at line 630 of file Mat_meat.hpp.

template<typename eT >
arma_inline subview< eT > Mat< eT >::submat ( const uword  in_row1,
const uword  in_col1,
const uword  in_row2,
const uword  in_col2 
)

creation of subview (submatrix)

Definition at line 2092 of file Mat_meat.hpp.

template<typename eT >
arma_inline const subview< eT > Mat< eT >::submat ( const uword  in_row1,
const uword  in_col1,
const uword  in_row2,
const uword  in_col2 
) const

creation of subview (generic submatrix)

Definition at line 2114 of file Mat_meat.hpp.

template<typename eT >
subview< eT > Mat< eT >::submat ( const span row_span,
const span col_span 
) [inline]

creation of subview (submatrix)

Definition at line 2136 of file Mat_meat.hpp.

template<typename eT >
const subview< eT > Mat< eT >::submat ( const span row_span,
const span col_span 
) const [inline]

creation of subview (generic submatrix)

Definition at line 2172 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::swap_cols ( const uword  in_col1,
const uword  in_col2 
) [inline]

Definition at line 2359 of file Mat_meat.hpp.

template<typename eT >
void Mat< eT >::swap_rows ( const uword  in_row1,
const uword  in_row2 
) [inline]

Definition at line 2331 of file Mat_meat.hpp.

template<typename eT >
Col< eT > Mat< eT >::unsafe_col ( const uword  col_num) [inline]

create a Col object which uses memory from an existing matrix object. this approach is currently not alias safe and does not take into account that the parent matrix object could be deleted. if deleted memory is accessed by the created Col object, it will cause memory corruption and/or a crash

Definition at line 1972 of file Mat_meat.hpp.

template<typename eT >
const Col< eT > Mat< eT >::unsafe_col ( const uword  col_num) const [inline]

create a Col object which uses memory from an existing matrix object. this approach is currently not alias safe and does not take into account that the parent matrix object could be deleted. if deleted memory is accessed by the created Col object, it will cause memory corruption and/or a crash

Definition at line 1991 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::zeros ( ) [inline]
template<typename eT >
const Mat< eT > & Mat< eT >::zeros ( const uword  in_elem) [inline]

Definition at line 4343 of file Mat_meat.hpp.

template<typename eT >
const Mat< eT > & Mat< eT >::zeros ( const uword  in_rows,
const uword  in_cols 
) [inline]

Definition at line 4357 of file Mat_meat.hpp.

template<typename eT >
template<uword fixed_n_rows, uword fixed_n_cols>
arma_hot const Mat< eT > & Mat< eT >::fixed< fixed_n_rows, fixed_n_cols >::zeros ( ) [inline]

Reimplemented from Mat< eT >.

Definition at line 5838 of file Mat_meat.hpp.

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

Definition at line 20 of file Mat_meat.hpp.



armadillo_matrix
Author(s): Conrad Sanderson - NICTA (www.nicta.com.au), (Wrapper by Sjoerd van den Dries)
autogenerated on Tue Jan 7 2014 11:42:07