api / koma.ndarray / GenericNDArrayFactory / createGeneric

createGeneric

abstract fun createGeneric(lengths:IntArray, filler: (IntArray) ->T):NDArray<T>

Generate an ND container of the requested shape without initializing its contents.

Depending on backend and platform, the resulting array may be, equivalent to zeros(*lengths), or may be initialized to memory garbage.