kmath-core
/
space.kscience.kmath.linear
/
one
common
one
fun <
T
:
Any
,
R
:
Ring
<
T
>>
GenericMatrixContext
<
T
,
R
, *>.
one
(rows:
Int
, columns:
Int
):
Matrix
<
T
>
Content copied to clipboard
Diagonal matrix of ones. The matrix is virtual no actual matrix is created