Package-level declarations

Types

Link copied to clipboard

Type alias for CommutativeGroup, also known as an abelian group.

Link copied to clipboard
Link copied to clipboard

Describes a context that represents mathematical commutative group (a.k.a. abelian group).

Link copied to clipboard

Describes a context that represents mathematical commutative monoid (a.k.a. abelian monoid).

Link copied to clipboard

Describes a context that represents mathematical commutative ring.

Link copied to clipboard

Describes a context that represents mathematical commutative semigroup (a.k.a. abelian semigroup).

Link copied to clipboard

Describes a context that represents mathematical commutative semiring.

Link copied to clipboard
interface Divide<in Left, in Right, out Result> : KoneContext

An operation context for the division operator.

Link copied to clipboard
interface DivideRemainder<in Left, in Right, out Result> : KoneContext

An operation context for Euclidean division (division with remainder).

Link copied to clipboard
@Serializable
data class EuclideanDivisionResult<Number>(val quotient: Number, val remainder: Number)

Wrapper class for a result of Euclidean division (a.k.a. a division with remainder). See EuclideanSemiring's or EuclideanRing's docs for more.

Link copied to clipboard

Describes a context that represents Euclidean ring (a.k.a. Euclidean domain).

Link copied to clipboard

Describes a context that represents Euclidean semiring (i.e. Euclidean ring (a.k.a. Euclidean domain) but without subtraction).

Link copied to clipboard

Describes a context that represents "extended" mathematical semiring.

Link copied to clipboard

Describes a context that represents mathematical field.

Link copied to clipboard
interface Group<Number> : Monoid<Number>

Describes a context that represents mathematical group.

Link copied to clipboard
interface Minus<in Left, in Right, out Result> : KoneContext

An operation context for the binary minus (subtraction) operator.

Link copied to clipboard
interface Monoid<Number> : Semigroup<Number>

Describes a context that represents mathematical monoid.

Link copied to clipboard
class OverflowException(message: String? = "Overflow happened") : ArithmeticException

Describes that overflow happened during arithmetic operation. For example, overflow in Int or Long operations like addition or multiplication.

Link copied to clipboard
interface Plus<in Left, in Right, out Result> : KoneContext

An operation context for the binary plus (addition) operator.

Link copied to clipboard
interface Power<in Base, in Exponent, out Result> : KoneContext

An operation context for exponentiation (power).

Link copied to clipboard
interface Reciprocal<in Input, out Result> : KoneContext

An operation context for computing the reciprocal (multiplicative inverse).

Link copied to clipboard
interface Remainder<in Left, in Right, out Result> : KoneContext

An operation context for the remainder (modulo) operator.

Link copied to clipboard

Describes a context that represents mathematical ring.

Link copied to clipboard
interface Semigroup<Number> : KoneContext

Describes a context that represents mathematical semigroup.

Link copied to clipboard

Describes a context that represents mathematical semiring.

Link copied to clipboard
enum Sign : Enum<Sign>

Represents the sign of a number: negative, zero, or positive.

Link copied to clipboard
interface Times<in Left, in Right, out Result> : KoneContext

An operation context for the multiplication operator.

Link copied to clipboard
interface UnaryMinus<in Input, out Result> : KoneContext

An operation context for the unary minus (negation) operator.

Link copied to clipboard
interface UnaryPlus<in Input, out Result> : KoneContext

An operation context for the unary plus operator.

Functions

Link copied to clipboard
context(group: Group<Number>, order: Order<Number>)
fun <Number> Number.absoluteValue(): Number

Returns absolute value of this number. I.e. if this number is non-negative it is returned, otherwise its negation is returned.

Link copied to clipboard

Returns the Byte commutative group context (a singleton implementing CommutativeGroup for Byte).

Returns the Double commutative group context (a singleton implementing CommutativeGroup for Double).

Returns the Float commutative group context (a singleton implementing CommutativeGroup for Float).

Returns the Int commutative group context (a singleton implementing CommutativeGroup for Int).

Returns the Long commutative group context (a singleton implementing CommutativeGroup for Long).

Returns the Short commutative group context (a singleton implementing CommutativeGroup for Short).

Link copied to clipboard

Returns the Byte commutative monoid context (a singleton implementing CommutativeMonoid for Byte).

Returns the Double commutative monoid context (a singleton implementing CommutativeMonoid for Double).

Returns the Float commutative monoid context (a singleton implementing CommutativeMonoid for Float).

