Matrix::Eye Method

Overload List

#SignatureDescription
1TMtx *Eye(int ARows, int ACols, bool AComplex, bool aIsDouble) const;Constructs an eye matrix.
2TMtx *Eye(int ARows, int ACols, const TMtxFloatPrecision aFloatPrecision) const;

Overload 1: TMtx *Eye(int ARows, int ACols, bool AComplex, bool aIsDouble) const;

Constructs an eye matrix.

#NameTypeDescription
1ARowsint
2AColsint
3AComplexbool
4aIsDoublebool
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
#include "MtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    Matrix A;

    A.Eye(3, 3, false, true);
}
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: TMtx *Eye(int ARows, int ACols, const TMtxFloatPrecision aFloatPrecision) const;

#NameTypeDescription
1ARowsint
2AColsint
3aFloatPrecisionconst TMtxFloatPrecision
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler