prod#

swordfish.function.prod()#

If X is a vector, return the product of all the elements in X.

If X is a matrix, calculate the product of all the elements in each column of X and return a vector.

If X is a table, calculate the product of all the elements in each column of X and return a table.

As with all aggregate functions, null values are not included in the calculation.

Parameters:

X (Constant) – A scalar/vector/matrix/table.