Returns the Int commutative monoid context (a singleton implementing CommutativeMonoid for Int).

Returns the Long commutative monoid context (a singleton implementing CommutativeMonoid for Long).

Returns the Short commutative monoid context (a singleton implementing CommutativeMonoid for Short).

Returns the UByte commutative monoid context (a singleton implementing CommutativeMonoid for UByte).

Returns the UInt commutative monoid context (a singleton implementing CommutativeMonoid for UInt).

Returns the ULong commutative monoid context (a singleton implementing CommutativeMonoid for ULong).

Returns the UShort commutative monoid context (a singleton implementing CommutativeMonoid for UShort).

Link copied to clipboard

Returns the Byte commutative ring context (a singleton implementing CommutativeRing for Byte).

Returns the Double commutative ring context (a singleton implementing CommutativeRing for Double).

Returns the Float commutative ring context (a singleton implementing CommutativeRing for Float).

Returns the Int commutative ring context (a singleton implementing CommutativeRing for Int).

Returns the Long commutative ring context (a singleton implementing CommutativeRing for Long).

Returns the Short commutative ring context (a singleton implementing CommutativeRing for Short).

Link copied to clipboard

Returns the Byte commutative semigroup context (a singleton implementing CommutativeSemigroup for Byte).

Returns the Double commutative semigroup context (a singleton implementing CommutativeSemigroup for Double).

Returns the Float commutative semigroup context (a singleton implementing CommutativeSemigroup for Float).

Returns the Int commutative semigroup context (a singleton implementing CommutativeSemigroup for Int).

Returns the Long commutative semigroup context (a singleton implementing CommutativeSemigroup for Long).

Returns the Short commutative semigroup context (a singleton implementing CommutativeSemigroup for Short).

Returns the UByte commutative semigroup context (a singleton implementing CommutativeSemigroup for UByte).

Returns the UInt commutative semigroup context (a singleton implementing CommutativeSemigroup for UInt).

Returns the ULong commutative semigroup context (a singleton implementing CommutativeSemigroup for ULong).

Returns the UShort commutative semigroup context (a singleton implementing CommutativeSemigroup for UShort).

Link copied to clipboard

Returns the Byte commutative semiring context (a singleton implementing CommutativeSemiring for Byte).

Returns the Double commutative semiring context (a singleton implementing CommutativeSemiring for Double).

Returns the Float commutative semiring context (a singleton implementing CommutativeSemiring for Float).

Returns the Int commutative semiring context (a singleton implementing CommutativeSemiring for Int).

Returns the Long commutative semiring context (a singleton implementing CommutativeSemiring for Long).

Returns the Short commutative semiring context (a singleton implementing CommutativeSemiring for Short).

Returns the UByte commutative semiring context (a singleton implementing CommutativeSemiring for UByte).

Returns the UInt commutative semiring context (a singleton implementing CommutativeSemiring for UInt).

Returns the ULong commutative semiring context (a singleton implementing CommutativeSemiring for ULong).

Returns the UShort commutative semiring context (a singleton implementing CommutativeSemiring for UShort).

Link copied to clipboard
context(divide: Divide<Left, Right, Result>)
operator fun <Left, Right, Result> Left.div(other: Right): Result

Performs division using the given Divide context.

Link copied to clipboard
inline fun <Left, Right, Result> Divide(crossinline block: (left: Left, right: Right) -> Result): Divide<Left, Right, Result>

Creates a Divide instance from a lambda.

Link copied to clipboard
inline fun <Left, Right, Result> DivideRemainder(crossinline block: (left: Left, right: Right) -> Result): DivideRemainder<Left, Right, Result>

Creates a DivideRemainder instance from a lambda.

Link copied to clipboard

Throws ArithmeticException with message "Division by zero". Used when division by zero is attempted.

Link copied to clipboard
context(divideRemainder: DivideRemainder<Left, Right, Result>)
infix fun <Left, Right, Result> Left.divrem(other: Right): Result

Performs Euclidean division using the given DivideRemainder context.

Link copied to clipboard

Returns the Byte equality context (a singleton implementing Equality for Byte).

Returns the Double equality context (a singleton implementing Equality for Double).

Returns the Float equality context (a singleton implementing Equality for Float).

Returns the Int equality context (a singleton implementing Equality for Int).

Returns the Long equality context (a singleton implementing Equality for Long).

Returns the Short equality context (a singleton implementing Equality for Short).

Returns the UByte equality context (a singleton implementing Equality for UByte).

