BigIntegerTruncatedDivision

trait BigIntegerTruncatedDivision extends forCommutativeRing[BigInteger] with BigIntegerSigned
trait Order[BigInteger]
trait PartialOrder[BigInteger]
trait Eq[BigInteger]
trait forCommutativeRing[BigInteger]
trait CommutativeRing[BigInteger]
trait CommutativeRng[BigInteger]
trait CommutativeRig[BigInteger]
trait MultiplicativeCommutativeMonoid[BigInteger]
trait CommutativeSemiring[BigInteger]
trait MultiplicativeCommutativeSemigroup[BigInteger]
trait Ring[BigInteger]
trait Rng[BigInteger]
trait Rig[BigInteger]
trait MultiplicativeMonoid[BigInteger]
trait Semiring[BigInteger]
trait MultiplicativeSemigroup[BigInteger]
trait forAdditiveCommutativeGroup[BigInteger]
trait AdditiveCommutativeGroup[BigInteger]
trait AdditiveGroup[BigInteger]
trait forAdditiveCommutativeMonoid[BigInteger]
trait AdditiveCommutativeMonoid[BigInteger]
trait AdditiveCommutativeSemigroup[BigInteger]
trait AdditiveMonoid[BigInteger]
trait AdditiveSemigroup[BigInteger]
trait Serializable
trait TruncatedDivision[BigInteger]
trait Signed[BigInteger]
class Object
trait Matchable
class Any

Value members

Concrete methods

def tmod(a: BigInteger, b: BigInteger): BigInteger
def toBigIntOpt(n: BigInteger): Opt[BigInt]
def tquot(a: BigInteger, b: BigInteger): BigInteger
override
def tquotmod(a: BigInteger, b: BigInteger): (BigInteger, BigInteger)
Definition Classes
TruncatedDivision

Inherited methods

override
def abs(a: BigInteger): BigInteger
Definition Classes
Inherited from
BigIntegerSigned
override
def additive: CommutativeGroup[BigInteger]
Definition Classes
AdditiveCommutativeGroup -> AdditiveCommutativeMonoid -> AdditiveCommutativeSemigroup -> AdditiveGroup -> AdditiveMonoid -> AdditiveSemigroup
Inherited from
AdditiveCommutativeGroup
final override
def additiveCommutativeMonoid: AdditiveCommutativeMonoid[BigInteger]
Definition Classes
forAdditiveCommutativeMonoid -> Signed
Inherited from
forAdditiveCommutativeMonoid
def compare(x: BigInteger, y: BigInteger): Int
Inherited from
BigIntegerOrder
def comparison(x: BigInteger, y: BigInteger): Comparison

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Like compare, but returns a cats.kernel.Comparison instead of an Int. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
Order
override
def eqv(x: BigInteger, y: BigInteger): Boolean
Definition Classes
BigIntegerOrder -> Order -> PartialOrder -> Eq
Inherited from
BigIntegerOrder
def fmod(x: BigInteger, y: BigInteger): BigInteger
Inherited from
forCommutativeRing
def fquot(x: BigInteger, y: BigInteger): BigInteger
Inherited from
forCommutativeRing
override
def fquotmod(x: BigInteger, y: BigInteger): (BigInteger, BigInteger)
Definition Classes
forCommutativeRing -> TruncatedDivision
Inherited from
forCommutativeRing
def fromBigInt(n: BigInt): BigInteger

Convert the given BigInt to an instance of A.

Convert the given BigInt to an instance of A.

This is equivalent to n repeated summations of this ring's one, or -n summations of -one if n is negative.

Most type class instances should consider overriding this method for performance reasons.

Inherited from
Ring
def fromInt(n: Int): BigInteger

Convert the given integer to an instance of A.

Convert the given integer to an instance of A.

Defined to be equivalent to sumN(one, n).

That is, n repeated summations of this ring's one, or -n summations of -one if n is negative.

Most type class instances should consider overriding this method for performance reasons.

Inherited from
Ring
override
def gt(x: BigInteger, y: BigInteger): Boolean
Definition Classes
BigIntegerOrder -> Order -> PartialOrder
Inherited from
BigIntegerOrder
override
def gteqv(x: BigInteger, y: BigInteger): Boolean
Definition Classes
BigIntegerOrder -> Order -> PartialOrder
Inherited from
BigIntegerOrder
def isOne(a: BigInteger)(implicit ev: Eq[BigInteger]): Boolean

Tests if a is one.

Tests if a is one.

