BufferedGroupNDOps

open class BufferedGroupNDOps<T, out A : Group<T>>(bufferAlgebra: BufferAlgebra<T, A>, indexerBuilder: (IntArray) -> ShapeIndex) : GroupOpsND<T, A> , BufferAlgebraND<T, A>

Functions

add
Link copied to clipboard
common
open override fun add(left: StructureND<T>, right: StructureND<T>): StructureND<T>
Element-wise addition.
binaryOperation
Link copied to clipboard
common
open fun binaryOperation(operation: String, left: StructureND<T>, right: StructureND<T>): StructureND<T>
Dynamically invokes a binary operation with the certain name.
binaryOperationFunction
Link copied to clipboard
common
open override fun binaryOperationFunction(operation: String): (left: StructureND<T>, right: StructureND<T>) -> StructureND<T>
Dynamically dispatches a binary operation with the certain name.
bindSymbol
Link copied to clipboard
common
open fun bindSymbol(value: String): StructureND<T>
The same as bindSymbolOrNull but throws an error if symbol could not be bound
bindSymbolOrNull
Link copied to clipboard
common
open fun bindSymbolOrNull(value: String): StructureND<T>?
Wraps a raw string to T object.
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
abstract fun StructureND<T>.map(transform: A.(T) -> T): StructureND<T>
Maps elements from one structure to another one by applying transform to them.
mapIndexed
Link copied to clipboard
common
abstract fun StructureND<T>.mapIndexed(transform: A.(index: IntArray, T) -> T): StructureND<T>
Maps elements from one structure to another one by applying transform to them alongside with their indices.
minus
Link copied to clipboard
common
open operator fun T.minus(arg: StructureND<T>): StructureND<T>
Subtracts an ND structure from an element of it.
open operator fun StructureND<T>.minus(arg: T): StructureND<T>
Subtracts an element from ND structure of it.
open operator fun StructureND<T>.minus(other: StructureND<T>): StructureND<T>
Subtraction of two elements.
plus
Link copied to clipboard
common
open operator fun T.plus(arg: StructureND<T>): StructureND<T>
Adds an element to ND structure of it.
open operator fun StructureND<T>.plus(arg: T): StructureND<T>
Adds an ND structure to an element of it.
open operator fun StructureND<T>.plus(other: StructureND<T>): StructureND<T>
Addition of two elements.
structureND
Link copied to clipboard
common
abstract fun structureND(shape: Shape, initializer: A.(IntArray) -> T): StructureND<T>
Produces a new StructureND using given initializer function.
toBufferND
Link copied to clipboard
common
open fun StructureND<T>.toBufferND(): BufferND<T>
unaryMinus
Link copied to clipboard
common
open operator override fun StructureND<T>.unaryMinus(): StructureND<T>
The negation of this element.
unaryOperation
Link copied to clipboard
common
open fun unaryOperation(operation: String, arg: StructureND<T>): StructureND<T>
Dynamically invokes a unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open override fun unaryOperationFunction(operation: String): (arg: StructureND<T>) -> StructureND<T>
Dynamically dispatches a unary operation with the certain name.
unaryPlus
Link copied to clipboard
common
open operator fun StructureND<T>.unaryPlus(): StructureND<T>
Returns this value.
zip
Link copied to clipboard
common
abstract fun zip(left: StructureND<T>, right: StructureND<T>, transform: A.(T, T) -> T): StructureND<T>
Combines two structures into one.

Properties

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

Inheritors

BufferedRingOpsND
Link copied to clipboard

Sources

common source
Link copied to clipboard