$search
Go to the source code of this file.
Functions | |
template<typename eT , typename T1 > | |
arma_warn_unused eT | prod (const subview_elem1< eT, T1 > &A) |
template<typename eT > | |
arma_warn_unused eT | prod (const diagview< eT > &X) |
product of all values of a diagview | |
template<typename eT > | |
arma_warn_unused eT | prod (const subview_col< eT > &S) |
product of all values of a subview_col | |
template<typename eT > | |
arma_warn_unused eT | prod (const subview_row< eT > &S) |
product of all values of a subview_row | |
template<typename T1 > | |
const Op< Op< T1, op_prod > , op_prod > | prod (const Op< T1, op_prod > &in, const uword dim) |
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 eT > | |
arma_warn_unused eT | prod (const Col< eT > &X) |
Immediate 'product of all values' operation for a column vector. | |
template<typename eT > | |
arma_warn_unused eT | prod (const Row< eT > &X) |
Immediate 'product of all values' operation for a row vector. | |
template<typename T1 > | |
arma_inline const Op< T1, op_prod > | prod (const Base< typename T1::elem_type, T1 > &X, const uword 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. |