Inherited from
MultiplicativeMonoid
def isSignNegative(a: BigInteger): Boolean
Inherited from
Signed
def isSignNonNegative(a: BigInteger): Boolean
Inherited from
Signed
def isSignNonPositive(a: BigInteger): Boolean
Inherited from
Signed
def isSignNonZero(a: BigInteger): Boolean
Inherited from
Signed
def isSignPositive(a: BigInteger): Boolean
Inherited from
Signed
def isSignZero(a: BigInteger): Boolean
Inherited from
Signed
def isZero(a: BigInteger)(implicit ev: Eq[BigInteger]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from
AdditiveMonoid
override
def lt(x: BigInteger, y: BigInteger): Boolean
Definition Classes
BigIntegerOrder -> Order -> PartialOrder
Inherited from
BigIntegerOrder
override
def lteqv(x: BigInteger, y: BigInteger): Boolean
Definition Classes
BigIntegerOrder -> Order -> PartialOrder
Inherited from
BigIntegerOrder
override
def max(x: BigInteger, y: BigInteger): BigInteger
Definition Classes
Inherited from
BigIntegerOrder
override
def min(x: BigInteger, y: BigInteger): BigInteger
Definition Classes
Inherited from
BigIntegerOrder
def minus(x: BigInteger, y: BigInteger): BigInteger
Inherited from
AdditiveGroup
override
def multiplicative: CommutativeMonoid[BigInteger]
Definition Classes
MultiplicativeCommutativeMonoid -> MultiplicativeCommutativeSemigroup -> MultiplicativeMonoid -> MultiplicativeSemigroup
Inherited from
MultiplicativeCommutativeMonoid
def negate(x: BigInteger): BigInteger
Inherited from
AdditiveGroup
override
def neqv(x: BigInteger, y: BigInteger): Boolean
Definition Classes
BigIntegerOrder -> Order -> Eq
Inherited from
BigIntegerOrder
def one: BigInteger
Inherited from
MultiplicativeMonoid
def order: Order[BigInteger]
Inherited from
BigIntegerSigned
def partialCompare(x: BigInteger, y: BigInteger): Double
Inherited from
Order
def partialComparison(x: BigInteger, y: BigInteger): Option[Comparison]

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Like partialCompare, but returns a cats.kernel.Comparison instead of an Double. Has the benefit of being able to pattern match on, but not as performant.

Inherited from
PartialOrder
def plus(x: BigInteger, y: BigInteger): BigInteger
Inherited from
AdditiveSemigroup
def pmax(x: BigInteger, y: BigInteger): Option[BigInteger]

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Returns Some(x) if x >= y, Some(y) if x < y, otherwise None.

Inherited from
PartialOrder
def pmin(x: BigInteger, y: BigInteger): Option[BigInteger]

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Returns Some(x) if x <= y, Some(y) if x > y, otherwise None.

Inherited from
PartialOrder
override
def pow(a: BigInteger, n: Int): BigInteger
Definition Classes
MultiplicativeMonoid -> MultiplicativeSemigroup
Inherited from
MultiplicativeMonoid
@nowarn("msg=deprecated")
def product(as: IterableOnce[BigInteger]): BigInteger

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from
MultiplicativeMonoid
def sign(a: BigInteger): Sign

Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

Returns Zero if a is 0, Positive if a is positive, and Negative is a is negative.

Inherited from
Signed
override
def signum(a: BigInteger): Int
Definition Classes
Inherited from
BigIntegerSigned
@nowarn("msg=deprecated")
def sum(as: IterableOnce[BigInteger]): BigInteger

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from
AdditiveMonoid
override
def sumN(a: BigInteger, n: Int): BigInteger
Definition Classes
AdditiveGroup -> AdditiveMonoid -> AdditiveSemigroup
Inherited from
AdditiveGroup
def times(x: BigInteger, y: BigInteger): BigInteger
Inherited from
MultiplicativeSemigroup
def toOrdering: Ordering[BigInteger]

Convert a Order[A] to a scala.math.Ordering[A] instance.

Convert a Order[A] to a scala.math.Ordering[A] instance.

Inherited from
Order
def tryCompare(x: BigInteger, y: BigInteger): Option[Int]

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

Result of comparing x with y. Returns None if operands are not comparable. If operands are comparable, returns Some[Int] where the Int sign is:

  • negative iff x < y
  • zero iff x = y
  • positive iff x > y
Inherited from
PartialOrder
@nowarn("msg=deprecated")
override
def tryProduct(as: IterableOnce[BigInteger]): Option[BigInteger]
Definition Classes
MultiplicativeMonoid -> MultiplicativeSemigroup
Inherited from
MultiplicativeMonoid
@nowarn("msg=deprecated")
override
def trySum(as: IterableOnce[BigInteger]): Option[BigInteger]
Definition Classes
AdditiveMonoid -> AdditiveSemigroup
Inherited from
AdditiveMonoid
def zero: BigInteger
Inherited from
AdditiveMonoid