clValue.RealPart Method

TOpenCLValue RealPart(TOpenCLValue Vec)

Gets real part of complex object value.

#NameTypeDescription
1VecTOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

The method method gets the real part of a complex object Vec and stores the real result in the calling object. FloatPrecision and Dew.Math.clValue.Complex properties of the calling object are set implicitly to match Vec object. Vec Dew.Math.clValue.Complex property must be true otherwise an exception is raised.

Examples
clValue a;
clValue b;
a.Copy(Cplx(2,3)); // = [2+3i]
b.RealPart(a); // b = new double[] {2}
See Also: clValue.ImagPart