Matrix::MtxFunction Method

TMtx *MtxFunction(TMtx *Src, const DewArray<TCplx> &params, TMtxFunction Func = null, TMtxType SourceType = TMtxType::mtGeneral) const;

Compute matrix function as a function of matrix.

#NameTypeDescription
1SrcTMtx *
2paramsconst DewArray<TCplx> &
3Func = nullTMtxFunction
4SourceType = TMtxType::mtGeneralTMtxType
Remarks:

The method allows you to compute any function as a function of the Src matrix. For example, a square of root of the matrix would not compute the square root of the elements of the matrix, but instead, the result would be such, that the matrix product of two resulting matrices would return the original matrix. The Params parameters allow you to specify aditional parameter for the Func function. Because the method is based on the eigenvalue decomposition and the eigenvalue, the SourceType for symmetric and symmetric positive definite matrices has to be defined explicitly.

See Also: TMtxFunction
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler