clVector.Mul Method

Overload List

#SignatureDescription
1TOpenCLMtxVec Mul(TCplx Value)Multiply all calling object elements with complex Value in-place.
└ indexed: TOpenCLMtxVec Mul(TCplx Value, Int32 Index, Int32 Len)
2TOpenCLMtxVec Mul(TOpenCLMtxVec Vec)Vector multiplication.
└ indexed: TOpenCLMtxVec Mul(TOpenCLMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)
3TOpenCLMtxVec Mul(TOpenCLMtxVec Vec, TCplx Value)Multiply each element of Vec with complex Value.
└ indexed: TOpenCLMtxVec Mul(TOpenCLMtxVec Vec, TCplx Value, Int32 VecIndex, Int32 Index, Int32 Len)
4TOpenCLMtxVec Mul(TOpenCLMtxVec Vec1, TOpenCLMtxVec Vec2)Multiply all Vec1 elements with corresponding Vec2 elements.
└ indexed: TOpenCLMtxVec Mul(TOpenCLMtxVec Vec1, TOpenCLMtxVec Vec2, Int32 Vec1Index, Int32 Vec2Index, Int32 Index, Int32 Len)
5TOpenCLMtxVec Mul(TOpenCLMtxVec Vec, Double Value)Multiply each element of Vec with Value.
└ indexed: TOpenCLMtxVec Mul(TOpenCLMtxVec Vec, Double Value, Int32 VecIndex, Int32 Index, Int32 Len)
6TOpenCLMtxVec Mul(Double Value)Multiply object elements with Value.
└ indexed: TOpenCLMtxVec Mul(Double Value, Int32 Index, Int32 Len)

Overload 1: TOpenCLMtxVec Mul(TCplx Value)

Multiply all calling object elements with complex Value in-place.

#NameTypeDescription
1ValueTCplxscalar

Result: stored in self (calling object), returns self for chaining

Indexed: TOpenCLMtxVec Mul(TCplx Value, Int32 Index, Int32 Len)

Multipy calling object elements [Index]..[Index+Len-1] with complex Value in-place.

#NameTypeDescription
1ValueTCplxscalar
2IndexInt32start index
3LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised if array borders are overrun or underrun.

Overload 2: TOpenCLMtxVec Mul(TOpenCLMtxVec Vec)

Vector multiplication.

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix

Result: stored in self (calling object), returns self for chaining

Remarks:

Multiply each of Vec elements with corresponding elements in the calling object. Size and Dew.Math.clVector.Complex property of the calling object are set automatically. The result is stored in the calling object.

See Also: clVector.Divide

Indexed: TOpenCLMtxVec Mul(TOpenCLMtxVec Vec, Int32 VecIndex, Int32 Index, Int32 Len)

Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with calling object elements [Index]..[Index+Len-1] in-place.

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2VecIndexInt32
3IndexInt32start index
4LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised if Vec and calling object Dew.Math.clVector.Complex property do not match or if array borders are overrun/underrun.

Overload 3: TOpenCLMtxVec Mul(TOpenCLMtxVec Vec, TCplx Value)

Multiply each element of Vec with complex Value.

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2ValueTCplxscalar

Result: stored in self (calling object), returns self for chaining

Remarks:

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

Indexed: TOpenCLMtxVec Mul(TOpenCLMtxVec Vec, TCplx Value, Int32 VecIndex, Int32 Index, Int32 Len)

Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with complex Value.

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2ValueTCplxscalar
3VecIndexInt32
4IndexInt32start index
5LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the result in calling object elements [Index]..[Index+Len-1]. Size of the calling object is not changed. An exception is raised if array borders are overrun or underrun. Dew.Math.clVector.Complex propertiy of the calling object is set to True.

Overload 4: TOpenCLMtxVec Mul(TOpenCLMtxVec Vec1, TOpenCLMtxVec Vec2)

Multiply all Vec1 elements with corresponding Vec2 elements.

#NameTypeDescription
1Vec1TOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2Vec2TOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the results in calling object. Size and Dew.Math.clVector.Complex property of calling object are adjusted automatically to match those of Vec1 and Vec2. An exception is raised if Vec1 and Vec2 size and Dew.Math.clVector.Complex property do not match.

Indexed: TOpenCLMtxVec Mul(TOpenCLMtxVec Vec1, TOpenCLMtxVec Vec2, Int32 Vec1Index, Int32 Vec2Index, Int32 Index, Int32 Len)

Multiply Vec1 elements [Vec1Index]..[Vec1Index+Len-1] with Vec2 object elements [Vec2Index]..[Vec2Index+Len-1].

#NameTypeDescription
1Vec1TOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2Vec2TOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
3Vec1IndexInt32
4Vec2IndexInt32
5IndexInt32start index
6LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the results in calling object elements [Index]..[Index+Len-1]. Size and Dew.Math.clVector.Complex properties of the calling object must be set explicitly. An exception is raised if array borders are overrun or underrun.

Overload 5: TOpenCLMtxVec Mul(TOpenCLMtxVec Vec, Double Value)

Multiply each element of Vec with Value.

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2ValueDoublescalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the result in the calling object. Size and Dew.Math.clVector.Complex properties of the calling object are adjusted automatically.

Indexed: TOpenCLMtxVec Mul(TOpenCLMtxVec Vec, Double Value, Int32 VecIndex, Int32 Index, Int32 Len)

Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with Value.

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2ValueDoublescalar
3VecIndexInt32
4IndexInt32start index
5LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the result in calling object elements [Index]..[Index+Len-1]. Size of the calling object is not changed. An exception is raised if array borders are overrun or underrun. Dew.Math.clVector.Complex propertiy of the calling object is set implicitly.

Overload 6: TOpenCLMtxVec Mul(Double Value)

Multiply object elements with Value.

#NameTypeDescription
1ValueDoublescalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Multiplies all calling object elements with Value in-place.

Examples
clVector v;
v.CopyFromArray(TSingleArray.Create(2,3,5));  // v = new double[] {2,3,5}
v.Mul(3); // v = new double[] {6,9,15}
See Also: clVector.Add

Indexed: TOpenCLMtxVec Mul(Double Value, Int32 Index, Int32 Len)

Multipy calling object elements [Index]..[Index+Len-1] with Value in-place.

#NameTypeDescription
1ValueDoublescalar
2IndexInt32start index
3LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised if array borders are overrun or underrun.