|
CumProd
Return the cumulative product of matrix/vector elements, including those along the given axis.
vector vector::CumProd();
|
Parameters
axis
[in] Axis. 0 — horizontal axis for each column (i.e., over the rows), 1 — vertical axis for each row (i.e. over the columns)
Return Value
Cumulative product of the elements along the given axis.
Example
matrix matrix_a={{10,3,2},{1,8,12},{6,5,4},{7,11,9}};
|