Feature: Polynomials and rational functions #469

Merged
lounres merged 132 commits from feature/polynomials into dev 2022-07-28 18:04:06 +03:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 64b33aed18 - Show all commits

View File

@ -108,7 +108,7 @@ class IntModulo {
override fun toString(): String = "$residue mod $modulus" override fun toString(): String = "$residue mod $modulus"
} }
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "OVERRIDE_BY_INLINE", "NOTHING_TO_INLINE") @Suppress("EXTENSION_SHADOWED_BY_MEMBER", "OVERRIDE_BY_INLINE")
class IntModuloRing : Ring<IntModulo> { class IntModuloRing : Ring<IntModulo> {
val modulus: Int val modulus: Int

View File

@ -114,7 +114,7 @@ class Rational {
override fun toString(): String = if (denominator == 1L) "$numerator" else "$numerator/$denominator" override fun toString(): String = if (denominator == 1L) "$numerator" else "$numerator/$denominator"
} }
@Suppress("EXTENSION_SHADOWED_BY_MEMBER", "OVERRIDE_BY_INLINE", "NOTHING_TO_INLINE") @Suppress("EXTENSION_SHADOWED_BY_MEMBER", "OVERRIDE_BY_INLINE")
@OptIn(UnstableKMathAPI::class) @OptIn(UnstableKMathAPI::class)
object RationalField : Field<Rational>, NumbersAddOps<Rational> { object RationalField : Field<Rational>, NumbersAddOps<Rational> {
override inline val zero: Rational get() = Rational.ZERO override inline val zero: Rational get() = Rational.ZERO