TOpenCLMatrix::AddScaled Method

Overload List

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

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

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

#NameTypeDescription
1VecTOpenCLMtxVec *
2aScaleconst double
Remarks:

In addition, the following formula is being used:

result = result+ aScale*Vec

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

Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

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

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 TOpenCLBase::Complex properties of the calling object are set implicitly to match the Vec object.

Declared in Dew::Math::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

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

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

#NameTypeDescription
1VecTOpenCLMtxVec *
2aScaleconst double
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::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler

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

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::TOpenCLMtxVec · Dew.Math/clMtxVec.h · Cross-compiler