Returns the UInt equality context (a singleton implementing Equality for UInt).

Returns the ULong equality context (a singleton implementing Equality for ULong).

Returns the UShort equality context (a singleton implementing Equality for UShort).

Link copied to clipboard

Returns the Byte euclidean ring context (a singleton implementing EuclideanRing for Byte).

Returns the Int euclidean ring context (a singleton implementing EuclideanRing for Int).

Returns the Long euclidean ring context (a singleton implementing EuclideanRing for Long).

Returns the Short euclidean ring context (a singleton implementing EuclideanRing for Short).

Link copied to clipboard

Returns the Byte euclidean semiring context (a singleton implementing EuclideanSemiring for Byte).

Returns the Int euclidean semiring context (a singleton implementing EuclideanSemiring for Int).

Returns the Long euclidean semiring context (a singleton implementing EuclideanSemiring for Long).

Returns the Short euclidean semiring context (a singleton implementing EuclideanSemiring for Short).

Returns the UByte euclidean semiring context (a singleton implementing EuclideanSemiring for UByte).

Returns the UInt euclidean semiring context (a singleton implementing EuclideanSemiring for UInt).

Returns the ULong euclidean semiring context (a singleton implementing EuclideanSemiring for ULong).

Returns the UShort euclidean semiring context (a singleton implementing EuclideanSemiring for UShort).

Link copied to clipboard

Returns the Double field context (a singleton implementing Field for Double).

Returns the Float field context (a singleton implementing Field for Float).

Link copied to clipboard

Returns the Byte group context (a singleton implementing Group for Byte).

Returns the Double group context (a singleton implementing Group for Double).

Returns the Float group context (a singleton implementing Group for Float).

Returns the Int group context (a singleton implementing Group for Int).

Returns the Long group context (a singleton implementing Group for Long).

Returns the Short group context (a singleton implementing Group for Short).

Link copied to clipboard

Returns the Byte hashing context (a singleton implementing Hashing for Byte).

Returns the Double hashing context (a singleton implementing Hashing for Double).

Returns the Float hashing context (a singleton implementing Hashing for Float).

Returns the Int hashing context (a singleton implementing Hashing for Int).

Returns the Long hashing context (a singleton implementing Hashing for Long).

Returns the Short hashing context (a singleton implementing Hashing for Short).

Returns the UByte hashing context (a singleton implementing Hashing for UByte).

Returns the UInt hashing context (a singleton implementing Hashing for UInt).

Returns the ULong hashing context (a singleton implementing Hashing for ULong).

Returns the UShort hashing context (a singleton implementing Hashing for UShort).

Link copied to clipboard
context(monoid: Monoid<Number>, order: Order<Number>)
fun <Number> Number.isNegative(): Boolean

Checks if this number is negative in the ordered semiring.

Checks if this sign is negative.

Link copied to clipboard
context(monoid: Monoid<Number>, order: Order<Number>)
fun <Number> Number.isNonNegative(): Boolean

Checks if this number is non-negative in the ordered semiring.

Checks if this sign is non-negative (i.e. zero or positive).

Link copied to clipboard
context(monoid: Monoid<Number>, order: Order<Number>)
fun <Number> Number.isNonPositive(): Boolean

Checks if this number is non-positive in the ordered semiring.

Checks if this sign is non-positive (i.e. zero or negative).

Link copied to clipboard

Checks if this sign is non-zero.

Link copied to clipboard
context(semiring: Semiring<Number>, equality: Equality<Number>)
fun <Number> Number.isNotOne(): Boolean
Link copied to clipboard
context(monoid: Monoid<Number>, equality: Equality<Number>)
fun <Number> Number.isNotZero(): Boolean
Link copied to clipboard
context(semiring: Semiring<Number>, equality: Equality<Number>)
fun <Number> Number.isOne(): Boolean
Link copied to clipboard
context(monoid: Monoid<Number>, order: Order<Number>)
fun <Number> Number.isPositive(): Boolean

Checks if this number is positive in the ordered semiring.

Checks if this sign is positive.

Link copied to clipboard
context(monoid: Monoid<Number>, equality: Equality<Number>)
fun <Number> Number.isZero(): Boolean

Checks if this sign is zero.

Link copied to clipboard
inline fun <Left, Right, Result> Minus(crossinline block: (left: Left, right: Right) -> Result): Minus<Left, Right, Result>

Creates a Minus instance from a lambda.

Link copied to clipboard
context(minus: Minus<Left, Right, Result>)
operator fun <Left, Right, Result> Left.minus(other: Right): Result

