public static ones(notnull shape as IList<Int>) as NDArray<T>
Creates a new NDArray with ones.
shape
A new NDArray filled with 1.
a = NDArray<Int>.ones([2, 2])