You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Eye Method > Matrix.Eye Method (integer, integer, boolean, boolean)
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.Eye Method (integer, integer, boolean, boolean)

Constructs an eye matrix.

Pascal
function Eye(ARows: integer; ACols: integer; AComplex: boolean; AIsDouble: boolean): TMtx; overload;

Construct an eye matrix. The number of rows and columns of an eye matrix is set by ARows and ACols parameters. The Complex property of an eye matrix is set by AComplex parameter.

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