Performs subtraction using the given Minus context.

Link copied to clipboard

Returns the Byte monoid context (a singleton implementing Monoid for Byte).

Returns the Double monoid context (a singleton implementing Monoid for Double).

Returns the Float monoid context (a singleton implementing Monoid for Float).

Returns the Int monoid context (a singleton implementing Monoid for Int).

Returns the Long monoid context (a singleton implementing Monoid for Long).

Returns the Short monoid context (a singleton implementing Monoid for Short).

Returns the UByte monoid context (a singleton implementing Monoid for UByte).

Returns the UInt monoid context (a singleton implementing Monoid for UInt).

Returns the ULong monoid context (a singleton implementing Monoid for ULong).

Returns the UShort monoid context (a singleton implementing Monoid for UShort).

Throws ArithmeticException with message "Undefined subtraction result in extended semiring". Used when undefined subtraction is attempted.

Link copied to clipboard

Throws NumberFormatException with a message that the input's format is incorrect for the radix.

Link copied to clipboard

Returns the Byte order context (a singleton implementing Order for Byte).

Returns the Double order context (a singleton implementing Order for Double).

Returns the Float order context (a singleton implementing Order for Float).

Returns the Int order context (a singleton implementing Order for Int).

Returns the Long order context (a singleton implementing Order for Long).

Returns the Short order context (a singleton implementing Order for Short).

Returns the UByte order context (a singleton implementing Order for UByte).

Returns the UInt order context (a singleton implementing Order for UInt).

Returns the ULong order context (a singleton implementing Order for ULong).

Returns the UShort order context (a singleton implementing Order for UShort).

Link copied to clipboard

Throws OverflowException with message "Overflow happened". Used when overflow happened during arithmetic operation.

Link copied to clipboard
inline fun <Left, Right, Result> Plus(crossinline block: (left: Left, right: Right) -> Result): Plus<Left, Right, Result>

Creates a Plus instance from a lambda.

Link copied to clipboard
context(plus: Plus<Left, Right, Result>)
operator fun <Left, Right, Result> Left.plus(other: Right): Result

Performs addition using the given Plus context.

Link copied to clipboard
context(power: Power<Base, Exponent, Result>)
infix fun <Base, Exponent, Result> Base.pow(exponent: Exponent): Result

Raises this element to the power of exponent using the given Power context (infix notation).

Link copied to clipboard
inline fun <Base, Exponent, Result> Power(crossinline block: (base: Base, exponent: Exponent) -> Result): Power<Base, Exponent, Result>

Creates a Power instance from a lambda.

Link copied to clipboard
context(power: Power<Base, Exponent, Result>)
fun <Base, Exponent, Result> power(base: Base, exponent: Exponent): Result

Raises base to the power of exponent using the given Power context.

Link copied to clipboard
inline fun <Input, Result> Reciprocal(crossinline block: (Input) -> Result): Reciprocal<Input, Result>

Creates a Reciprocal instance from a lambda.

Link copied to clipboard

Computes the reciprocal using the given Reciprocal context.

Link copied to clipboard

Returns the Byte reification context (a singleton implementing Reification for Byte).

Returns the Double reification context (a singleton implementing Reification for Double).

Returns the Float reification context (a singleton implementing Reification for Float).

Returns the Int reification context (a singleton implementing Reification for Int).

Returns the Long reification context (a singleton implementing Reification for Long).

Returns the Short reification context (a singleton implementing Reification for Short).

Returns the UByte reification context (a singleton implementing Reification for UByte).

Returns the UInt reification context (a singleton implementing Reification for UInt).

Returns the ULong reification context (a singleton implementing Reification for ULong).

Returns the UShort reification context (a singleton implementing Reification for UShort).

Link copied to clipboard
context(remainder: Remainder<Left, Right, Result>)
operator fun <Left, Right, Result> Left.rem(other: Right): Result

Computes the remainder using the given Remainder context.

Link copied to clipboard
inline fun <Left, Right, Result> Remainder(crossinline block: (left: Left, right: Right) -> Result): Remainder<Left, Right, Result>

Creates a Remainder instance from a lambda.

Link copied to clipboard

Returns the Byte ring context (a singleton implementing Ring for Byte).

Returns the Double ring context (a singleton implementing Ring for Double).

Returns the Float ring context (a singleton implementing Ring for Float).

Returns the Int ring context (a singleton implementing Ring for Int).

