Dew MtxVec NET
TMtx.MtxFunction Method
Summary
Compute matrix function as a function of another matrix.

Class
TMtx

Declaration
Function MtxFunction(Src: TMtx; const Params: array of TCplx; Func: TMtxFunction = nil; SourceType: TMtxType = mtGeneral): TMtx;

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

Example 1

The MtxPower function declaration:

function TMtx.MtxPower(Src: TMtx; Exponent: TCplx; SourceType: TMtxType = mtGeneral): TMtx; begin Result := MtxFunction(Src,[Exponent],@DoToPower,SourceType); end;


Copyright 2008 Dew Research
http://www.dewresearch.com