Functions

fn_prod.hpp File Reference

Go to the source code of this file.

Functions

template<typename T1 >
arma_inline const Op< T1, op_prodprod (const Base< typename T1::elem_type, T1 > &X, const u32 dim=0)
 //! Delayed product of elements of a matrix along a specified dimension (either rows or columns). //! The result is stored in a dense matrix that has either one column or one row. For dim = 0, find the sum of each column (i.e. traverse across rows) //! For dim = 1, find the sum of each row (i.e. traverse across columns) //! The default is dim = 0. //! NOTE: this function works differently than in Matlab/Octave.
template<typename eT >
eT prod (const Row< eT > &X)
 //! Immediate 'product of all values' operation for a row vector
template<typename eT >
eT prod (const Col< eT > &X)
 //! Immediate 'product of all values' operation for a column vector
template<typename T1 >
T1::elem_type prod (const Op< T1, op_prod > &in)
 //! Immediate 'product of all values' operation, //! invoked, for example, by: prod(prod(A))
template<typename T1 >
const Op< Op< T1, op_prod >
, op_prod
prod (const Op< T1, op_prod > &in, const u32 dim)
template<typename eT >
eT prod (const subview_row< eT > &S)
 product of all values of a subview_row
template<typename eT >
eT prod (const subview_col< eT > &S)
 product of all values of a subview_col
template<typename eT >
eT prod (const diagview< eT > &X)
 product of all values of a diagview