TVec.AddScaled Method

Overload List

#SignatureDescription
1TMtxVec AddScaled(TMtxVec Vec, TCplx aScale)Add each of Vec elements to corresponding elements in the calling object.
└ indexed: TMtxVec AddScaled(TMtxVec Vec, TCplx aScale, Int32 VecIndex, Int32 Index, Int32 Len)
2TMtxVec AddScaled(TMtxVec X, TCplx xScale, TMtxVec Y, TCplx yScale)self = X*xScale + Y*yScale
└ indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TCplx xScale, TMtxVec Y, Int32 YIndex, TCplx yScale, Int32 Index, Int32 Len)
3TMtxVec AddScaled(TMtxVec X, TCplx xScale, TMtxVec Y, TCplx yScale, TMtxVec Z, TCplx zScale)self = X*xScale + Y*yScale + Z*zScale
└ indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TCplx xScale, TMtxVec Y, Int32 YIndex, TCplx yScale, TMtxVec Z, Int32 zIndex, TCplx zScale, Int32 Index, Int32 Len)
4TMtxVec AddScaled(TMtxVec X, TMtxVec Y, TCplx yScale)self = X + Y*yScale with complex arguments
└ indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, TCplx yScale, Int32 Index, Int32 Len)
5TMtxVec AddScaled(TMtxVec X, TMtxVec Y, TCplx yScale, TMtxVec Z, TCplx zScale)self = X + Y*yScale + Z*zScale
└ indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, TCplx yScale, TMtxVec Z, Int32 zIndex, TCplx zScale, Int32 Index, Int32 Len)
6TMtxVec AddScaled(TMtxVec X, TMtxVec Y, TMtxVec Z, TCplx zScale)self = X + Y + Z*zScale
└ indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, TMtxVec Z, Int32 zIndex, TCplx zScale, Int32 Index, Int32 Len)
7TMtxVec AddScaled(TMtxVec X, TMtxVec Y, TMtxVec Z, Double zScale)self = X + Y + Z*zScale
└ indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, TMtxVec Z, Int32 zIndex, Double zScale, Int32 Index, Int32 Len)
8TMtxVec AddScaled(TMtxVec X, TMtxVec Y, Double yScale)self = X + Y*yScale
└ indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, Double yScale, Int32 Index, Int32 Len)
9TMtxVec AddScaled(TMtxVec X, TMtxVec Y, Double yScale, TMtxVec Z, Double zScale)self = X + Y*yScale + Z*zScale
└ indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, Double yScale, TMtxVec Z, Int32 zIndex, Double zScale, Int32 Index, Int32 Len)
10TMtxVec AddScaled(TMtxVec Vec, Double aScale)Add each of Vec elements to corresponding elements in the calling object.
└ indexed: TMtxVec AddScaled(TMtxVec Vec, Double aScale, Int32 VecIndex, Int32 Index, Int32 Len)
11TMtxVec AddScaled(TMtxVec X, Double xScale, TMtxVec Y, Double yScale)self = X*xScale + Y*yScale
└ indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, Double xScale, TMtxVec Y, Int32 YIndex, Double yScale, Int32 Index, Int32 Len)
12TMtxVec AddScaled(TMtxVec X, Double xScale, TMtxVec Y, Double yScale, TMtxVec Z, Double zScale)self = X*xScale + Y*yScale + Z*zScale
└ indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, Double xScale, TMtxVec Y, Int32 YIndex, Double yScale, TMtxVec Z, Int32 zIndex, Double zScale, Int32 Index, Int32 Len)
13TMtxVec AddScaled(TMtxVec Vec, Double RScale, Double IScale)Add each of Vec elements to corresponding elements in the calling object.

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

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

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
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.TMtxVec.Complex properties of the calling object are set implicitly to match the Vec object.

Indexed: TMtxVec AddScaled(TMtxVec 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
1VecTMtxVecsource TVec or TMtx
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 Dew.Math.TMtxVecBase.ConditionCheck is true and array borders are overrun.

Overload 2: TMtxVec AddScaled(TMtxVec X, TCplx xScale, TMtxVec Y, TCplx yScale)

Compute X*xScale + Y*yScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2xScaleTCplxscalar
3YTMtxVecsource TVec or TMtx
4yScaleTCplxscalar

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

Indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TCplx xScale, TMtxVec Y, Int32 YIndex, TCplx yScale, Int32 Index, Int32 Len)

