buffered

fun <T> buffered(strides: Strides, bufferFactory: BufferFactory<T> = Buffer.Companion::boxing, initializer: (IntArray) -> T): BufferND<T>

Creates a NDStructure with explicit buffer factory.

Strides should be reused if possible.

fun <T> buffered(shape: IntArray, bufferFactory: BufferFactory<T> = Buffer.Companion::boxing, initializer: (IntArray) -> T): BufferND<T>