clVector::AddScaled Method

Overload List

#SignatureDescription
1TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, double aScale) const;Add each of Vec elements to corresponding elements in the calling object.
2TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, const TCplx &aScale) const;Add each of Vec elements to corresponding elements in the calling object.
3TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, double aScale, int VecIndex, int Index, int Len) const;Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].
4TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, const TCplx &aScale, int VecIndex, int Index, int Len) const;Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].

Overload 1: TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, double aScale) const;

Add each of Vec elements to corresponding elements in the calling object.

#NameTypeDescription
1VecTOpenCLMtxVec *
2aScaledouble
Remarks:

In addition, the following formula is being used:

result = result+ aScale*Vec

The results are stored in the calling object. Size and clVector::Complex properties of the calling object are set implicitly to match the Vec object.

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

Overload 2: TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, const TCplx &aScale) const;

Add each of Vec elements to corresponding elements in the calling object.

#NameTypeDescription
1VecTOpenCLMtxVec *
2aScaleconst TCplx &
Remarks:

In addition, the following formula is being used:

result = result+ aScale*Vec

The results are stored in the calling object. Size and clVector::Complex properties of the calling object are set implicitly to match the Vec object.

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

Overload 3: TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, double aScale, int VecIndex, int Index, int Len) const;

Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].

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

In addition, the following formula is being used:

result = result+ Cplx(aScale)*Vec

An exception is raised if array borders are overrun.

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

Overload 4: TOpenCLMtxVec *AddScaled(TOpenCLMtxVec *Vec, const TCplx &aScale, int VecIndex, int Index, int Len) const;

Adds Vec elements [VecIndex]..[VecIndex+Len-1] to calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1VecTOpenCLMtxVec *
2aScaleconst TCplx &
3VecIndexint
4Indexint
5Lenint
Remarks:

In addition, the following formula is being used:

result = result+ aScale*Vec

An exception is raised if array borders are overrun.

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