Compute X*xScale + Y*yScale on sub arrays

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexInt32X start index
3xScaleTCplxscalar
4YTMtxVecsource TVec or TMtx
5YIndexInt32Y start index
6yScaleTCplxscalar
7IndexInt32start index
8LenInt32element count

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

Overload 3: TMtxVec AddScaled(TMtxVec X, TCplx xScale, TMtxVec Y, TCplx yScale, TMtxVec Z, TCplx zScale)

Compute X*xScale + Y*yScale + Z*zScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2xScaleTCplxscalar
3YTMtxVecsource TVec or TMtx
4yScaleTCplxscalar
5ZTMtxVecsource TVec or TMtx
6zScaleTCplxscalar

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

Indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TCplx xScale, TMtxVec Y, Int32 YIndex, TCplx yScale, TMtxVec Z, Int32 zIndex, TCplx zScale, Int32 Index, Int32 Len)

Compute X*xScale + Y*yScale + Z*zScale on sub arrays

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexInt32X start index
3xScaleTCplxscalar
4YTMtxVecsource TVec or TMtx
5YIndexInt32Y start index
6yScaleTCplxscalar
7ZTMtxVecsource TVec or TMtx
8zIndexInt32
9zScaleTCplxscalar
10IndexInt32start index
11LenInt32element count

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

Overload 4: TMtxVec AddScaled(TMtxVec X, TMtxVec Y, TCplx yScale)

Compute X + Y*yScale with complex arguments.

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3yScaleTCplxscalar

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

Indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, TCplx yScale, Int32 Index, Int32 Len)

Compute X + Y*yScale on sub arrays with complex arguments.

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexInt32X start index
3YTMtxVecsource TVec or TMtx
4YIndexInt32Y start index
5yScaleTCplxscalar
6IndexInt32start index
7LenInt32element count

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

Overload 5: TMtxVec AddScaled(TMtxVec X, TMtxVec Y, TCplx yScale, TMtxVec Z, TCplx zScale)

Compute X + Y*yScale + Z*zScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3yScaleTCplxscalar
4ZTMtxVecsource TVec or TMtx
5zScaleTCplxscalar

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

Indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, TCplx yScale, TMtxVec Z, Int32 zIndex, TCplx zScale, Int32 Index, Int32 Len)

Compute X + Y*yScale + Z*zScale on sub arrays

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexInt32X start index
3YTMtxVecsource TVec or TMtx
4YIndexInt32Y start index
5yScaleTCplxscalar
6ZTMtxVecsource TVec or TMtx
7zIndexInt32
8zScaleTCplxscalar
9IndexInt32start index
10LenInt32element count

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

Overload 6: TMtxVec AddScaled(TMtxVec X, TMtxVec Y, TMtxVec Z, TCplx zScale)

Compute X + Y + Z*zScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3ZTMtxVecsource TVec or TMtx
4zScaleTCplxscalar

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

Indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, TMtxVec Z, Int32 zIndex, TCplx zScale, Int32 Index, Int32 Len)

Compute X + Y + Z*zScale on sub arrays

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexInt32X start index
3YTMtxVecsource TVec or TMtx
4YIndexInt32Y start index
5ZTMtxVecsource TVec or TMtx
6zIndexInt32
7zScaleTCplxscalar
8IndexInt32start index
9LenInt32element count

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

Overload 7: TMtxVec AddScaled(TMtxVec X, TMtxVec Y, TMtxVec Z, Double zScale)

Compute X + Y + Z*zScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3ZTMtxVecsource TVec or TMtx
4zScaleDoublescalar

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

Indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, TMtxVec Z, Int32 zIndex, Double zScale, Int32 Index, Int32 Len)

Compute X + Y + Z*zScale on sub arrays

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexInt32X start index
3YTMtxVecsource TVec or TMtx
4YIndexInt32Y start index
5ZTMtxVecsource TVec or TMtx
6zIndexInt32
7zScaleDoublescalar
8IndexInt32start index
9LenInt32element count

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

