You are here:
Symbol Reference >
Dew Namespace
>
Dew.Math Namespace
>
Classes
>
TOpenCLVector Class
>
TOpenCLVector Methods
>
Ramp Method
>
TOpenCLVector.Ramp Method ()
Dew Math for .NET
Example
TOpenCLVector.Ramp Method ()
var a:
TOpenCLVector
; begin clMtxVec.CreateIt(a);
try
a.Size(5,True); a.Ramp(0,PI); a.Sin;
finally
clMtxVec.FreeIt(a); end; end;
which is identical to:
clMtxVec.CreateIt(a);
try
a.Size(5,True);
for
i:= 0 to a.Length-1
do
a[i] := sin(i * PI);
finally
clMtxVec.FreeIt(a); end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
Contents
|
Index
|
Home