Companion

object Companion

Functions

auto
Link copied to clipboard
common
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
buffered
Link copied to clipboard
common
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.
contentEquals
Link copied to clipboard
common
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 = 1e-11): Boolean
toString
Link copied to clipboard
common
fun toString(structure: StructureND<*>): String
Debug output to string

Sources

common source
Link copied to clipboard