Vector.Sub Method

Overload List

#SignatureDescription
1function Sub(Value: TCplx): TMtxVec; overload;Subtracts complex Value from all calling object complex elements.
└ indexed: function Sub(Value: TCplx; Index, Len: integer): TMtxVec; overload;
2function Sub(const Vec: TMtxVec): TMtxVec; overload;Array subtraction.
└ indexed: function Sub(const Vec: TMtxVec; VecIndex, Index, Len: integer): TMtxVec; overload;
3function Sub(const Src: TMtxVec; Value: TCplx): TMtxVec; overload;Subtract complex Value from Src store the results in calling object.
└ indexed: function Sub(const Src: TMtxVec; Value: TCplx; SrcIndex, Index, Len: integer): TMtxVec; overload;
4function Sub(const Vec1, Vec2: TMtxVec): TMtxVec; overload;Subtract Vec2 elements from Vec1 elements and store the results in calling object.
└ indexed: function Sub(const Vec1, Vec2: TMtxVec; Vec1Index, Vec2Index, Index, Len: integer): TMtxVec; overload;
5function Sub(const X, Y: TMtxVec; const Z: Double): TMtxVec; overload;self = X - Y - zScalar
6function Sub(const X, Y: TMtxVec; const Z: TCplx): TMtxVec; overload;self = X - Y - zScalar
7function Sub(const X, Y, Z: TMtxVec): TMtxVec; overload;self = X - Y - Z
8function Sub(const Src: TMtxVec; Value: double): TMtxVec; overload;Subtract real Value from Src.
└ indexed: function Sub(const Src: TMtxVec; Value: double; SrcIndex, Index, Len: integer): TMtxVec; overload;
9function Sub(Value: double): TMtxVec; overload;Subtracts Value from object elements.
└ indexed: function Sub(Value: double; Index, Len: integer): TMtxVec; overload;
10function Sub(const X: TMtxVec; xIndex: integer; const Y: TMtxVec; yIndex: integer; const Z: Double; Index, Len: integer): TMtxVec; overload;self = X - Y - zScalar
11function Sub(const X: TMtxVec; xIndex: integer; const Y: TMtxVec; yIndex: integer; const Z: TCplx; Index, Len: integer): TMtxVec; overload;self = X - Y - zScalar
12function Sub(const X: TMtxVec; xIndex: integer; const Y: TMtxVec; yIndex: integer;const Z: TMtxVec; zIndex: integer; Index, Len: integer): TMtxVec; overload;self = X - Y - Z

Overload 1: function Sub(Value: TCplx): TMtxVec; overload;

Subtracts complex Value from all calling object complex elements.

#NameTypeDescription
1ValueTCplxscalar

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

Indexed: function Sub(Value: TCplx; Index, Len: integer): TMtxVec; overload;

Subtracts complex Value from calling object complex elements [Index]..[Index+Len-1].

#NameTypeDescription
1ValueTCplxscalar
2Indexintegerstart index
3Lenintegerelement count

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

Remarks:

An exception is raised if array borders are overrun.

Overload 2: function Sub(const Vec: TMtxVec): TMtxVec; overload;

Array subtraction.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx

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

Remarks:

Subtract each of Vec elements from corresponding elements in the calling object. An exception is raised if Vec and calling object size and Vector.Complex properties do not match.

See Also: Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.op_Addition, Vector.op_Addition, Vector.op_Addition, Vector.op_Addition, Vector.op_Addition, Vector.op_Addition, Vector.op_Addition

Indexed: function Sub(const Vec: TMtxVec; VecIndex, Index, Len: integer): TMtxVec; overload;

Subtract Vec elements [VecIndex]..[VecIndex+Len-1] from corresponding calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2VecIndexinteger
3Indexintegerstart index
4Lenintegerelement count

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

Remarks:

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

Overload 3: function Sub(const Src: TMtxVec; Value: TCplx): TMtxVec; overload;

Subtract complex Value from Src store the results in calling object.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx
2ValueTCplxscalar

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

Remarks:

Size and Vector.Complex property of calling object are adjusted automatically.

Indexed: function Sub(const Src: TMtxVec; Value: TCplx; SrcIndex, Index, Len: integer): TMtxVec; overload;

Subtract complex Value from Src elements [SrcIndex]..[SrcIndex+Len-1] and store the result in calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx
2ValueTCplxscalar
3SrcIndexintegersource start index
4Indexintegerstart index
5Lenintegerelement count

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

Remarks:

