clValue.Mul Method

Overload List

#SignatureDescription
1function Mul(const Vec: TOpenCLValue; Value: TCplx): TOpenCLValue;Multiply Src with complex Value.
2function Mul(const Src1: TOpenCLValue; const Src2: TOpenCLValue): TOpenCLValue;Multiply Src1 with Src2.
3function Mul(const Vec: TOpenCLValue; Value: Double): TOpenCLValue;Multiply each element of Vec with Value.

Overload 1: function Mul(const Vec: TOpenCLValue; Value: TCplx): TOpenCLValue;

Multiply Src with complex Value.

#NameTypeDescription
1VecTOpenCLValue
2ValueTCplxscalar

Returns: TOpenCLValue

Remarks:

Store the result in the calling object. Size of the calling object is set automatically. clValue.Complex property of the calling object is set to True.

Overload 2: function Mul(const Src1: TOpenCLValue; const Src2: TOpenCLValue): TOpenCLValue;

Multiply Src1 with Src2.

#NameTypeDescription
1Src1TOpenCLValue
2Src2TOpenCLValue

Returns: TOpenCLValue

Remarks:

Stores the result in the calling object. FloatPrecision and clValue.Complex property of calling object are adjusted automatically to match those of Src1 and Src2. An exception is raised if Src1 and Src2 size and clValue.Complex property do not match.

Overload 3: function Mul(const Vec: TOpenCLValue; Value: Double): TOpenCLValue;

Multiply each element of Vec with Value.

#NameTypeDescription
1VecTOpenCLValue
2ValueDoublescalar

Returns: TOpenCLValue

Remarks:

Store the result in the calling object. Size and clValue.Complex properties of the calling object are adjusted automatically.