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.