Companion

Functions

Link copied to clipboard
@JvmName(name = "autoVarArg")
inline fun <T : Any> auto(vararg shape: Int, crossinline initializer: (IntArray) -> T): BufferND<T>
inline fun <T : Any> auto(shape: ShapeND, crossinline initializer: (IntArray) -> T): BufferND<T>
inline fun <T : Any> auto(type: KClass<T>, vararg shape: Int, crossinline initializer: (IntArray) -> T): BufferND<T>
inline fun <T : Any> auto(type: KClass<T>, strides: Strides, crossinline initializer: (IntArray) -> T): BufferND<T>

inline fun <T : Any> auto(strides: Strides, crossinline initializer: (IntArray) -> T): BufferND<T>

Inline create NDStructure with non-boxing buffer implementation if it is possible

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

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

Creates a NDStructure with explicit buffer factory.

Link copied to clipboard

Indicates whether some StructureND is equal to another one.

Link copied to clipboard
fun toString(structure: StructureND<*>): String

Debug output to string