Matrix.MtxSqrt Method

function MtxSqrt(const Src: TMtx; SourceType: TMtxType): TMtx;

Calculates the square root of the matrix.

#NameTypeDescription
1SrcTMtx
2SourceTypeTMtxType

Result: stored in self (calling object), returns self for chaining

Remarks:

Calculates the square root of the Src matrix and stores the results to calling matrix. The product of the result with itself will give the original matrix. Because the Matrix.MtxFunction method is based on the eigenvalue decomposition and the eigenvalue, the SourceType for symmetric and symmetric positive definite matrices has to be defined explicitly.

Note
The algorithm for general matrices will fail on a symmetric matrix.

See Also: Matrix.MtxPower, Matrix.MtxFunction