elementssum
Calculates the sum of the vector or matrix elements.
Arguments
- Input vector or matrix.
- String 'row' or 'col', 'row' to sum row elements and 'col' to sum column elements.
Output
Double value or vector
Examples
Calculates the sum of the vector or matrix elements.
Double value or vector