Size and Vector.Complex properties of the calling object must be set explicitly. An exception is raised if Vector.ConditionCheck is True and array borders are overrun or underrun.

Overload 4: function Sub(const Vec1, Vec2: TMtxVec): TMtxVec; overload;

Subtract Vec2 elements from Vec1 elements and store the results in calling object.

#NameTypeDescription
1Vec1TMtxVecsource TVec or TMtx
2Vec2TMtxVecsource TVec or TMtx

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

Remarks:

Size and Vector.Complex property of calling object are adjusted automatically. An exception is raised if Vec1 and Vec2 size and Vector.Complex property do not match.

Indexed: function Sub(const Vec1, Vec2: TMtxVec; Vec1Index, Vec2Index, Index, Len: integer): TMtxVec; overload;

Subtract Vec22 elements [Vec2Index]..[Vec2Index+Len-1] from Vec1 object elements [Vec1Index]..[Vec1Index+Len-1].

#NameTypeDescription
1Vec1TMtxVecsource TVec or TMtx
2Vec2TMtxVecsource TVec or TMtx
3Vec1Indexinteger
4Vec2Indexinteger
5Indexintegerstart index
6Lenintegerelement count

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

Remarks:

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

Overload 5: function Sub(const X, Y: TMtxVec; const Z: Double): TMtxVec; overload;

Compute X - Y - zScalar

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

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

Overload 6: function Sub(const X, Y: TMtxVec; const Z: TCplx): TMtxVec; overload;

Compute X - Y - zScalar

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

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

Overload 7: function Sub(const X, Y, Z: TMtxVec): TMtxVec; overload;

Compute X - Y - Z

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

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

Overload 8: function Sub(const Src: TMtxVec; Value: double): TMtxVec; overload;

Subtract real Value from Src.

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx
2Valuedoublescalar

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

Remarks:

Store the results in calling object. Size and Vector.Complex property of calling object are adjusted automatically.

Indexed: function Sub(const Src: TMtxVec; Value: double; SrcIndex, Index, Len: integer): TMtxVec; overload;

Subtract real Value from Src elements [SrcIndex]..[SrcIndex+Len-1] and store the result in calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1SrcTMtxVecsource TVec or TMtx
2Valuedoublescalar
3SrcIndexintegersource start index
4Indexintegerstart index
5Lenintegerelement count

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

Remarks:

Size and Vector.Complex properties of the calling object must be set explicitly. An exception is raised if Vector.ConditionCheck is True and array borders are overrun or underrun.

Overload 9: function Sub(Value: double): TMtxVec; overload;

Subtracts Value from object elements.

#NameTypeDescription
1Valuedoublescalar

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

Remarks:

Subtracts Value from all calling object elements.

See Also: Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.Add, Vector.op_Addition, Vector.op_Addition, Vector.op_Addition, Vector.op_Addition, Vector.op_Addition, Vector.op_Addition, Vector.op_Addition

Indexed: function Sub(Value: double; Index, Len: integer): TMtxVec; overload;

Subtracts Value from calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1Valuedoublescalar
2Indexintegerstart index
3Lenintegerelement count

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

Remarks:

An exception is raised if array borders are overrun.

Overload 10: function Sub(const X: TMtxVec; xIndex: integer; const Y: TMtxVec; yIndex: integer; const Z: Double; Index, Len: integer): TMtxVec; overload;

Compute X - Y - zScalar on sub array

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2xIndexinteger
3YTMtxVecsource TVec or TMtx
4yIndexinteger
5ZDoublescalar
6Indexintegerstart index
7Lenintegerelement count

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

Overload 11: function Sub(const X: TMtxVec; xIndex: integer; const Y: TMtxVec; yIndex: integer; const Z: TCplx; Index, Len: integer): TMtxVec; overload;

Compute X - Y - zScalar on sub array

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2xIndexinteger
3YTMtxVecsource TVec or TMtx
4yIndexinteger
5ZTCplxscalar
6Indexintegerstart index
7Lenintegerelement count

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

Overload 12: function Sub(const X: TMtxVec; xIndex: integer; const Y: TMtxVec; yIndex: integer;const Z: TMtxVec; zIndex: integer; Index, Len: integer): TMtxVec; overload;

Compute X - Y - Z on sub array

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2xIndexinteger
3YTMtxVecsource TVec or TMtx
4yIndexinteger
5ZTMtxVecsource TVec or TMtx
6zIndexinteger
7Indexintegerstart index
8Lenintegerelement count

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