Overload List
| # | Signature | Description |
|---|---|---|
| 1 | clMatrix RealPart(TOpenCLMatrix X) | Returns the real part of the complex number. |
| 2 | clValue RealPart(TOpenCLValue X) | Returns the real part of the complex number. |
| 3 | clVector RealPart(TOpenCLVector X) | Returns the real part of the complex number. |
Overload 1: clMatrix RealPart(TOpenCLMatrix X)
Returns the real part of the complex number.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLMatrix | source TOpenCLMatrix |
Returns: clMatrix
Remarks:
Internally calls Dew.Math.clMatrix.RealPart
Overload 2: clValue RealPart(TOpenCLValue X)
Returns the real part of the complex number.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue | source TOpenCLValue |
Returns: clValue
Remarks:
Internally calls Dew.Math.clValue.RealPart
Examples
TOpenCLValue a;
TOpenCLValue b;
MtxVec.CreateIt(out a, out b);
try
{
a.Copy(Cplx(2,3)); // = [2+3i]
b.RealPart(a); // b = new double[] {2}
}
finally
{
MtxVec.FreeIt(ref a, ref b);
}
Overload 3: clVector RealPart(TOpenCLVector X)
Returns the real part of the complex number.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLVector | source TOpenCLVector |
Returns: clVector
Remarks:
Internally calls Dew.Math.clVector.RealPart