api / koma / ones

ones

fun ones(rows:Int, columns:Int):Matrix<Double>

Creates a one-filled matrix with the given size

fun <T> ones(rows:Int, columns:Int, dtype:MatrixType<T>):Matrix<T>