You are here: Symbol Reference > clMtxExpr Namespace > Classes > clMatrix Record > public > Rem Method > clMatrix.Rem Method (TOpenCLMtxVec, double, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
clMatrix.Rem Method (TOpenCLMtxVec, double, integer, integer, integer)

Calculates reminder after division X/Y.

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

Reminder is calculated by using the following formula: 

x[i]-y*Trunc(x[i]/y). 

X must be a real. The results will be saved to the calling vector. An exception will be raised if array borders are overrun.

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