function Eye(ARows: Integer; ACols: Integer; aIntPrecision: TIntPrecision): TMtxInt;
Constructs an eye matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ARows | Integer | |
| 2 | ACols | Integer | |
| 3 | aIntPrecision | TIntPrecision |
Result: stored in self (calling object), returns self for chaining
Remarks:
Construct an eye matrix with ones only on main diagonal and zeros elsewhere. The number of Rows and columns of an eye matrix are set by ARows and ACols parameters. The TMtxVecInt.IntPrecision property of an eye matrix is set by aIntPrecision parameter.
Examples
var A,B: TMtxInt;
begin
CreateIt(A);
try
A.Eye(3,3);
// ...
finally
FreeIt(A);
end;
end;