| NMathFunctionsTrace(DoubleMatrix) 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static double Trace(
DoubleMatrix A
)
Public Shared Function Trace (
A As DoubleMatrix
) As Double
public:
static double Trace(
DoubleMatrix^ A
)
static member Trace :
A : DoubleMatrix -> float
Parameters
- A DoubleMatrix
- A square matrix.
Return Value
DoubleThe trace of
A.
Exceptions See Also