You are here: Symbol Reference > MtxVec Namespace > Classes > TMtx Class > public > TMtx.MtxSqrt Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtx.MtxSqrt Method

Calculates the square root of the matrix.

Pascal
function MtxSqrt(const Src: TMtx; SourceType: TMtxType = mtGeneral): TMtx; overload;

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 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.

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

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!