IntTruncatedDivision

Value members

Concrete methods

def tmod(x: Int, y: Int): Int
def tquot(x: Int, y: Int): Int

Inherited methods

override def abs(a: Int): Int
Definition Classes
Inherited from:
IntSigned
def compare(x: Int, y: Int): Int
Inherited from:
IntOrder

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: Int, y: Int): Boolean
Definition Classes
Inherited from:
IntOrder
def fmod(x: Int, y: Int): Int
Inherited from:
forCommutativeRing
def fquot(x: Int, y: Int): Int
Inherited from:
forCommutativeRing
override def fquotmod(x: Int, y: Int): (Int, Int)
Definition Classes
Inherited from:
forCommutativeRing

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): Int

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: Int, y: Int): Boolean
Definition Classes
Inherited from:
IntOrder
override def gteqv(x: Int, y: Int): Boolean
Definition Classes
Inherited from:
IntOrder
def isOne(a: Int)(implicit ev: Eq[Int]): Boolean

Tests if a is one.

Tests if a is one.

Inherited from:
MultiplicativeMonoid
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
Inherited from:
Signed
def isZero(a: Int)(implicit ev: Eq[Int]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from:
AdditiveMonoid
override def lt(x: Int, y: Int): Boolean
Definition Classes
Inherited from:
IntOrder
override def lteqv(x: Int, y: Int): Boolean
Definition Classes
Inherited from:
IntOrder
def max(x: Int, y: Int): Int

If x > y, return x, else return y.

If x > y, return x, else return y.

Inherited from:
Order
def min(x: Int, y: Int): Int

If x < y, return x, else return y.

If x < y, return x, else return y.

Inherited from:
Order
def minus(x: Int, y: Int): Int
Inherited from:
AdditiveGroup
def negate(x: Int): Int
Inherited from:
AdditiveGroup
override def neqv(x: Int, y: Int): Boolean
Definition Classes
Inherited from:
IntOrder
def one: Int
Inherited from:
MultiplicativeMonoid
Inherited from:
Signed
Inherited from:
Order

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: Int, y: Int): Int
Inherited from:
AdditiveSemigroup
def pmax(x: Int, y: Int): Option[Int]

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: Int, y: Int): Option[Int]

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: Int, n: Int): Int
@nowarn("msg=deprecated")

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from:
MultiplicativeMonoid
def sign(a: Int): 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: Int): Int
Definition Classes
Inherited from:
IntSigned
@nowarn("msg=deprecated")
def sum(as: IterableOnce[Int]): Int

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from:
AdditiveMonoid
override def sumN(a: Int, n: Int): Int
Definition Classes
Inherited from:
AdditiveGroup
def times(x: Int, y: Int): Int

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 tquotmod(x: Int, y: Int): (Int, Int)
Inherited from:
TruncatedDivision
def tryCompare(x: Int, y: Int): 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[Int]): Option[Int]
@nowarn("msg=deprecated")
override def trySum(as: IterableOnce[Int]): Option[Int]
Definition Classes
Inherited from:
AdditiveMonoid
def zero: Int
Inherited from:
AdditiveMonoid