TMtxSmallInt.Eye Method

function Eye(ARows: Integer; ACols: Integer; aIntPrecision: TIntPrecision): TMtxInt;

Constructs an eye matrix.

#NameTypeDescription
1ARowsInteger
2AColsInteger
3aIntPrecisionTIntPrecision

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;