TOpenCLVector.AddScaled Method

Overload List

#SignatureDescription
1TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, TCplx aScale)Add each of Vec elements to corresponding elements in the calling object.
└ indexed: TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, TCplx aScale, Int32 VecIndex, Int32 Index, Int32 Len)
2TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, Double aScale)Add each of Vec elements to corresponding elements in the calling object.
└ indexed: TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, Double aScale, Int32 VecIndex, Int32 Index, Int32 Len)

Overload 1: TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, TCplx aScale)

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

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2aScaleTCplxscalar

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

Remarks:

In addition, the following formula is being used:

result = result+ aScale*Vec .

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

Indexed: TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, TCplx aScale, Int32 VecIndex, Int32 Index, Int32 Len)

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

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

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

Remarks:

In addition, the following formula is being used:

result = result+ aScale*Vec

An exception is raised if array borders are overrun.

Overload 2: TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, Double aScale)

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

#NameTypeDescription
1VecTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2aScaleDoublescalar

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

Remarks:

In addition, the following formula is being used:

result = result+ aScale*Vec

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

Indexed: TOpenCLMtxVec AddScaled(TOpenCLMtxVec Vec, Double aScale, Int32 VecIndex, Int32 Index, Int32 Len)

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

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

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

Remarks:

In addition, the following formula is being used:

result = result+ Cplx(aScale)*Vec

An exception is raised if array borders are overrun.