Overload 8: TMtxVec AddScaled(TMtxVec X, TMtxVec Y, Double yScale)

Compute X + Y*yScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3yScaleDoublescalar

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

Indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, Double yScale, Int32 Index, Int32 Len)

Compute X + Y*yScale on sub arrays.

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexInt32X start index
3YTMtxVecsource TVec or TMtx
4YIndexInt32Y start index
5yScaleDoublescalar
6IndexInt32start index
7LenInt32element count

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

Overload 9: TMtxVec AddScaled(TMtxVec X, TMtxVec Y, Double yScale, TMtxVec Z, Double zScale)

Compute X + Y*yScale + Z*zScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2YTMtxVecsource TVec or TMtx
3yScaleDoublescalar
4ZTMtxVecsource TVec or TMtx
5zScaleDoublescalar

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

Indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, TMtxVec Y, Int32 YIndex, Double yScale, TMtxVec Z, Int32 zIndex, Double zScale, Int32 Index, Int32 Len)

Compute X + Y*yScale + Z*zScale on sub arrays

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexInt32X start index
3YTMtxVecsource TVec or TMtx
4YIndexInt32Y start index
5yScaleDoublescalar
6ZTMtxVecsource TVec or TMtx
7zIndexInt32
8zScaleDoublescalar
9IndexInt32start index
10LenInt32element count

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

Overload 10: TMtxVec AddScaled(TMtxVec Vec, Double aScale)

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

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
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.TMtxVec.Complex properties of the calling object are set implicitly to match the Vec object.

Indexed: TMtxVec AddScaled(TMtxVec 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
1VecTMtxVecsource TVec or TMtx
2aScaleDoublescalar
3VecIndexInt32
4IndexInt32start index
5LenInt32element count

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

Remarks:

The following formula is being used:

result = result + aScale*Vec .

An exception is raised if Dew.Math.TMtxVecBase.ConditionCheck is true and array borders are overrun.

Overload 11: TMtxVec AddScaled(TMtxVec X, Double xScale, TMtxVec Y, Double yScale)

Compute X*xScale + Y*yScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2xScaleDoublescalar
3YTMtxVecsource TVec or TMtx
4yScaleDoublescalar

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

Indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, Double xScale, TMtxVec Y, Int32 YIndex, Double yScale, Int32 Index, Int32 Len)

Compute X*xScale + Y*yScale on sub arrays

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexInt32X start index
3xScaleDoublescalar
4YTMtxVecsource TVec or TMtx
5YIndexInt32Y start index
6yScaleDoublescalar
7IndexInt32start index
8LenInt32element count

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

Overload 12: TMtxVec AddScaled(TMtxVec X, Double xScale, TMtxVec Y, Double yScale, TMtxVec Z, Double zScale)

Compute X*xScale + Y*yScale + Z*zScale

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2xScaleDoublescalar
3YTMtxVecsource TVec or TMtx
4yScaleDoublescalar
5ZTMtxVecsource TVec or TMtx
6zScaleDoublescalar

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

Indexed: TMtxVec AddScaled(TMtxVec X, Int32 XIndex, Double xScale, TMtxVec Y, Int32 YIndex, Double yScale, TMtxVec Z, Int32 zIndex, Double zScale, Int32 Index, Int32 Len)

Compute X*xScale + Y*yScale + Z*zScale on sub arrays

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexInt32X start index
3xScaleDoublescalar
4YTMtxVecsource TVec or TMtx
5YIndexInt32Y start index
6yScaleDoublescalar
7ZTMtxVecsource TVec or TMtx
8zIndexInt32
9zScaleDoublescalar
10IndexInt32start index
11LenInt32element count

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

Overload 13: TMtxVec AddScaled(TMtxVec Vec, Double RScale, Double IScale)

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

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2RScaleDoublescalar
3IScaleDoublescalar

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

Remarks:

In addition, the following formula is being used:

result = result+ Cplx(RScale,IScale)*Vec .

When default values for parameters are being used the "normal" addition is being performed. The results are stored in the calling object. Size and Dew.Math.TMtxVec.Complex properties of the calling object are set implicitly to match the Vec object.