You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMtxVec Class > public > Rem Method > TOpenCLMtxVec.Rem Method (TOpenCLMtxVec, TOpenCLMtxVec, integer, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMtxVec.Rem Method (TOpenCLMtxVec, TOpenCLMtxVec, integer, integer, integer, integer)

Calculates reminder after division X/Y.

Pascal
function Rem(const X: TOpenCLMtxVec; const Y: TOpenCLMtxVec; XIndex: integer; YIndex: integer; Index: integer; Len: integer): TOpenCLMtxVec; overload;

Calculation uses the following formula: 

z[i] = x[xi]-y[yi]*Trunc(x[xi]/y[yi]), 

where i in [Index..Index+Len], xi in [XIndex..XIndex+Len], yi in [YIndex..YIndex+Len]. The results will be saved to the calling vector. X must be a real. An exception will be raised if array borders are overrun.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!