ShortRing

object ShortRing : Ring<Short> , Norm<Short, Short> , NumericAlgebra<Short>

A field for Short without boxing. Does not produce appropriate ring element.

Functions

add
Link copied to clipboard
common
open inline override fun add(left: Short, right: Short): Short
Addition of two elements.
binaryOperation
Link copied to clipboard
common
open fun binaryOperation(operation: String, left: Short, right: Short): Short
Dynamically invokes a binary operation with the certain name.
binaryOperationFunction
Link copied to clipboard
common
open override fun binaryOperationFunction(operation: String): (left: Short, right: Short) -> Short
Dynamically dispatches a binary operation with the certain name.
bindSymbol
Link copied to clipboard
common
open fun bindSymbol(value: String): 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): Short?
Wraps a raw string to T object.
leftSideNumberOperation
Link copied to clipboard
common
open fun leftSideNumberOperation(operation: String, left: Number, right: Short): 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: Short) -> Short
Dynamically dispatches a binary operation with the certain name with numeric first argument.
minus
Link copied to clipboard
common
open inline operator override fun Short.minus(other: Short): Short
Subtraction of two elements.
multiply
Link copied to clipboard
common
open inline override fun multiply(left: Short, right: Short): Short
Multiplies two elements.
norm
Link copied to clipboard
common
open override fun norm(arg: Short): Short
Computes the norm of arg (i.e., absolute value or vector length).
number
Link copied to clipboard
common
open override fun number(value: Number): Short
Wraps a number to T object.
plus
Link copied to clipboard
common
open inline operator override fun Short.plus(other: Short): Short
Addition of two elements.
rightSideNumberOperation
Link copied to clipboard
common
open fun rightSideNumberOperation(operation: String, left: Short, right: Number): 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: Short, right: Number) -> Short
Dynamically dispatches a binary operation with the certain name with numeric first argument.
times
Link copied to clipboard
common
open inline operator override fun Short.times(other: Short): Short
Multiplies this element by scalar.
unaryMinus
Link copied to clipboard
common
open inline operator override fun Short.unaryMinus(): Short
The negation of this element.
unaryOperation
Link copied to clipboard
common
open fun unaryOperation(operation: String, arg: Short): Short
Dynamically invokes a unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open override fun unaryOperationFunction(operation: String): (arg: Short) -> Short
Dynamically dispatches a unary operation with the certain name.
unaryPlus
Link copied to clipboard
common
open operator fun Short.unaryPlus(): Short
Returns this value.

Properties

one
Link copied to clipboard
common
open override val one: Short
The neutral element of multiplication
zero
Link copied to clipboard
common
open override val zero: Short
The neutral element of addition.

Extensions

bufferAlgebra
Link copied to clipboard
common
val ShortRing.bufferAlgebra: BufferRingOps<Short, ShortRing>
withNdAlgebra
Link copied to clipboard
common
inline fun <R> ShortRing.withNdAlgebra(vararg shape: Int, action: ShortRingND.() -> R): R

Sources

common source
Link copied to clipboard