FieldOperations

interface FieldOperations<T> : RingOperations<T>

Represents field without identity elements, 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(a: T, b: 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
Wraps a raw string to T object.
div
Link copied to clipboard
common
open operator fun T.div(b: T): T
Division of two elements.
open operator fun T.div(k: Number): T
Division of this element by scalar.
divide
Link copied to clipboard
common
abstract fun divide(a: T, b: T): T
Division of two elements.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
minus
Link copied to clipboard
common
open operator fun T.minus(b: T): T
Subtraction of two elements.
multiply
Link copied to clipboard
common
abstract fun multiply(a: T, b: T): T
Multiplies two elements.
abstract fun multiply(a: T, k: Number): T
Multiplication of element by scalar.
plus
Link copied to clipboard
common
open operator fun T.plus(b: T): T
Addition of two elements.
times
Link copied to clipboard
common
open operator fun T.times(b: T): T
Multiplies this element by scalar.
open operator fun T.times(k: Number): T
Multiplication of this element by a scalar.
open operator fun Number.times(b: T): T
Multiplication of this number by element.
toString
Link copied to clipboard
common
open fun toString(): String
unaryMinus
Link copied to clipboard
common
open 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 an unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open override fun unaryOperationFunction(operation: String): (T) -> T
Dynamically dispatches an unary operation with the certain name.
unaryPlus
Link copied to clipboard
common
open operator fun T.unaryPlus(): T
Returns this value.

Inheritors

Field
Link copied to clipboard
ExtendedFieldOperations
Link copied to clipboard