Package-level declarations

Types

Link copied to clipboard

Marks declarations that give access to internal entities of polynomials delicate structure. Thus, it allows optimizing performance a bit by skipping standard steps, but such skips may cause critical errors if something is implemented badly. Make sure you fully read and understand documentation and don't break internal contracts.

Link copied to clipboard
class DSL1LabeledPolynomialBuilder<C>(add: (C, C) -> C, initialCapacity: Int? = null)
Link copied to clipboard
data class LabeledPolynomial<C>
Link copied to clipboard
value class LabeledVariable(val name: String)
Link copied to clipboard
data class ListPolynomial<Number>(val coefficients: KoneList<Number>)
Link copied to clipboard
Link copied to clipboard

Represents univariate rational function that stores its numerator and denominator as ListPolynomials.

Link copied to clipboard

Arithmetic context for univariate rational functions with numerator and denominator represented as ListPolynomials.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard

Represents this constant as a ListPolynomial.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@JvmName(name = "divPolynomialNumber")
operator fun <Number, Polynomial> Polynomial.div(other: Number): Polynomial
@JvmName(name = "divVariableNumber")
operator fun <Number, Variable, Polynomial> Variable.div(other: Number): Polynomial
@JvmName(name = "divPolynomialInt")
operator fun <Polynomial> Polynomial.div(other: Int): Polynomial
@JvmName(name = "divVariableInt")
operator fun <Variable, Polynomial> Variable.div(other: Int): Polynomial
@JvmName(name = "divPolynomialLong")
operator fun <Polynomial> Polynomial.div(other: Long): Polynomial
@JvmName(name = "divVariableLong")
operator fun <Variable, Polynomial> Variable.div(other: Long): Polynomial
@JvmName(name = "divPolynomialUInt")
operator fun <Polynomial> Polynomial.div(other: UInt): Polynomial
@JvmName(name = "divVariableUInt")
operator fun <Variable, Polynomial> Variable.div(other: UInt): Polynomial
@JvmName(name = "divPolynomialULong")
operator fun <Polynomial> Polynomial.div(other: ULong): Polynomial
@JvmName(name = "divVariableULong")
operator fun <Variable, Polynomial> Variable.div(other: ULong): Polynomial
Link copied to clipboard
inline fun <C> LabeledPolynomialDSL1(initialCapacity: Int? = null, block: DSL1LabeledPolynomialBuilder<C>.() -> Unit): LabeledPolynomial<C>
Link copied to clipboard
fun <C> ListPolynomial(coefficients: KoneList<C>, reverse: Boolean = false): ListPolynomial<C>
fun <C> ListPolynomial(vararg coefficients: C, reverse: Boolean = false): ListPolynomial<C>

Constructs a ListPolynomial instance with provided coefficients. The collection of coefficients will be reversed if reverse parameter is true.

Link copied to clipboard
fun <Number> ListRationalFunction(numeratorCoefficients: KoneList<Number>, reverse: Boolean = false): ListRationalFunction<Number>

fun <C> ListRationalFunction(numeratorCoefficients: KoneList<C>, denominatorCoefficients: KoneList<C>, reverse: Boolean = false): ListRationalFunction<C>

Constructs ListRationalFunction instance with numerator and denominator constructed with provided numeratorCoefficients and denominatorCoefficients. The both collections of coefficients will be reversed if reverse parameter is true.

