ones

fun ones(vararg shape: Int): F64Array

Creates a new array with the given shape, filled with ones.

Return

the created array

Parameters

shape

the shape of the array


fun ones(rows: Int, cols: Int): F64TwoAxisArray

Creates a new array with the given shape, filled with ones.

Return

the created array

Since

1.2.0

Parameters

rows

the number of rows

cols

the number of columns