Click or drag to resize

NMathFunctionsTrace(DoubleComplexMatrix) 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 DoubleComplex Trace(
	DoubleComplexMatrix A
)

Parameters

A  DoubleComplexMatrix
A square matrix.

Return Value

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