Product of elements in each column of a matrix.
Syntax: @cprod(m)
m: matrix
Return: vector
Returns a vector containing the column products. One should be aware of overflow.
Examples
vector colprods = @cprod(m1)
computes the column products for the matrix M1 and places them in COLPRODS.
Cross-references
See also
@cumprod and
@cumsum.
See also
@csum and
@csumsq.