TMtx.Offset Method

Overload List

#SignatureDescription
1function Offset(const Value: TCplx): TMtxVec; overload;Add/Subtract a complex value.
└ indexed: function Offset(const Value: TCplx; Index,Len: integer): TMtxVec; overload;
2function Offset(const Value: double): TMtxVec; overload;Add/Subtract a value.
└ indexed: function Offset(const Value: double; Index,Len: integer): TMtxVec; overload;

Overload 1: function Offset(const Value: TCplx): TMtxVec; overload;

Add/Subtract a complex value.

#NameTypeDescription
1ValueTCplxscalar

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

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

Add/Subtract a complex value from [Index]..[Index+Len-1].

#NameTypeDescription
1ValueTCplxscalar
2Indexintegerstart index
3Lenintegerelement count

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

Overload 2: function Offset(const Value: double): TMtxVec; overload;

Add/Subtract a value.

#NameTypeDescription
1Valuedoublescalar

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

Remarks:

Depreciated
Use TDenseMtxVec.Add (Value) instead.

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

Add/Subtract a value from [Index]..[Index+Len-1].

#NameTypeDescription
1Valuedoublescalar
2Indexintegerstart index
3Lenintegerelement count

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