Returns the Long ring context (a singleton implementing Ring for Long).

Returns the Short ring context (a singleton implementing Ring for Short).

Link copied to clipboard

Returns the safe Double commutative group context (a singleton implementing CommutativeGroup for Double with NaN/Infinity validation).

Returns the safe Long commutative group context (a singleton implementing CommutativeGroup for Long with overflow checking).

Link copied to clipboard

Returns the safe Double commutative monoid context (a singleton implementing CommutativeMonoid for Double with NaN/Infinity validation).

Returns the safe Long commutative monoid context (a singleton implementing CommutativeMonoid for Long with overflow checking).

Link copied to clipboard

Returns the safe Double commutative ring context (a singleton implementing CommutativeRing for Double with NaN/Infinity validation).

Returns the safe Long commutative ring context (a singleton implementing CommutativeRing for Long with overflow checking).

Link copied to clipboard

Returns the safe Double commutative semigroup context (a singleton implementing CommutativeSemigroup for Double with NaN/Infinity validation).

Returns the safe Long commutative semigroup context (a singleton implementing CommutativeSemigroup for Long with overflow checking).

Link copied to clipboard

Returns the safe Double commutative semiring context (a singleton implementing CommutativeSemiring for Double with NaN/Infinity validation).

Returns the safe Long commutative semiring context (a singleton implementing CommutativeSemiring for Long with overflow checking).

Link copied to clipboard

Returns the safe Double equality context (a singleton implementing Equality for Double with NaN/Infinity validation).

Returns the safe Long equality context (a singleton implementing Equality for Long with overflow checking).

Link copied to clipboard

Returns the safe Long Euclidean ring context (a singleton implementing EuclideanRing for Long with overflow checking).

Link copied to clipboard

Returns the safe Long Euclidean semiring context (a singleton implementing EuclideanSemiring for Long with overflow checking).

Link copied to clipboard

Returns the safe Double field context (a singleton implementing Field for Double with NaN/Infinity validation).

Link copied to clipboard

Returns the safe Double group context (a singleton implementing Group for Double with NaN/Infinity validation).

Returns the safe Long group context (a singleton implementing Group for Long with overflow checking).

Link copied to clipboard

Returns the safe Double hashing context (a singleton implementing Hashing for Double with NaN/Infinity validation).

Returns the safe Long hashing context (a singleton implementing Hashing for Long with overflow checking).

Link copied to clipboard

Returns the safe Double monoid context (a singleton implementing Monoid for Double with NaN/Infinity validation).

Returns the safe Long monoid context (a singleton implementing Monoid for Long with overflow checking).

Link copied to clipboard

Returns the safe Double order context (a singleton implementing Order for Double with NaN/Infinity validation).

Returns the safe Long order context (a singleton implementing Order for Long with overflow checking).

Link copied to clipboard

Returns the safe Double reification context (a singleton implementing Reification for Double with NaN/Infinity validation).

Returns the safe Long reification context (a singleton implementing Reification for Long with overflow checking).

Link copied to clipboard

Returns the safe Double ring context (a singleton implementing Ring for Double with NaN/Infinity validation).

Returns the safe Long ring context (a singleton implementing Ring for Long with overflow checking).

Link copied to clipboard

Returns the safe Double semigroup context (a singleton implementing Semigroup for Double with NaN/Infinity validation).

Returns the safe Long semigroup context (a singleton implementing Semigroup for Long with overflow checking).

Link copied to clipboard

Returns the safe Double semiring context (a singleton implementing Semiring for Double with NaN/Infinity validation).

Returns the safe Long semiring context (a singleton implementing Semiring for Long with overflow checking).

Link copied to clipboard

Returns the Byte semigroup context (a singleton implementing Semigroup for Byte).

Returns the Double semigroup context (a singleton implementing Semigroup for Double).

Returns the Float semigroup context (a singleton implementing Semigroup for Float).

Returns the Int semigroup context (a singleton implementing Semigroup for Int).

Returns the Long semigroup context (a singleton implementing Semigroup for Long).

Returns the Short semigroup context (a singleton implementing Semigroup for Short).

Returns the UByte semigroup context (a singleton implementing Semigroup for UByte).

Returns the UInt semigroup context (a singleton implementing Semigroup for UInt).

Returns the ULong semigroup context (a singleton implementing Semigroup for ULong).

Returns the UShort semigroup context (a singleton implementing Semigroup for UShort).

Link copied to clipboard

Returns the Byte semiring context (a singleton implementing Semiring for Byte).

