You are here: Symbol Reference > MtxExprInt Namespace > Classes > MatrixInt Record > public > MatrixInt.Eye Method
MtxVec VCL
ContentsIndex
PreviousUpNext
MatrixInt.Eye Method

Constructs an eye matrix.

Pascal
function Eye(ARows: integer; ACols: integer; aIntPrecision: TIntPrecision = prInt32): TMtxInt; overload;

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 IntPrecision property of an eye matrix is set by aIntPrecision parameter.

var A,B: TMtxInt; begin CreateIt(A); try A.Eye(3,3); // ... finally FreeIt(A); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!