eye
fun eye(size:
Int
):
Matrix
<
Double
>
Creates a square identity matrix with the given size
fun <T> eye(size:
Int
, dtype:
MatrixType
<
T
>):
Matrix
<
T
>
fun <T> eye(rows:
Int
, cols:
Int
, dtype:
MatrixType
<
T
>):
Matrix
<
T
>``fun eye(rows:
Int
, cols:
Int
):
Matrix
<
Double
>
Creates an identity matrix with the given size