TOpenCLValue Class

Source: clMtxVec.cs · Assembly: Dew.Math
TOpenCLBaseTOpenCLValue

public class TOpenCLValue : TOpenCLBase

Stores a single real or complex value in GPU memory.

Copying data from and to (from CPU separate) GPU memory can cause long delays even if that data is short. Sometimes it makes sense to keep even single value variables in the GPU memory. Use this object to avoid copying individual values from GPU to CPU memory.

Properties

NameTypeDescription
CaptionStringStores optional label.
CDataIntPtrReturns Open CL buffer reference.
CmdQueueTOpenCLCommandQueueReturns the queue on the Device on which we will run functions using this object.
ComplexBooleanSet this property to indicate that object data values are to be treated complex.
DeviceTOpenCLDeviceReturns the device on which we allocated memory for this object.
LengthInt32Defines the length in number of elements (single or double precision) of the memory allocated.
SDataIntPtrReturns Open CL buffer reference.
TagInt64Allows storing optional information.

Methods

NameDescription
AbsAbsolute values.
Add (3)Adds complex Value to Vec.
ArcCosThe inverse cosine.
ArcCoshCalculate the inverse hyperbolic cosine of X.
ArcCotInverse cotangens.
ArcCothCalculate the inverser hyperbolic cotangens of X.
ArcCscCalculate the inverse cosecant of X.
ArcCschCalculate the inverse hyperbolic cosecant of X.
ArcSecCalculate the inverse secant of X.
ArcSechCalculate the inverse hyperbolic secant of X.
ArcSinThe inverse sine.
ArcSinhCalculate the inverse hyperbolic sine of X.
ArcTanInverse tangens.
ArcTan2Inverse tangens of Y/X.
ArcTanhCalculate the inverse hyperbolic tangens of X.
CartToPolarConverts value from cartesian to polar coordinate form.
CbrtThe cube root.
CDataIndexReturns the index offest in to the buffer.
CeilRounds towards positive infinity.
ConjConjugate.
Copy (4)Copies value from GPU memory.
CopycCopy complex value from GPU memory.
CopyFromArray (2)Copies array content.
CosCosne function.
CoshHyperbolic cosine.
CotCotangens.
CothHyperbolic cotangens.
CplxToRealSplit complex calling object in real and imaginary part.
CscCosecant.
CschCalculate the hyperbolic cosecant for all X object elements.
DivideDivide Num with Den.
DivideBy (2)Divide Value with Vec.
ErfError function.
ErfcComplementary error function.
ExpExponent (e^).
Exp10Exponent base 10 (10^X).
Exp2Exponent base 2 (2^).
ExpjA complex exponential e^(j*Omega)).
FinishThe calling thread will block until the command queue using this object has finished.
FixAngleSets angle in [-2PI,2PI].
FlipFlips the real and imaginary part of a complex number.
FlipConjFlips the real and imaginary part of the complex numbers and conjugates the result.
FloorRounds Src towards negative infinity and stores the result in the calling object.
FracFractional part of values.
ImagPartGets the imaginary part of a complex value.
IntPowerPower (integer exponent).
InvInverse elements.
InvCbrtThe inverse of cube root 1/(v)^1/3.
InvSqrtThe inverse of square root 1/(v)^1/2.
LnNatural logarithm.
Log10Log base 10.
Log2Log base 2.
LogNLog base N.
MagMagnitude.
Mul (3)Multiply Vec with Value.
MulIMultiply X with 1i and store the result in to the calling object.
PolarToCartConverts the polar magnitude/phase pair to cartesian pair.
PowerRaises base to any power.
RealPartGets real part of the complex value.
RealToCplxConstructs a complex object from two real objects.
RemThe Reminder after division X/Y.
RoundRound Src.
SDataIndexReturns the index offest in to the buffer.
SecSecant.
SechCalculate the hyperbolic secant for all X object elements.
SgnComputes signum function from Src and stores the result in the calling object.
SgnMulSignum.
SinSine function.
SinCosSine and cosine.
SinhHyperbolic sine.
SinhCoshHyperbolic sine and cosine.
Size (2)Sets the calling object to match the size of the Src object.
SizeToArray (8)Sets the size of the array to match the size of the object.
SqrSquare.
SqrtSquare root.
Sub (3)Subtract complex Value from Src.
SubFrom (2)subtract Vec from Value.
TanTangens.
TanhHyperbolic tangens.
ThreshBottomThreshold bottom operation.
ThresholdGT (2)Perform "greater than" threshold operation for complex value in Vec.
ThresholdGT_LTThreshold greater than and less than operation.
ThresholdLT (2)Perform "less than" threshold operation for complex value in Vec.
ThreshTopThreshold top operation.
TruncTruncate all Src object elements.
TruncAndFracRounds a real number towards zero and returns the fractional part.