CommutativeRing

Describes a context that represents mathematical commutative ring.

Type Parameters

Number

The type of elements of the ring.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The subtraction operation on an Int and a Number.

Link copied to clipboard

The addition operation on an Int and a Number.

Link copied to clipboard
open override val intTimesNumber: Times<Int, Number, Number>

The multiplication operation on an Int and a Number.

Link copied to clipboard

The subtraction operation on an Long and a Number.

Link copied to clipboard

The addition operation on an Long and a Number.

Link copied to clipboard
open override val longTimesNumber: Times<Long, Number, Number>

The multiplication operation on an Long and a Number.

Link copied to clipboard

The subtraction operation on a Number and an Int.

Link copied to clipboard

The subtraction operation on a Number and an Long.

Link copied to clipboard
abstract override val numberMinusNumber: Minus<Number, Number, Number>

The subtraction operation on elements of type Number.

Link copied to clipboard

The subtraction operation on a Number and an UInt.

Link copied to clipboard

The subtraction operation on a Number and an ULong.

Link copied to clipboard

The addition operation on a Number and an Int.

Link copied to clipboard

The addition operation on a Number and an Long.

Link copied to clipboard
abstract override val numberPlusNumber: Plus<Number, Number, Number>

The associative binary addition operation on elements of type Number.

Link copied to clipboard
open override val numberPlusUInt: Plus<Number, UInt, Number>

The addition operation on a Number and an UInt.

Link copied to clipboard
open override val numberPlusULong: Plus<Number, ULong, Number>

The addition operation on a Number and an ULong.

Link copied to clipboard
open override val numberTimesInt: Times<Number, Int, Number>

The multiplication operation on a Number and an Int.

Link copied to clipboard
open override val numberTimesLong: Times<Number, Long, Number>

The multiplication operation on a Number and an Long.

Link copied to clipboard

The associative binary multiplication operation on elements of type Number.

Link copied to clipboard
open override val numberTimesUInt: Times<Number, UInt, Number>

The multiplication operation on a Number and an UInt.

Link copied to clipboard
open override val numberTimesULong: Times<Number, ULong, Number>

The multiplication operation on a Number and an ULong.

Link copied to clipboard
abstract override val numberUnaryMinus: UnaryMinus<Number, Number>

The negation operation on a Number.

Link copied to clipboard
abstract val one: Number

The neutral multiplicative element (a.k.a. unit element) of the semiring.

Link copied to clipboard

The exponentiation operation on a Number base and an UInt exponent.

Link copied to clipboard

The exponentiation operation on a Number base and an ULong exponent.

Link copied to clipboard

The subtraction operation on an UInt and a Number.

Link copied to clipboard
open override val uIntPlusNumber: Plus<UInt, Number, Number>

The addition operation on an UInt and a Number.

Link copied to clipboard
open override val uIntTimesNumber: Times<UInt, Number, Number>

The multiplication operation on an UInt and a Number.

Link copied to clipboard

The subtraction operation on an ULong and a Number.

Link copied to clipboard
open override val uLongPlusNumber: Plus<ULong, Number, Number>

The addition operation on an ULong and a Number.

Link copied to clipboard
open override val uLongTimesNumber: Times<ULong, Number, Number>

The multiplication operation on an ULong and a Number.

Link copied to clipboard
abstract override val zero: Number

The neutral additive element (a.k.a. zero element) of the semiring.

Functions

Link copied to clipboard
open fun valueOf(arg: Int): Number

Converts instance of Int to an element of the Ring it is equal to.

open fun valueOf(arg: Long): Number

Converts instance of Long to an element of the Ring it is equal to.

open fun valueOf(arg: UInt): Number

Converts instance of UInt to an element of the Semiring it is equal to.

open fun valueOf(arg: ULong): Number

Converts instance of ULong to an element of the Semiring it is equal to.