Skip to content

function numluau.ones<number>(
    ... : number
): numluau.ndArray<number>
Will return a new ndArray filled with ones. The returned ndArray will have a shape defined by the arguements provided.

Parameters

... : number

the values defining the shape of the ndArray

Returns -> ndArray<number>

A new ndArray filled with ones, with a shape {...}