You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > MatrixInt Structure > MatrixInt Methods > MatrixInt.Eye Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
MatrixInt.Eye Method

Constructs an eye matrix.

Syntax
C#
Visual Basic
public TMtxInt Eye(int aRows, int aCols, TIntPrecision aIntPrecision);

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;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!