CommutativeSemiring

Describes a context that represents mathematical commutative semiring.

Type Parameters

Number

The type of elements of the group.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

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

The addition operation on a Number and an UInt.

Link copied to clipboard

The addition operation on a Number and an ULong.

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 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 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 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: 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.