clVector::Mul Method

Overload List

#SignatureDescription
1TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2, int Vec1Index, int Vec2Index, int Index, int Len) const;Multiply Vec1 elements [Vec1Index]..[Vec1Index+Len-1] with Vec2 object elements [Vec2Index]..[Vec2Index+Len-1].
2TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2) const;Multiply all Vec1 elements with corresponding Vec2 elements.
3TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec) const;Vector multiplication.
4TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec, int VecIndex, int Index, int Len) const;Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with calling object elements [Index]..[Index+Len-1] in-place.
5TOpenCLMtxVec *Mul(const double Value) const;Multiply object elements with Value.
6TOpenCLMtxVec *Mul(const TCplx &Value) const;Multiply all calling object elements with complex Value in-place.
7TOpenCLMtxVec *Mul(const double Value, int Index, int Len) const;Multipy calling object elements [Index]..[Index+Len-1] with Value in-place.
8TOpenCLMtxVec *Mul(const TCplx &Value, int Index, int Len) const;Multipy calling object elements [Index]..[Index+Len-1] with complex Value in-place.
9TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec, const double Value) const;Multiply each element of Vec with Value.
10TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec, const TCplx &Value) const;Multiply each element of Vec with complex Value.
11TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec, const double Value, int VecIndex, int Index, int Len) const;Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with Value.
12TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec, const TCplx &Value, int VecIndex, int Index, int Len) const;Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with complex Value.

Overload 1: TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2, int Vec1Index, int Vec2Index, int Index, int Len) const;

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

#NameTypeDescription
1Vec1TOpenCLMtxVec *
2Vec2TOpenCLMtxVec *
3Vec1Indexint
4Vec2Indexint
5Indexint
6Lenint
Remarks:

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

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 2: TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec1, TOpenCLMtxVec *Vec2) const;

Multiply all Vec1 elements with corresponding Vec2 elements.

#NameTypeDescription
1Vec1TOpenCLMtxVec *
2Vec2TOpenCLMtxVec *
Remarks:

Store the results in calling object. Size and 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 clVector::Complex property do not match.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 3: TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec) const;

Vector multiplication.

#NameTypeDescription
1VecTOpenCLMtxVec *
Remarks:

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

See Also: clVector::Divide
Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 4: TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec, int VecIndex, int Index, int Len) const;

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

#NameTypeDescription
1VecTOpenCLMtxVec *
2VecIndexint
3Indexint
4Lenint
Remarks:

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

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 5: TOpenCLMtxVec *Mul(const double Value) const;

Multiply object elements with Value.

#NameTypeDescription
1Valueconst double
Remarks:

Multiplies all calling object elements with Value in-place.

See Also: clVector::Add
Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 6: TOpenCLMtxVec *Mul(const TCplx &Value) const;

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

#NameTypeDescription
1Valueconst TCplx &
Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 7: TOpenCLMtxVec *Mul(const double Value, int Index, int Len) const;

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

#NameTypeDescription
1Valueconst double
2Indexint
3Lenint
Remarks:

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

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 8: TOpenCLMtxVec *Mul(const TCplx &Value, int Index, int Len) const;

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

#NameTypeDescription
1Valueconst TCplx &
2Indexint
3Lenint
Remarks:

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

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 9: TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec, const double Value) const;

Multiply each element of Vec with Value.

#NameTypeDescription
1VecTOpenCLMtxVec *
2Valueconst double
Remarks:

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

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 10: TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec, const TCplx &Value) const;

Multiply each element of Vec with complex Value.

#NameTypeDescription
1VecTOpenCLMtxVec *
2Valueconst TCplx &
Remarks:

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

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 11: TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec, const double Value, int VecIndex, int Index, int Len) const;

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

#NameTypeDescription
1VecTOpenCLMtxVec *
2Valueconst double
3VecIndexint
4Indexint
5Lenint
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. clVector::Complex propertiy of the calling object is set implicitly.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 12: TOpenCLMtxVec *Mul(TOpenCLMtxVec *Vec, const TCplx &Value, int VecIndex, int Index, int Len) const;

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

#NameTypeDescription
1VecTOpenCLMtxVec *
2Valueconst TCplx &
3VecIndexint
4Indexint
5Lenint
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. clVector::Complex propertiy of the calling object is set to True.

Declared in Dew::Math::clVector · Dew.Math/clMtxExpr.h · Cross-compiler