FieldOps

interface FieldOps<T> : RingOps<T>

Represents field without multiplicative and additive identities i.e., algebraic structure with associative, binary, commutative operations add and multiply; binary operation divide as multiplication of left operand by reciprocal of right one.

Parameters

T

the type of element of this semifield.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

add
Link copied to clipboard
common
abstract fun add(left: T, right: T): T
Addition of two elements.
binaryOperation
Link copied to clipboard
common
open fun binaryOperation(operation: String, left: T, right: T): T
Dynamically invokes a binary operation with the certain name.
binaryOperationFunction
Link copied to clipboard
common
open override fun binaryOperationFunction(operation: String): (T, T) -> T
Dynamically dispatches a binary operation with the certain name.
bindSymbol
Link copied to clipboard
common
open fun bindSymbol(value: String): 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): T?
Wraps a raw string to T object.
div
Link copied to clipboard
common
open operator fun T.div(other: T): T
Division of two elements.
divide
Link copied to clipboard
common
abstract fun divide(left: T, right: T): T
Division of two elements.
minus
Link copied to clipboard
common
open operator fun T.minus(other: T): T
Subtraction of two elements.
multiply
Link copied to clipboard
common
abstract fun multiply(left: T, right: T): T
Multiplies two elements.
plus
Link copied to clipboard
common
open operator fun T.plus(other: T): T
Addition of two elements.
times
Link copied to clipboard
common
open operator fun T.times(other: T): T
Multiplies this element by scalar.
unaryMinus
Link copied to clipboard
common
abstract operator fun T.unaryMinus(): T
The negation of this element.
unaryOperation
Link copied to clipboard
common
open fun unaryOperation(operation: String, arg: T): T
Dynamically invokes a unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open override fun unaryOperationFunction(operation: String): (T) -> T
Dynamically dispatches a unary operation with the certain name.
unaryPlus
Link copied to clipboard
common
open operator fun T.unaryPlus(): T
Returns this value.

Inheritors

FieldOpsND
Link copied to clipboard
Field
Link copied to clipboard
BufferFieldOps
Link copied to clipboard
ExtendedFieldOps
Link copied to clipboard

Sources

common source
Link copied to clipboard