api / koma.internal.default.generated.ndarray / DefaultGenericNDArrayFactory / createGeneric

createGeneric

fun createGeneric(vararg lengths:Int, filler: (IntArray) ->T):DefaultGenericNDArray<T>

Overrides GenericNDArrayFactory.createGeneric

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.