Link copied to clipboard
@JvmName(name = "minusVariableNumber")
operator fun <Number, Variable, Polynomial> Variable.minus(other: Number): Polynomial
@JvmName(name = "minusNumberVariable")
operator fun <Number, Variable, Polynomial> Number.minus(other: Variable): Polynomial
@JvmName(name = "minusVariableVariable")
operator fun <Variable, Polynomial> Variable.minus(other: Variable): Polynomial
@JvmName(name = "minusVariablePolynomial")
operator fun <Variable, Polynomial> Variable.minus(other: Polynomial): Polynomial
@JvmName(name = "minusPolynomialVariable")
operator fun <Variable, Polynomial> Polynomial.minus(other: Variable): Polynomial
@JvmName(name = "minusVariableInt")
operator fun <Variable, Polynomial> Variable.minus(other: Int): Polynomial
@JvmName(name = "minusVariableLong")
operator fun <Variable, Polynomial> Variable.minus(other: Long): Polynomial
@JvmName(name = "minusVariableUInt")
operator fun <Variable, Polynomial> Variable.minus(other: UInt): Polynomial
@JvmName(name = "minusVariableULong")
operator fun <Variable, Polynomial> Variable.minus(other: ULong): Polynomial
@JvmName(name = "minusIntVariable")
operator fun <Variable, Polynomial> Int.minus(other: Variable): Polynomial
@JvmName(name = "minusLongVariable")
operator fun <Variable, Polynomial> Long.minus(other: Variable): Polynomial
@JvmName(name = "minusUIntVariable")
operator fun <Variable, Polynomial> UInt.minus(other: Variable): Polynomial
@JvmName(name = "minusULongVariable")
operator fun <Variable, Polynomial> ULong.minus(other: Variable): Polynomial
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@JvmName(name = "plusVariableNumber")
operator fun <Number, Variable, Polynomial> Variable.plus(other: Number): Polynomial
@JvmName(name = "plusNumberVariable")
operator fun <Number, Variable, Polynomial> Number.plus(other: Variable): Polynomial
@JvmName(name = "plusVariableVariable")
operator fun <Variable, Polynomial> Variable.plus(other: Variable): Polynomial
@JvmName(name = "plusVariablePolynomial")
operator fun <Variable, Polynomial> Variable.plus(other: Polynomial): Polynomial
@JvmName(name = "plusPolynomialVariable")
operator fun <Variable, Polynomial> Polynomial.plus(other: Variable): Polynomial
@JvmName(name = "plusVariableInt")
operator fun <Variable, Polynomial> Variable.plus(other: Int): Polynomial
@JvmName(name = "plusVariableLong")
operator fun <Variable, Polynomial> Variable.plus(other: Long): Polynomial
@JvmName(name = "plusVariableUInt")
operator fun <Variable, Polynomial> Variable.plus(other: UInt): Polynomial
@JvmName(name = "plusVariableULong")
operator fun <Variable, Polynomial> Variable.plus(other: ULong): Polynomial
@JvmName(name = "plusIntVariable")
operator fun <Variable, Polynomial> Int.plus(other: Variable): Polynomial
@JvmName(name = "plusLongVariable")
operator fun <Variable, Polynomial> Long.plus(other: Variable): Polynomial
@JvmName(name = "plusUIntVariable")
operator fun <Variable, Polynomial> UInt.plus(other: Variable): Polynomial
@JvmName(name = "plusULongVariable")
operator fun <Variable, Polynomial> ULong.plus(other: Variable): Polynomial
Link copied to clipboard
@JvmName(name = "polynomialValueOfNumber")
fun <Number, Polynomial> polynomialValueOf(value: Number): Polynomial
@JvmName(name = "polynomialValueOfVariable")
fun <Variable, Polynomial> polynomialValueOf(variable: Variable): Polynomial
Link copied to clipboard
@JvmName(name = "substitutePolynomial")
fun <C> LabeledPolynomial<C>.substitute(vararg inputs: KoneMapEntry<LabeledVariable, LabeledPolynomial<C>>): LabeledPolynomial<C>
@JvmName(name = "substituteRationalFunction")
fun <C> LabeledPolynomial<C>.substitute(vararg inputs: KoneMapEntry<LabeledVariable, LabeledRationalFunction<C>>): LabeledRationalFunction<C>
Link copied to clipboard
@JvmName(name = "timesVariableNumber")
operator fun <Number, Variable, Polynomial> Variable.times(other: Number): Polynomial
@JvmName(name = "timesNumberVariable")
operator fun <Number, Variable, Polynomial> Number.times(other: Variable): Polynomial
@JvmName(name = "timesVariableVariable")
operator fun <Variable, Polynomial> Variable.times(other: Variable): Polynomial
@JvmName(name = "timesVariablePolynomial")
operator fun <Variable, Polynomial> Variable.times(other: Polynomial): Polynomial
@JvmName(name = "timesPolynomialVariable")
operator fun <Variable, Polynomial> Polynomial.times(other: Variable): Polynomial
@JvmName(name = "timesVariableInt")
operator fun <Variable, Polynomial> Variable.times(other: Int): Polynomial
@JvmName(name = "timesVariableLong")
operator fun <Variable, Polynomial> Variable.times(other: Long): Polynomial
@JvmName(name = "timesVariableUInt")
operator fun <Variable, Polynomial> Variable.times(other: UInt): Polynomial
@JvmName(name = "timesVariableULong")
operator fun <Variable, Polynomial> Variable.times(other: ULong): Polynomial
@JvmName(name = "timesIntVariable")
operator fun <Variable, Polynomial> Int.times(other: Variable): Polynomial
@JvmName(name = "timesLongVariable")
operator fun <Variable, Polynomial> Long.times(other: Variable): Polynomial
@JvmName(name = "timesUIntVariable")
operator fun <Variable, Polynomial> UInt.times(other: Variable): Polynomial
@JvmName(name = "timesULongVariable")
operator fun <Variable, Polynomial> ULong.times(other: Variable): Polynomial
Link copied to clipboard
@JvmName(name = "unaryMinusVariable")
operator fun <Variable, Polynomial> Variable.unaryMinus(): Polynomial
Link copied to clipboard