Matrix.Eye Method

function Eye(ARows: Integer; ACols: Integer; AComplex: Boolean; aIsDouble: Boolean): TMtx;

Constructs an eye matrix.

#NameTypeDescription
1ARowsInteger
2AColsInteger
3AComplexBoolean
4aIsDoubleBoolean

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;