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

Fills the calling vector elements [Index]..[Index+Len-1].

Pascal
function Ramp(Offset: double; Step: double; Index: integer; Len: integer): TOpenCLVector; overload;

Method uses the following rule: 

 

Values[k] := Offset + k*Step.

 

If the calling vector is complex, only the real part is set. An exception is raised if calling vector array borders are overrun.

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