Matrix::Inv Method

Overload List

#SignatureDescription
1TMtxVec *Inv(int Index, int Len) const;Calculate the inverse of calling object elements [Index]..[Index+Len-1] in-place.
2TMtxVec *Inv(double Threshold) const;Calculate the inverse of all calling object elements in-place.
3TMtxVec *Inv(double Threshold, int Index, int Len) const;Calculate the inverse of calling object elements [Index]..[Index+Len-1] in-place.
4TMtxVec *Inv(TMtxVec *X) const;Calculate the inverse of all X object elements without the limiting operating.
5TMtxVec *Inv(TMtxVec *X, int XIndex, int Index, int Len) const;Calculate the inverse of X object elements [XIndex]..[XIndex+Len-1] without limiting operating.
6TMtxVec *Inv(TMtxVec *X, double Threshold) const;Calculate the inverse of all X object elements anmd store the results to calling object elements.
7TMtxVec *Inv(TMtxVec *X, double Threshold, int XIndex, int Index, int Len) const;Calculate the inverse of X object elements [XIndex]..[XIndex+Len-1].
8TMtx *Inv() const;Calculates matrix inverse (Mtx^-1).
9TMtx *Inv(TMtxType MtxType) const;Compute inverse of the matrix.

Overload 1: TMtxVec *Inv(int Index, int Len) const;

Calculate the inverse of calling object elements [Index]..[Index+Len-1] in-place.

#NameTypeDescription
1Indexint
2Lenint
Remarks:

An exception is raised if array borders are overrun/underrun.

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

Overload 2: TMtxVec *Inv(double Threshold) const;

Calculate the inverse of all calling object elements in-place.

#NameTypeDescription
1Thresholddouble
Remarks:

The computation occurs after first limiting the magnitude of each element by the lower bound of Threshold. The limiting operation is performed to avoid division by zero. Since Threshold represents a magnitude, it is always real and must always be positive. For complex versions, the magnitude of the input is limited, but the phase remains unchanged. Zero-valued input is assumed to have zero phase.

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

Overload 3: TMtxVec *Inv(double Threshold, int Index, int Len) const;

Calculate the inverse of calling object elements [Index]..[Index+Len-1] in-place.

#NameTypeDescription
1Thresholddouble
2Indexint
3Lenint
Remarks:

Limit the magnitude of each element by the lower bound of Threshold. An exception is raised if array borders are overrun/underrun.

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

Overload 4: TMtxVec *Inv(TMtxVec *X) const;

Calculate the inverse of all X object elements without the limiting operating.

#NameTypeDescription
1XTMtxVec *
Remarks:

Store the results in calling object. Size and Matrix::Complex property of calling object are adjusted automatically. Does not compute matrix inverse. The limiting of the magnitude of each element by the lower bound of Threshold is left out.

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

Overload 5: TMtxVec *Inv(TMtxVec *X, int XIndex, int Index, int Len) const;

Calculate the inverse of X object elements [XIndex]..[XIndex+Len-1] without limiting operating.

#NameTypeDescription
1XTMtxVec *
2XIndexint
3Indexint
4Lenint
Remarks:

Store the results in calling object elements [Index]..[Index+Len-1]. An exception is raised if X and calling object Matrix::Complex property does not match or array borders are overrun/underrun.

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

Overload 6: TMtxVec *Inv(TMtxVec *X, double Threshold) const;

Calculate the inverse of all X object elements anmd store the results to calling object elements.

#NameTypeDescription
1XTMtxVec *
2Thresholddouble
Remarks:

Size and Matrix::Complex property of calling obhect are adjusted automatically. The computation occurs after first limiting the magnitude of each element by the lower bound of Threshold. The limiting operation is performed to avoid division by zero. Since Threshold represents a magnitude, it is always real and must always be positive.

Note
For complex versions, the magnitude of the input is limited, but the phase remains unchanged. Zero-valued input is assumed to have zero phase.

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

Overload 7: TMtxVec *Inv(TMtxVec *X, double Threshold, int XIndex, int Index, int Len) const;

Calculate the inverse of X object elements [XIndex]..[XIndex+Len-1].

#NameTypeDescription
1XTMtxVec *
2Thresholddouble
3XIndexint
4Indexint
5Lenint
Remarks:

Limit the magnitude of each element by the lower bound of Threshold. Store the results in calling object elements [Index]..[Index+Len-1]. An exception is raised if X and calling object Matrix::Complex property do not match or array borders are overrun/underrun.

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

Overload 8: TMtx *Inv() const;

Calculates matrix inverse (Mtx^-1).

Remarks:

Calculate the inverse (Mtx^-1) of the calling matrix. If the calling matrix is not Matrix::Quadratic, an exception is raised. Parameter TMtxType determines which optimized method will be used for calculating the inverse matrix. If MtxType is omitted, the default value mtGeneral (general quadratic matrix) is used.

Note
The MtxType parameter is not verified. To determine if the calling matrix type is actually MtxType, use the Matrix::DetectMtxType method.

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

Overload 9: TMtx *Inv(TMtxType MtxType) const;

Compute inverse of the matrix.

#NameTypeDescription
1MtxTypeTMtxType
Remarks:

Specify the matrix type to select the most performance efficient algorithm.

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