Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function SetVal(Value: TCplx): TMtxVec; | Set all calling object complex elements to complex Value. |
| └ indexed: function SetVal(Value: TCplx; Index: Integer; Len: Integer): TMtxVec; | ||
| 2 | function SetVal(const Value: TCplx; Row: Integer; Col: Integer; ToRow: Integer; ToCol: Integer): TMtx; | Sets the calling matrix elements [Row,Col]..[Row+ToRow,Col+ToCol] to complex value Value. |
| 3 | function SetVal(Value: Double): TMtxVec; | Initialize elements to Value. |
| └ indexed: function SetVal(Value: Double; Index: Integer; Len: Integer): TMtxVec; | ||
| 4 | function SetVal(const Value: Double; Row: Integer; Col: Integer; ToRow: Integer; ToCol: Integer): TMtx; | Initializes matrix values to Value. |
Overload 1: function SetVal(Value: TCplx): TMtxVec;
Set all calling object complex elements to complex Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | scalar |
Result: stored in self (calling object), returns self for chaining
Indexed: function SetVal(Value: TCplx; Index: Integer; Len: Integer): TMtxVec;
Set calling object complex elements [Index]..[Index+Len-1] to complex Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | scalar |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Matrix.Complex properties of the calling object are set to true even before the call it was false. An exception is raised if calling object array borders are overrun/underrun.
Overload 2: function SetVal(const Value: TCplx; Row: Integer; Col: Integer; ToRow: Integer; ToCol: Integer): TMtx;
Sets the calling matrix elements [Row,Col]..[Row+ToRow,Col+ToCol] to complex value Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | |
| 2 | Row | Integer | |
| 3 | Col | Integer | |
| 4 | ToRow | Integer | |
| 5 | ToCol | Integer |
Result: stored in self (calling object), returns self for chaining
Matrix.Complex properties of the calling object are set to true even before the call it was false. An exception is raised if array bounds are overrun.
Overload 3: function SetVal(Value: Double): TMtxVec;
Initialize elements to Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Set all calling object elements to Value. If the calling object is complex then the real part is set to Value and the imaginary is set to zero.
var a: Matrix;
begin
a.Size(1,4,False);
a.SetVal(1); // a = [1,1,1,1]
end;
Indexed: function SetVal(Value: Double; Index: Integer; Len: Integer): TMtxVec;
Set all calling object elements [Index]..[Index+Len-1] to real Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double | scalar |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
If the calling object is complex then the real part is set to Value and the imaginary is set to zero. An exception is raised if array borders are overrun/underrun.
Overload 4: function SetVal(const Value: Double; Row: Integer; Col: Integer; ToRow: Integer; ToCol: Integer): TMtx;
Initializes matrix values to Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double | |
| 2 | Row | Integer | |
| 3 | Col | Integer | |
| 4 | ToRow | Integer | |
| 5 | ToCol | Integer |
Result: stored in self (calling object), returns self for chaining
Sets the calling matrix elements [Row,Col]..[Row+ToRow,Col+ToCol] to Value. An exception is raised if Matrix.ConditionCheck is true and array bounds are overrun.