|
Sum
Return the sum of the matrix/vector elements which can also be performed for the given axis (axes).
double vector::Sum();
|
Parameters
axis
[in] Axis. 0 — horizontal axis, 1 — vertical axis.
Return Value
Sum of the matrix/vector elements which can also be performed for the given axis (axes).
Example
matrix matrix_a={{10,3,2},{1,8,12},{6,5,4},{7,11,9}};
|