Matrix.DivideBy Method

Overload List

#SignatureDescription
1function DivideBy(Value: TCplx): TMtxVec;Divide complex Value with elements of the calling object and store the result in the calling object.
└ indexed: function DivideBy(Value: TCplx; Index: Integer; Len: Integer): TMtxVec;
2function DivideBy(Value: TCplx; Vec: TMtxVec): TMtxVec;Divide complex Value with elements from Vec and store the result in the corresponding elements of the calling object.
└ indexed: function DivideBy(Value: TCplx; Vec: TMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;
3function DivideBy(Value: Double): TMtxVec;Divide Value with elements of the calling object and store the result in the calling object.
└ indexed: function DivideBy(Value: Double; Index: Integer; Len: Integer): TMtxVec;
4function DivideBy(Value: Double; Vec: TMtxVec): TMtxVec;Divide Value with elements from Vec and store the result in the corresponding elements of the calling object.
└ indexed: function DivideBy(Value: Double; Vec: TMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Overload 1: function DivideBy(Value: TCplx): TMtxVec;

Divide complex Value with elements of the calling object and store the result in the calling object.

#NameTypeDescription
1ValueTCplxscalar

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

Remarks:

Calling Matrix will be extended to complex, if the calling Matrix is real.

Indexed: function DivideBy(Value: TCplx; Index: Integer; Len: Integer): TMtxVec;

Divide complex Value with elements [Index]...[Index+Len-1] from the calling object.

#NameTypeDescription
1ValueTCplxscalar
2IndexIntegerstart index
3LenIntegerelement count

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

Remarks:

Store the result in the calling object at position [Index]...[Index+Len-1]. Calling Matrix will be extended to complex, if the calling Matrix is real. An exception will be raised if Matrix.ConditionCheck is True and array borders are overrun or underrun.

Overload 2: function DivideBy(Value: TCplx; Vec: TMtxVec): TMtxVec;

Divide complex Value with elements from Vec and store the result in the corresponding elements of the calling object.

#NameTypeDescription
1ValueTCplxscalar
2VecTMtxVecsource TVec or TMtx

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

Remarks:

Size of the calling object is set automatically. Matrix.Complex property of the calling object is set to True.

Indexed: function DivideBy(Value: TCplx; Vec: TMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Divide complex Value with elements [VecIndex]..[VecIndes+Len-1] from Vec and store the result in the elements [Index]..[Index+Len-1] of the calling object.

#NameTypeDescription
1ValueTCplxscalar
2VecTMtxVecsource TVec or TMtx
3VecIndexInteger
4IndexIntegerstart index
5LenIntegerelement count

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

Remarks:

Size of the calling object is not changed. An exception will be raised if Matrix.ConditionCheck is True and array borders are overrun or underrun. Matrix.Complex property of the calling object is set to True.

Overload 3: function DivideBy(Value: Double): TMtxVec;

Divide Value with elements of the calling object and store the result in the calling object.

#NameTypeDescription
1ValueDoublescalar

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

Indexed: function DivideBy(Value: Double; Index: Integer; Len: Integer): TMtxVec;

Divide Value with elements [Index]...[Index+Len-1] from the calling object.

#NameTypeDescription
1ValueDoublescalar
2IndexIntegerstart index
3LenIntegerelement count

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

Remarks:

Store the result in the calling object at position [Index]...[Index+Len-1]. An exception will be raised if Matrix.ConditionCheck is True and array borders are overrun or underrun.

Overload 4: function DivideBy(Value: Double; Vec: TMtxVec): TMtxVec;

Divide Value with elements from Vec and store the result in the corresponding elements of the calling object.

#NameTypeDescription
1ValueDoublescalar
2VecTMtxVecsource TVec or TMtx

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

Remarks:

Size and Matrix.Complex properties of the calling object are set automatically.

Indexed: function DivideBy(Value: Double; Vec: TMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Divide Value with Vec elements [VecIndex]..[VecIndes+Len-1].

#NameTypeDescription
1ValueDoublescalar
2VecTMtxVecsource TVec or TMtx
3VecIndexInteger
4IndexIntegerstart index
5LenIntegerelement count

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

Remarks:

Store the result in the elements [Index]..[Index+Len-1] of the calling object. Size of the calling object is not changed. An exception will be raised if Matrix.ConditionCheck is True and array borders are overrun or underrun. Matrix.Complex property of the calling object is set implicitly.