api / koma.internal.default.generated.matrix / DefaultDoubleMatrixFactory / eye
eye
fun eye(size:
Int
):
Matrix
<
Double
>
Overrides MatrixFactory.eye
Creates an identity matrix of the requested shape
fun eye(rows:
Int
, cols:
Int
):
Matrix
<
Double
>
Overrides MatrixFactory.eye
Creates an identity matrix of the requested shape, with zero padding if the axis lengths arent equal.