Companion

object Companion

Functions

Link copied to clipboard
inline fun <T : Any> auto(shape: IntArray, crossinline initializer: (IntArray) -> T): BufferND<T>
@JvmName(name = "autoVarArg")
inline fun <T : Any> auto(vararg shape: Int, 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: IntArray, bufferFactory: BufferFactory<T> = Buffer.Companion::boxing, initializer: (IntArray) -> T): BufferND<T>

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

Creates a NDStructure with explicit buffer factory.

Link copied to clipboard
fun <T : Any> contentEquals(st1: StructureND<T>, st2: StructureND<T>): Boolean

Indicates whether some StructureND is equal to another one.

fun contentEquals(st1: StructureND<Double>, st2: StructureND<Double>, tolerance: Double = 1.0E-11): Boolean
Link copied to clipboard
fun toString(structure: StructureND<*>): String

Debug output to string

Sources

Link copied to clipboard