clMatrix.TruncAndFrac Method

Overload List

#SignatureDescription
1void TruncAndFrac(TOpenCLMtxVec TruncDst, TOpenCLMtxVec FracDst)Rounds a real number towards zero and returns the fractional part.
2void TruncAndFrac(TOpenCLMtxVec TruncDst, TOpenCLMtxVec FracDst, Int32 TruncIdx, Int32 FracIdx, Int32 Index, Int32 Len)Truncate calling object elements [Index]..[Index+Len-1] and store the results to TruncDst object elements [TruncIdx]..[TruncIdx+Len-1].

Overload 1: void TruncAndFrac(TOpenCLMtxVec TruncDst, TOpenCLMtxVec FracDst)

Rounds a real number towards zero and returns the fractional part.

#NameTypeDescription
1TruncDstTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2FracDstTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix

Result: stored in self (calling object)

Remarks:

Rounds all calling object elements towards zero to an integer and stores the result in the TruncDst object as floating point numbers. The fractional part is stored in the FracDst.

See Also: clMatrix.Frac, clMatrix.Round

Overload 2: void TruncAndFrac(TOpenCLMtxVec TruncDst, TOpenCLMtxVec FracDst, Int32 TruncIdx, Int32 FracIdx, Int32 Index, Int32 Len)

Truncate calling object elements [Index]..[Index+Len-1] and store the results to TruncDst object elements [TruncIdx]..[TruncIdx+Len-1].

#NameTypeDescription
1TruncDstTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2FracDstTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
3TruncIdxInt32
4FracIdxInt32
5IndexInt32start index
6LenInt32element count

Result: stored in self (calling object)

Remarks:

The fractional parts are saved in FracDst elements [FracIdx]..[FracIdx+Len-1]. Size and Dew.Math.clMatrix.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.