Returns the Double semiring context (a singleton implementing Semiring for Double).

Returns the Float semiring context (a singleton implementing Semiring for Float).

Returns the Int semiring context (a singleton implementing Semiring for Int).

Returns the Long semiring context (a singleton implementing Semiring for Long).

Returns the Short semiring context (a singleton implementing Semiring for Short).

Returns the UByte semiring context (a singleton implementing Semiring for UByte).

Returns the UInt semiring context (a singleton implementing Semiring for UInt).

Returns the ULong semiring context (a singleton implementing Semiring for ULong).

Returns the UShort semiring context (a singleton implementing Semiring for UShort).

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setCommutativeGroup()

Registers the CommutativeGroup context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setCommutativeGroup()

Registers the CommutativeGroup context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setCommutativeGroup()

Registers the CommutativeGroup context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setCommutativeGroup()

Registers the CommutativeGroup context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setCommutativeGroup()

Registers the CommutativeGroup context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setCommutativeGroup()

Registers the CommutativeGroup context for Short in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setCommutativeGroup()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setCommutativeMonoid()

Registers the CommutativeMonoid context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setCommutativeMonoid()

Registers the CommutativeMonoid context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setCommutativeMonoid()

Registers the CommutativeMonoid context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setCommutativeMonoid()

Registers the CommutativeMonoid context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setCommutativeMonoid()

Registers the CommutativeMonoid context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setCommutativeMonoid()

Registers the CommutativeMonoid context for Short in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UByte.Companion.setCommutativeMonoid()

Registers the CommutativeMonoid context for UByte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UInt.Companion.setCommutativeMonoid()

Registers the CommutativeMonoid context for UInt in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun ULong.Companion.setCommutativeMonoid()

Registers the CommutativeMonoid context for ULong in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UShort.Companion.setCommutativeMonoid()

Registers the CommutativeMonoid context for UShort in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setCommutativeMonoid()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setCommutativeRing()

Registers the CommutativeRing context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setCommutativeRing()

Registers the CommutativeRing context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setCommutativeRing()

Registers the CommutativeRing context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setCommutativeRing()

Registers the CommutativeRing context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setCommutativeRing()

Registers the CommutativeRing context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setCommutativeRing()

Registers the CommutativeRing context for Short in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setCommutativeRing()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setCommutativeSemigroup()

Registers the CommutativeSemigroup context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setCommutativeSemigroup()

Registers the CommutativeSemigroup context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setCommutativeSemigroup()

Registers the CommutativeSemigroup context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setCommutativeSemigroup()

Registers the CommutativeSemigroup context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setCommutativeSemigroup()

Registers the CommutativeSemigroup context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setCommutativeSemigroup()

Registers the CommutativeSemigroup context for Short in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UByte.Companion.setCommutativeSemigroup()

Registers the CommutativeSemigroup context for UByte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UInt.Companion.setCommutativeSemigroup()

Registers the CommutativeSemigroup context for UInt in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun ULong.Companion.setCommutativeSemigroup()

Registers the CommutativeSemigroup context for ULong in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UShort.Companion.setCommutativeSemigroup()

Registers the CommutativeSemigroup context for UShort in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setCommutativeSemigroup()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setCommutativeSemiring()

Registers the CommutativeSemiring context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setCommutativeSemiring()

Registers the CommutativeSemiring context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setCommutativeSemiring()

Registers the CommutativeSemiring context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setCommutativeSemiring()

Registers the CommutativeSemiring context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setCommutativeSemiring()

Registers the CommutativeSemiring context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setCommutativeSemiring()

Registers the CommutativeSemiring context for Short in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UByte.Companion.setCommutativeSemiring()

Registers the CommutativeSemiring context for UByte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UInt.Companion.setCommutativeSemiring()

Registers the CommutativeSemiring context for UInt in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun ULong.Companion.setCommutativeSemiring()

Registers the CommutativeSemiring context for ULong in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UShort.Companion.setCommutativeSemiring()

Registers the CommutativeSemiring context for UShort in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setCommutativeSemiring()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setEquality()

Registers the Equality context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setEquality()

Registers the Equality context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setEquality()

Registers the Equality context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setEquality()

Registers the Equality context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setEquality()

Registers the Equality context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setEquality()

Registers the Equality context for Short in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UByte.Companion.setEquality()

Registers the Equality context for UByte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UInt.Companion.setEquality()

Registers the Equality context for UInt in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun ULong.Companion.setEquality()

