BufferNDAlgebra

interface BufferNDAlgebra<T, C> : NDAlgebra<T, C>

Functions

combine
Link copied to clipboard
common
open override fun combine(a: NDStructure<T>, b: NDStructure<T>, transform: C.(T, T) -> T): NDBuffer<T>
Combines two structures into one.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
invoke
Link copied to clipboard
common
open operator fun (T) -> T.invoke(structure: NDStructure<T>): NDStructure<T>
Element-wise invocation of function working on T on a NDStructure.
map
Link copied to clipboard
common
open override fun NDStructure<T>.map(transform: C.(T) -> T): NDBuffer<T>
Maps elements from one structure to another one by applying transform to them.
mapIndexed
Link copied to clipboard
common
open override fun NDStructure<T>.mapIndexed(transform: C.(index: IntArray, T) -> T): NDBuffer<T>
Maps elements from one structure to another one by applying transform to them alongside with their indices.
produce
Link copied to clipboard
common
open override fun produce(initializer: C.(IntArray) -> T): NDBuffer<T>
Produces a new N structure using given initializer function.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

buffer
Link copied to clipboard
common
open val NDStructure<T>.buffer: Buffer<T>
bufferFactory
Link copied to clipboard
common
abstract val bufferFactory: BufferFactory<T>
elementContext
Link copied to clipboard
common
abstract val elementContext: C
The algebra over elements of ND structure.
shape
Link copied to clipboard
common
abstract val shape: IntArray
The shape of ND-structures this algebra operates on.
strides
Link copied to clipboard
common
abstract val strides: Strides

Inheritors

BufferedNDSpace
Link copied to clipboard