clMatrix::Frac Method

Overload List

#SignatureDescription
1TOpenCLMtxVec *Frac() const;Fractional part of values.
2TOpenCLMtxVec *Frac(TOpenCLMtxVec *X) const;Calculates the fractional part for all X object values.
3TOpenCLMtxVec *Frac(int Index, int Len) const;Calculates the fractional part for calling object elements [Index]..[Index+Len-1] in-place.
4TOpenCLMtxVec *Frac(TOpenCLMtxVec *X, int XIndex, int Index, int Len) const;Calculates the fractional part for X object elements [XIndex]..[XIndex+Len-1].

Overload 1: TOpenCLMtxVec *Frac() const;

Fractional part of values.

Remarks:

Calculates the fractional part for all object values in-place.

See Also: clMatrix::Trunc, clMatrix::Round
Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 2: TOpenCLMtxVec *Frac(TOpenCLMtxVec *X) const;

Calculates the fractional part for all X object values.

#NameTypeDescription
1XTOpenCLMtxVec *
Remarks:

Stores the result in calling object. Size and clMatrix::Complex properties of calling object are adjusted automatically.

Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 3: TOpenCLMtxVec *Frac(int Index, int Len) const;

Calculates the fractional part for calling object elements [Index]..[Index+Len-1] in-place.

#NameTypeDescription
1Indexint
2Lenint
Remarks:

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

Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 4: TOpenCLMtxVec *Frac(TOpenCLMtxVec *X, int XIndex, int Index, int Len) const;

Calculates the fractional part for X object elements [XIndex]..[XIndex+Len-1].

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

Stores the result in calling object elements [Index]..[Index+Len-1]. An exception is raised if array borders are overrun or underrun.

Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler