Click or drag to resize

MatrixMathSumT Method

Calculates the sum of all elements in the specified matrix.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public 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

T
The sum of all elements in matrix as a value of type T.
See Also