Registers the Equality context for ULong in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UShort.Companion.setEquality()

Registers the Equality context for UShort in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setEquality()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setEuclideanRing()

Registers the EuclideanRing context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setEuclideanRing()

Registers the EuclideanRing context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setEuclideanRing()

Registers the EuclideanRing context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setEuclideanRing()

Registers the EuclideanRing context for Short in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setEuclideanRing()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setEuclideanSemiring()

Registers the EuclideanSemiring context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setEuclideanSemiring()

Registers the EuclideanSemiring context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setEuclideanSemiring()

Registers the EuclideanSemiring context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setEuclideanSemiring()

Registers the EuclideanSemiring context for Short in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UByte.Companion.setEuclideanSemiring()

Registers the EuclideanSemiring context for UByte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UInt.Companion.setEuclideanSemiring()

Registers the EuclideanSemiring context for UInt in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun ULong.Companion.setEuclideanSemiring()

Registers the EuclideanSemiring context for ULong in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UShort.Companion.setEuclideanSemiring()

Registers the EuclideanSemiring context for UShort in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setEuclideanSemiring()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setField()

Registers the Field context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setField()

Registers the Field context for Float in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setGroup()

Registers the Group context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setGroup()

Registers the Group context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setGroup()

Registers the Group context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setGroup()

Registers the Group context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setGroup()

Registers the Group context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setGroup()

Registers the Group context for Short in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setGroup()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setHashing()

Registers the Hashing context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setHashing()

Registers the Hashing context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setHashing()

Registers the Hashing context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setHashing()

Registers the Hashing context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setHashing()

Registers the Hashing context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setHashing()

Registers the Hashing context for Short in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UByte.Companion.setHashing()

Registers the Hashing context for UByte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UInt.Companion.setHashing()

Registers the Hashing context for UInt in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun ULong.Companion.setHashing()

Registers the Hashing context for ULong in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UShort.Companion.setHashing()

Registers the Hashing context for UShort in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setHashing()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setMonoid()

Registers the Monoid context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setMonoid()

Registers the Monoid context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setMonoid()

Registers the Monoid context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setMonoid()

Registers the Monoid context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setMonoid()

Registers the Monoid context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setMonoid()

Registers the Monoid context for Short in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UByte.Companion.setMonoid()

Registers the Monoid context for UByte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UInt.Companion.setMonoid()

Registers the Monoid context for UInt in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun ULong.Companion.setMonoid()

Registers the Monoid context for ULong in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UShort.Companion.setMonoid()

Registers the Monoid context for UShort in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setMonoid()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setOrder()

Registers the Order context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setOrder()

Registers the Order context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setOrder()

Registers the Order context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setOrder()

Registers the Order context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setOrder()

Registers the Order context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setOrder()

Registers the Order context for Short in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UByte.Companion.setOrder()

Registers the Order context for UByte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UInt.Companion.setOrder()

Registers the Order context for UInt in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun ULong.Companion.setOrder()

Registers the Order context for ULong in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UShort.Companion.setOrder()

Registers the Order context for UShort in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setOrder()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setReification()

Registers the Reification context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setReification()

Registers the Reification context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setReification()

Registers the Reification context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setReification()

Registers the Reification context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setReification()

Registers the Reification context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setReification()

Registers the Reification context for Short in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UByte.Companion.setReification()

Registers the Reification context for UByte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UInt.Companion.setReification()

Registers the Reification context for UInt in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun ULong.Companion.setReification()

Registers the Reification context for ULong in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UShort.Companion.setReification()

Registers the Reification context for UShort in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setReification()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setRing()

Registers the Ring context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setRing()

Registers the Ring context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setRing()

Registers the Ring context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setRing()

Registers the Ring context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setRing()

Registers the Ring context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setRing()

Registers the Ring context for Short in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setRing()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeCommutativeGroup()

Registers the safe CommutativeGroup context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeCommutativeGroup()

Registers the safe CommutativeGroup context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeCommutativeMonoid()

Registers the safe CommutativeMonoid context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeCommutativeMonoid()

Registers the safe CommutativeMonoid context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeCommutativeRing()

Registers the safe CommutativeRing context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeCommutativeRing()

Registers the safe CommutativeRing context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeCommutativeSemigroup()

Registers the safe CommutativeSemigroup context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeCommutativeSemigroup()

Registers the safe CommutativeSemigroup context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeCommutativeSemiring()

Registers the safe CommutativeSemiring context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeCommutativeSemiring()

