buffered

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

Creates a NDStructure with explicit buffer factory.

Strides should be reused if possible.


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