clMatrix::Round Method

Overload List

#SignatureDescription
1TOpenCLMtxVec *Round() const;Elements rounded to the nearest whole number.
2TOpenCLMtxVec *Round(int Index, int Len) const;Round calling object elements [Index]..[Index+Len-1] in-place.
3TOpenCLMtxVec *Round(TOpenCLMtxVec *Src) const;Round all Src object elements.
4TOpenCLMtxVec *Round(TOpenCLMtxVec *Src, int SrcIndex, int Index, int Len) const;Round Src object elements [SrcIndex]..[SrcIndex+Len-1].

Overload 1: TOpenCLMtxVec *Round() const;

Elements rounded to the nearest whole number.

Remarks:

Rounds all calling object elements to the nearest whole number. The result can be stored to an array of integers or as floating point number.

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

Overload 2: TOpenCLMtxVec *Round(int Index, int Len) const;

Round 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::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 3: TOpenCLMtxVec *Round(TOpenCLMtxVec *Src) const;

Round all Src object elements.

#NameTypeDescription
1SrcTOpenCLMtxVec *
Remarks:

Store the results in calling object elements. Size and clMatrix::Complex property of calling object are adjusted automatically.

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

Overload 4: TOpenCLMtxVec *Round(TOpenCLMtxVec *Src, int SrcIndex, int Index, int Len) const;

Round Src object elements [SrcIndex]..[SrcIndex+Len-1].

#NameTypeDescription
1SrcTOpenCLMtxVec *
2SrcIndexint
3Indexint
4Lenint
Remarks:

Store the results to calling object elements [Index]..[Index+Len-1]. Size and clMatrix::Complex property of the calling object must be set explicitly. An exception is raised if array borders are overrun/underrun.

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