Registers the safe CommutativeSemiring context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeEquality()

Registers the safe Equality context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeEquality()

Registers the safe Equality context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeEuclideanRing()

Registers the safe EuclideanRing context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeEuclideanSemiring()

Registers the safe EuclideanSemiring context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeField()

Registers the safe Field context for Double (with NaN/Infinity validation) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeGroup()

Registers the safe Group context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeGroup()

Registers the safe Group context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeHashing()

Registers the safe Hashing context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeHashing()

Registers the safe Hashing context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeMonoid()

Registers the safe Monoid context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeMonoid()

Registers the safe Monoid context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeOrder()

Registers the safe Order context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeOrder()

Registers the safe Order context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeReification()

Registers the safe Reification context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeReification()

Registers the safe Reification context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeRing()

Registers the safe Ring context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeRing()

Registers the safe Ring context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeSemigroup()

Registers the safe Semigroup context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeSemigroup()

Registers the safe Semigroup context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSafeSemiring()

Registers the safe Semiring context for Double (with NaN/Infinity validation) in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSafeSemiring()

Registers the safe Semiring context for Long (with overflow checking) in the given registry.

Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setSemigroup()

Registers the Semigroup context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSemigroup()

Registers the Semigroup context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setSemigroup()

Registers the Semigroup context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setSemigroup()

Registers the Semigroup context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSemigroup()

Registers the Semigroup context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setSemigroup()

Registers the Semigroup context for Short in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UByte.Companion.setSemigroup()

Registers the Semigroup context for UByte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UInt.Companion.setSemigroup()

Registers the Semigroup context for UInt in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun ULong.Companion.setSemigroup()

Registers the Semigroup context for ULong in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UShort.Companion.setSemigroup()

Registers the Semigroup context for UShort in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setSemigroup()
Link copied to clipboard
context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Byte.Companion.setSemiring()

Registers the Semiring context for Byte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Double.Companion.setSemiring()

Registers the Semiring context for Double in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Float.Companion.setSemiring()

Registers the Semiring context for Float in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Int.Companion.setSemiring()

Registers the Semiring context for Int in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Long.Companion.setSemiring()

Registers the Semiring context for Long in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun Short.Companion.setSemiring()

Registers the Semiring context for Short in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UByte.Companion.setSemiring()

Registers the Semiring context for UByte in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UInt.Companion.setSemiring()

Registers the Semiring context for UInt in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun ULong.Companion.setSemiring()

Registers the Semiring context for ULong in the given registry.

context(registry: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun UShort.Companion.setSemiring()

Registers the Semiring context for UShort in the given registry.

context(_: MutableOwnedProviderRegistry<KoneContextRegistry>)
fun BigIntegerCompanion.setSemiring()
Link copied to clipboard
context(monoid: Monoid<Number>, order: Order<Number>)
fun <Number> Number.sign(): Sign

Returns the sign of this number.

Link copied to clipboard
context(monoid: Monoid<Number>, order: Order<Number>)
fun <Number> Number.signInt(): Int

Returns value of (mathematical) sign function. I.e. returns 1 if this number is positive, -1 if this number is negative, or 0 if this number is zero.

Link copied to clipboard
inline fun <Left, Right, Result> Times(crossinline block: (left: Left, right: Right) -> Result): Times<Left, Right, Result>

Creates a Times instance from a lambda.

Link copied to clipboard
operator fun Sign.times(other: Sign): Sign

Multiplies this sign by another sign.

context(times: Times<Left, Right, Result>)
operator fun <Left, Right, Result> Left.times(other: Right): Result

Performs multiplication using the given Times context.

Link copied to clipboard
inline fun <Input, Result> UnaryMinus(crossinline block: (Input) -> Result): UnaryMinus<Input, Result>

Creates a UnaryMinus instance from a lambda.

Link copied to clipboard
operator fun Sign.unaryMinus(): Sign

Returns the negation of this sign.

context(unaryMinus: UnaryMinus<Input, Result>)
operator fun <Input, Result> Input.unaryMinus(): Result

Applies unary minus using the given UnaryMinus context.

Link copied to clipboard
inline fun <Input, Result> UnaryPlus(crossinline block: (Input) -> Result): UnaryPlus<Input, Result>

Creates a UnaryPlus instance from a lambda.

Link copied to clipboard
context(unaryPlus: UnaryPlus<Input, Result>)
operator fun <Input, Result> Input.unaryPlus(): Result

Applies unary plus using the given UnaryPlus context.