Click or drag to resize

NMathFunctionsTrace(FloatComplexMatrix) 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 FloatComplex Trace(
	FloatComplexMatrix A
)

Parameters

A  FloatComplexMatrix
A square matrix.

Return Value

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