kmath
0.3.1-dev-RC
common
kmath-core
/
space.kscience.kmath.linear
/
one
one
fun
<
T
:
Any
>
LinearSpace
<
T
,
Ring
<
T
>
>
.
one
(
rows
:
Int
,
columns
:
Int
)
:
Matrix
<
T
>
(
source
)
Diagonal matrix of ones. The matrix is virtual no actual matrix is created.