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
| Name | Type | Description |
|---|---|---|
| Caption | String | Stores optional label. |
| CData | IntPtr | Returns Open CL buffer reference. |
| CmdQueue | TOpenCLCommandQueue | Returns the queue on the Device on which we will run functions using this object. |
| Complex | Boolean | Set this property to indicate that object data values are to be treated complex. |
| Device | TOpenCLDevice | Returns the device on which we allocated memory for this object. |
| Length | Int32 | Defines the length in number of elements (single or double precision) of the memory allocated. |
| SData | IntPtr | Returns Open CL buffer reference. |
| Tag | Int64 | Allows storing optional information. |
Methods
| Name | Description |
|---|---|
| Abs | Absolute values. |
| Add (3) | Adds complex Value to Vec. |
| ArcCos | The inverse cosine. |
| ArcCosh | Calculate the inverse hyperbolic cosine of X. |
| ArcCot | Inverse cotangens. |
| ArcCoth | Calculate the inverser hyperbolic cotangens of X. |
| ArcCsc | Calculate the inverse cosecant of X. |
| ArcCsch | Calculate the inverse hyperbolic cosecant of X. |
| ArcSec | Calculate the inverse secant of X. |
| ArcSech | Calculate the inverse hyperbolic secant of X. |
| ArcSin | The inverse sine. |
| ArcSinh | Calculate the inverse hyperbolic sine of X. |
| ArcTan | Inverse tangens. |
| ArcTan2 | Inverse tangens of Y/X. |
| ArcTanh | Calculate the inverse hyperbolic tangens of X. |
| CartToPolar | Converts value from cartesian to polar coordinate form. |
| Cbrt | The cube root. |
| CDataIndex | Returns the index offest in to the buffer. |
| Ceil | Rounds towards positive infinity. |
| Conj | Conjugate. |
| Copy (4) | Copies value from GPU memory. |
| Copyc | Copy complex value from GPU memory. |
| CopyFromArray (2) | Copies array content. |
| Cos | Cosne function. |
| Cosh | Hyperbolic cosine. |
| Cot | Cotangens. |
| Coth | Hyperbolic cotangens. |
| CplxToReal | Split complex calling object in real and imaginary part. |
| Csc | Cosecant. |
| Csch | Calculate the hyperbolic cosecant for all X object elements. |
| Divide | Divide Num with Den. |
| DivideBy (2) | Divide Value with Vec. |
| Erf | Error function. |
| Erfc | Complementary error function. |
| Exp | Exponent (e^). |
| Exp10 | Exponent base 10 (10^X). |
| Exp2 | Exponent base 2 (2^). |
| Expj | A complex exponential e^(j*Omega)). |
| Finish | The calling thread will block until the command queue using this object has finished. |
| FixAngle | Sets angle in [-2PI,2PI]. |
| Flip | Flips the real and imaginary part of a complex number. |
| FlipConj | Flips the real and imaginary part of the complex numbers and conjugates the result. |
| Floor | Rounds Src towards negative infinity and stores the result in the calling object. |
| Frac | Fractional part of values. |
| ImagPart | Gets the imaginary part of a complex value. |
| IntPower | Power (integer exponent). |
| Inv | Inverse elements. |
| InvCbrt | The inverse of cube root 1/(v)^1/3. |
| InvSqrt | The inverse of square root 1/(v)^1/2. |
| Ln | Natural logarithm. |
| Log10 | Log base 10. |
| Log2 | Log base 2. |
| LogN | Log base N. |
| Mag | Magnitude. |
| Mul (3) | Multiply Vec with Value. |
| MulI | Multiply X with 1i and store the result in to the calling object. |
| PolarToCart | Converts the polar magnitude/phase pair to cartesian pair. |
| Power | Raises base to any power. |
| RealPart | Gets real part of the complex value. |
| RealToCplx | Constructs a complex object from two real objects. |
| Rem | The Reminder after division X/Y. |
| Round | Round Src. |
| SDataIndex | Returns the index offest in to the buffer. |
| Sec | Secant. |
| Sech | Calculate the hyperbolic secant for all X object elements. |
| Sgn | Computes signum function from Src and stores the result in the calling object. |
| SgnMul | Signum. |
| Sin | Sine function. |
| SinCos | Sine and cosine. |
| Sinh | Hyperbolic sine. |
| SinhCosh | Hyperbolic 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. |
| Sqr | Square. |
| Sqrt | Square root. |
| Sub (3) | Subtract complex Value from Src. |
| SubFrom (2) | subtract Vec from Value. |
| Tan | Tangens. |
| Tanh | Hyperbolic tangens. |
| ThreshBottom | Threshold bottom operation. |
| ThresholdGT (2) | Perform "greater than" threshold operation for complex value in Vec. |
| ThresholdGT_LT | Threshold greater than and less than operation. |
| ThresholdLT (2) | Perform "less than" threshold operation for complex value in Vec. |
| ThreshTop | Threshold top operation. |
| Trunc | Truncate all Src object elements. |
| TruncAndFrac | Rounds a real number towards zero and returns the fractional part. |