ShortRingND

class ShortRingND(shape: Shape) : ShortRingOpsND, RingND<Short, ShortRing> , NumbersAddOps<StructureND<Short>>

Functions

add
Link copied to clipboard
common
open override fun add(left: StructureND<Short>, right: StructureND<Short>): StructureND<Short>
Element-wise addition.
binaryOperation
Link copied to clipboard
common
open fun binaryOperation(operation: String, left: StructureND<Short>, right: StructureND<Short>): StructureND<Short>
Dynamically invokes a binary operation with the certain name.
binaryOperationFunction
Link copied to clipboard
common
open override fun binaryOperationFunction(operation: String): (left: StructureND<Short>, right: StructureND<Short>) -> StructureND<Short>
Dynamically dispatches a binary operation with the certain name.
bindSymbol
Link copied to clipboard
common
open fun bindSymbol(value: String): StructureND<Short>
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<Short>?
Wraps a raw string to T object.
getFeature
Link copied to clipboard
common
open fun <F : StructureFeature> getFeature(structure: StructureND<Short>, type: KClass<out F>): F?
Get a feature of the structure in this scope.
invoke
Link copied to clipboard
common
open operator fun (Short) -> Short.invoke(structure: StructureND<Short>): StructureND<Short>
Element-wise invocation of function working on T on a StructureND.
leftSideNumberOperation
Link copied to clipboard
common
open fun leftSideNumberOperation(operation: String, left: Number, right: StructureND<Short>): StructureND<Short>
Dynamically invokes a binary operation with the certain name with numeric first argument.
leftSideNumberOperationFunction
Link copied to clipboard
common
open fun leftSideNumberOperationFunction(operation: String): (left: Number, right: StructureND<Short>) -> StructureND<Short>
Dynamically dispatches a binary operation with the certain name with numeric first argument.
map
Link copied to clipboard
common
abstract fun StructureND<Short>.map(transform: ShortRing.(Short) -> Short): StructureND<Short>
Maps elements from one structure to another one by applying transform to them.
mapIndexed
Link copied to clipboard
common
abstract fun StructureND<Short>.mapIndexed(transform: ShortRing.(index: IntArray, Short) -> Short): StructureND<Short>
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 Short.minus(arg: StructureND<Short>): StructureND<Short>
Subtracts an ND structure from an element of it.
open operator fun StructureND<Short>.minus(arg: Short): StructureND<Short>
Subtracts an element from ND structure of it.
open operator fun StructureND<Short>.minus(other: StructureND<Short>): StructureND<Short>
Subtraction of two elements.
open operator fun Number.minus(other: StructureND<Short>): StructureND<Short>
Subtraction of number from element.
open operator fun StructureND<Short>.minus(other: Number): StructureND<Short>
Subtraction of element from number.
multiply
Link copied to clipboard
common
open override fun multiply(left: StructureND<Short>, right: StructureND<Short>): StructureND<Short>
Element-wise multiplication.
number
Link copied to clipboard
common
open override fun number(value: Number): BufferND<Short>
Wraps a number to T object.
plus
Link copied to clipboard
common
open operator fun Short.plus(arg: StructureND<Short>): StructureND<Short>
Adds an element to ND structure of it.
open operator fun StructureND<Short>.plus(arg: Short): StructureND<Short>
Adds an ND structure to an element of it.
open operator fun StructureND<Short>.plus(other: StructureND<Short>): StructureND<Short>
Addition of two elements.
open operator fun Number.plus(other: StructureND<Short>): StructureND<Short>
Addition of scalar and element.
open operator fun StructureND<Short>.plus(other: Number): StructureND<Short>
Addition of element and scalar.
rightSideNumberOperation
Link copied to clipboard
common
open fun rightSideNumberOperation(operation: String, left: StructureND<Short>, right: Number): StructureND<Short>
Dynamically invokes a binary operation with the certain name with numeric second argument.
rightSideNumberOperationFunction
Link copied to clipboard
common
open fun rightSideNumberOperationFunction(operation: String): (left: StructureND<Short>, right: Number) -> StructureND<Short>
Dynamically dispatches a binary operation with the certain name with numeric first argument.
structureND
Link copied to clipboard
common
abstract fun structureND(shape: Shape, initializer: ShortRing.(IntArray) -> Short): StructureND<Short>
Produces a new StructureND using given initializer function.
times
Link copied to clipboard
common
open operator fun Short.times(arg: StructureND<Short>): StructureND<Short>
Multiplies an element by a ND structure of it.
open operator fun StructureND<Short>.times(arg: Short): StructureND<Short>
Multiplies an ND structure by an element of it.
open operator fun StructureND<Short>.times(other: StructureND<Short>): StructureND<Short>
Multiplies this element by scalar.
toBufferND
Link copied to clipboard
common
open fun StructureND<Short>.toBufferND(): BufferND<Short>
unaryMinus
Link copied to clipboard
common
open operator override fun StructureND<Short>.unaryMinus(): StructureND<Short>
The negation of this element.
unaryOperation
Link copied to clipboard
common
open fun unaryOperation(operation: String, arg: StructureND<Short>): StructureND<Short>
Dynamically invokes a unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open override fun unaryOperationFunction(operation: String): (arg: StructureND<Short>) -> StructureND<Short>
Dynamically dispatches a unary operation with the certain name.
unaryPlus
Link copied to clipboard
common
open operator fun StructureND<Short>.unaryPlus(): StructureND<Short>
Returns this value.
zip
Link copied to clipboard
common
abstract fun zip(left: StructureND<Short>, right: StructureND<Short>, transform: ShortRing.(Short, Short) -> Short): StructureND<Short>
Combines two structures into one.

Properties

bufferAlgebra
Link copied to clipboard
common
open override val bufferAlgebra: BufferAlgebra<Short, ShortRing>
elementAlgebra
Link copied to clipboard
common
abstract val elementAlgebra: ShortRing
The algebra over elements of ND structure.
indexerBuilder
Link copied to clipboard
common
open override val indexerBuilder: (IntArray) -> ShapeIndex
one
Link copied to clipboard
common
open override val one: StructureND<Short>
The neutral element of multiplication
shape
Link copied to clipboard
common
open override val shape: Shape
zero
Link copied to clipboard
common
abstract val zero: StructureND<Short>
The neutral element of addition.

Sources

common source
Link copied to clipboard