TSparseMtx::Rem Method

Overload List

#SignatureDescription
1TMtxVec *Rem(TMtxVec *X, TMtxVec *Y);The Reminder after division X/Y.
2TMtxVec *Rem(TMtxVec *X, TMtxVec *Y, int XIndex, int YIndex, int Index, int Len);Calculates reminder after division X/Y.
3TMtxVec *Rem(TMtxVec *X, const double Y);Calculates reminder after division X/Y.
4TMtxVec *Rem(TMtxVec *X, const double Y, int XIndex, int Index, int Len);Calculates reminder after division X/Y.

Overload 1: TMtxVec *Rem(TMtxVec *X, TMtxVec *Y);

The Reminder after division X/Y.

#NameTypeDescription
1XTMtxVec *
2YTMtxVec *
Remarks:

Calculates reminder after division according to formula:

x[i]-y[i]*Trunc(x[i]/y[i]).

The results will be saved to the calling vector. X and Y must be a real and have the same length. Size and TSparseMtx::Complex properties of the calling vector are set implicitly to match the X object.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: TMtxVec *Rem(TMtxVec *X, TMtxVec *Y, int XIndex, int YIndex, int Index, int Len);

Calculates reminder after division X/Y.

#NameTypeDescription
1XTMtxVec *
2YTMtxVec *
3XIndexint
4YIndexint
5Indexint
6Lenint
Remarks:

Calculation uses the following formula:

z[i] = x[xi]-y[yi]*Trunc(x[xi]/y[yi]),

where i in [Index..Index+Len], xi in [XIndex..XIndex+Len], yi in [YIndex..YIndex+Len]. The results will be saved to the calling vector. X must be a real. An exception will be raised if TSparseMtx::ConditionCheck is True and array borders are overrun.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 3: TMtxVec *Rem(TMtxVec *X, const double Y);

Calculates reminder after division X/Y.

#NameTypeDescription
1XTMtxVec *
2Yconst double
Remarks:

Reminder is calculated by using the following formula:

x[i]-y*Trunc(x[i]/y).

X must be a real. The results will be saved to the calling vector. Size and TSparseMtx::Complex properties of the calling vector are set implicitly to match the X object.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 4: TMtxVec *Rem(TMtxVec *X, const double Y, int XIndex, int Index, int Len);

Calculates reminder after division X/Y.

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

Reminder is calculated by using the following formula:

x[i]-y*Trunc(x[i]/y).

X must be a real. The results will be saved to the calling vector. An exception will be raised if TSparseMtx::ConditionCheck is True and array borders are overrun.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler