TOpenCLVector::Round Method

Overload List

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

Overload 1: TOpenCLBase *Round(TOpenCLBase *Src, int SrcIndex, int Index, int Len);

#NameTypeDescription
1SrcTOpenCLBase *
2SrcIndexint
3Indexint
4Lenint
Declared in Dew::Math::TOpenCLBase · Dew.Math/clMtxVec.h · Cross-compiler

Overload 2: TOpenCLMtxVec *Round();

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: TOpenCLVector::Trunc, TOpenCLVector::Frac
Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

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

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::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

Overload 4: TOpenCLMtxVec *Round(TOpenCLMtxVec *Src);

Round all Src object elements.

#NameTypeDescription
1SrcTOpenCLMtxVec *
Remarks:

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

Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

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

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 TOpenCLBase::Complex property of the calling object must be set explicitly. An exception is raised if array borders are overrun/underrun.

Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler