TOpenCLMatrix::Trunc Method

Overload List

#SignatureDescription
1TOpenCLBase *Trunc(TOpenCLBase *Src, int SrcIndex, int Index, int Len);
2TOpenCLMtxVec *Trunc();Rounds a real number towards zero.
3TOpenCLMtxVec *Trunc(int Index, int Len);Truncate calling object elements [Index]..[Index+Len-1] in-place.
4TOpenCLMtxVec *Trunc(TOpenCLMtxVec *Src);Truncate all Src object elements.
5TOpenCLMtxVec *Trunc(TOpenCLMtxVec *Src, int SrcIndex, int Index, int Len);Truncate Src object elements [SrcIndex]..[SrcIndex+Len-1].

Overload 1: TOpenCLBase *Trunc(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 *Trunc();

Rounds a real number towards zero.

Remarks:

Rounds all calling object elements towards zero to an integer and stores the result in the calling object again as floating point numbers.

See Also: TOpenCLMatrix::Frac, TOpenCLMatrix::Round
Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

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

Truncate 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 *Trunc(TOpenCLMtxVec *Src);

Truncate 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 *Trunc(TOpenCLMtxVec *Src, int SrcIndex, int Index, int Len);

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

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

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

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