empty

inline fun <T : Any, D : Dimension> Multik.empty(vararg dims: Int): NDArray<T, D>

Returns a new zero array with the specified shape.


fun <T, D : Dimension> Multik.empty(dims: IntArray, dtype: DataType): NDArray<T, D>

Returns a new zero array of type dtype with the specified shape.

Note: Generic type of elements T must match dtype.