Click or drag to resize

NMathFunctionsTrace(FloatMatrix) Method

Returns the trace of a square matrix. The trace of a square matrix is defined to be the sum of the terms on its main diagonal: Trace(A) = a11 + a22 +...+ ann

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static float Trace(
	FloatMatrix A
)

Parameters

A  FloatMatrix
A square matrix.

Return Value

Single
The trace of A.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if the matrix A is not square.
See Also