Matrix::InvElem Method

Overload List

#SignatureDescription
1TMtx *InvElem() const;The inverse of matrix elements.
2TMtx *InvElem(double Threshold) const;Invert all Mtx elements and store them in the calling matrix.
3TMtx *InvElem(TMtx *SrcMtx, double Threshold = 5.5626846462680084E-309) const;Invert all Mtx elements and store them in the calling matrix.

Overload 1: TMtx *InvElem() const;

The inverse of matrix elements.

Remarks:

Calculates the inverse of all matrix elements in place. The computation occurs after first limiting the magnitude of each elements by the lower bound of Treshhold. The limiting operation is performed to avoid division by zero. Since Treshold 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. To bypass the limiting operation set the Threshold to zero.

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

Overload 2: TMtx *InvElem(double Threshold) const;

Invert all Mtx elements and store them in the calling matrix.

#NameTypeDescription
1Thresholddouble
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: TMtx *InvElem(TMtx *SrcMtx, double Threshold = 5.5626846462680084E-309) const;

Invert all Mtx elements and store them in the calling matrix.

#NameTypeDescription
1SrcMtxTMtx *
2Threshold = 5.5626846462680084E-309double
Remarks:

The Matrix::Rows, Matrix::Cols and Matrix::Complex properties of the calling matrix are set implicitly to match Mtx matrix. If Treshold is omitted then the default value 1/MAXNUM is used.

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