Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function SetSingle(AComplex: Boolean; const A: TSingleArray): TVec; | Sets vector values (single). |
| 2 | function SetSingle(Index: Integer; const A: TSingleArray): TMtxVec; | Sets object values (single). |
Overload 1: function SetSingle(AComplex: Boolean; const A: TSingleArray): TVec;
Sets vector values (single).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AComplex | Boolean | |
| 2 | A | TSingleArray |
Result: stored in self (calling object), returns self for chaining
Sets the Vector.Length property of the calling vector to (High(A)+1) and the Vector.Complex property to AComplex. The single elements of A array are copied to the calling vector. If AComplex is True then real parts of complex numbers are on even (0,2,4..)and imaginary parts on odd indexes.(1,3,5,..)
Note
Use this method for single array only.
Overload 2: function SetSingle(Index: Integer; const A: TSingleArray): TMtxVec;
Sets object values (single).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Integer | start index |
| 2 | A | TSingleArray |
Result: stored in self (calling object), returns self for chaining
The single elements of A array are copied to the calling object elements [Index]..[Index+Length(A)-1]. An exception is raised if calling object array borders are overrun/underrun.
Note
Use this method for integer array only.