BufferAlgebraND

interface BufferAlgebraND<T, out A : Algebra<T>> : AlgebraND<T, A>

Types

Companion
Link copied to clipboard
common
object Companion

Functions

getFeature
Link copied to clipboard
common
open fun <F : StructureFeature> getFeature(structure: StructureND<T>, type: KClass<out F>): F?
Get a feature of the structure in this scope.
invoke
Link copied to clipboard
common
open operator fun (T) -> T.invoke(structure: StructureND<T>): StructureND<T>
Element-wise invocation of function working on T on a StructureND.
map
Link copied to clipboard
common
open override fun StructureND<T>.map(transform: A.(T) -> T): BufferND<T>
Maps elements from one structure to another one by applying transform to them.
mapIndexed
Link copied to clipboard
common
open override fun StructureND<T>.mapIndexed(transform: A.(index: IntArray, T) -> T): BufferND<T>
Maps elements from one structure to another one by applying transform to them alongside with their indices.
structureND
Link copied to clipboard
common
open override fun structureND(shape: Shape, initializer: A.(IntArray) -> T): BufferND<T>
Produces a new StructureND using given initializer function.
toBufferND
Link copied to clipboard
common
open fun StructureND<T>.toBufferND(): BufferND<T>
zip
Link copied to clipboard
common
open override fun zip(left: StructureND<T>, right: StructureND<T>, transform: A.(T, T) -> T): BufferND<T>
Combines two structures into one.

Properties

bufferAlgebra
Link copied to clipboard
common
abstract val bufferAlgebra: BufferAlgebra<T, A>
elementAlgebra
Link copied to clipboard
common
open override val elementAlgebra: A
The algebra over elements of ND structure.
indexerBuilder
Link copied to clipboard
common
abstract val indexerBuilder: (IntArray) -> ShapeIndex

Inheritors

BufferedGroupNDOps
Link copied to clipboard

Extensions

mapInline
Link copied to clipboard
common
inline fun <T, A : Algebra<T>> BufferAlgebraND<T, A>.mapInline(arg: BufferND<T>, crossinline transform: A.(T) -> T): BufferND<T>
structureND
Link copied to clipboard
common
fun <T, A : Algebra<T>> BufferAlgebraND<T, A>.structureND(vararg shape: Int, initializer: A.(IntArray) -> T): BufferND<T>

Sources

common source
Link copied to clipboard