Calculates the sum of all elements in the specified matrix.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static T Sum<T>(
IROMatrix<T> matrix
)
where T : struct, new(), INumber<T>
Parameters
- matrix IROMatrixT
- The matrix whose elements are to be summed.
Type Parameters
- T
- The numeric type of the matrix elements. Must be a value type that implements INumberTSelf.
Return Value
TThe sum of all elements in
matrix as a value of type
T.
See Also