Returns the sum of the elements of a matrix by performing a matrix reduction using addition.
Format
SUM (M)
Argument
Examples
The following examples illustrate the use of the SUM function:
Function | SUM({[1, 2], [3, 4]}) |
Result | 10 |
Function | M = {[1, 2], [3, 4]}): {SUM(M[1]), SUM(M[2])} |
Result | {3, 7} |