function Eye(ARows: Integer; ACols: Integer; AComplex: Boolean; aIsDouble: Boolean): TMtx;
Constructs an eye matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ARows | Integer | |
| 2 | ACols | Integer | |
| 3 | AComplex | Boolean | |
| 4 | aIsDouble | Boolean |
Result: stored in self (calling object), returns self for chaining
Remarks:
Construct an eye matrix. The number of rows and columns of an eye matrix is set by ARows and ACols parameters. The Matrix.Complex property of an eye matrix is set by AComplex parameter.
Examples
var A: Matrix;
begin
A.Eye(3,3);
end;