ByteAlgebra

Value members

Inherited methods

override def abs(a: Byte): Byte
Definition Classes
Inherited from:
ByteSigned
def ceil(a: Byte): Byte
Inherited from:
IsIntegral
def compare(x: Byte, y: Byte): Int
Inherited from:
ByteOrder

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
def emod(a: Byte, b: Byte): Byte
Inherited from:
ByteIsEuclideanRing
def equot(a: Byte, b: Byte): Byte
Inherited from:
ByteIsEuclideanRing
override def equotmod(a: Byte, b: Byte): (Byte, Byte)
Definition Classes
Inherited from:
ByteIsEuclideanRing
override def eqv(x: Byte, y: Byte): Boolean
Definition Classes
Inherited from:
ByteOrder
def floor(a: Byte): Byte
Inherited from:
IsIntegral
def fmod(x: Byte, y: Byte): Byte
Inherited from:
forCommutativeRing
def fquot(x: Byte, y: Byte): Byte
Inherited from:
forCommutativeRing
override def fquotmod(x: Byte, y: Byte): (Byte, Byte)
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
override def fromInt(n: Int): Byte
Definition Classes
Inherited from:
ByteIsEuclideanRing
override def gcd(a: Byte, b: Byte)(implicit ev: Eq[Byte]): Byte
Definition Classes
Inherited from:
ByteIsEuclideanRing
override def gt(x: Byte, y: Byte): Boolean
Definition Classes
Inherited from:
ByteOrder
override def gteqv(x: Byte, y: Byte): Boolean
Definition Classes
Inherited from:
ByteOrder
def isOne(a: Byte)(implicit ev: Eq[Byte]): 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
Inherited from:
IsIntegral
def isZero(a: Byte)(implicit ev: Eq[Byte]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from:
AdditiveMonoid
override def lcm(a: Byte, b: Byte)(implicit ev: Eq[Byte]): Byte
Definition Classes
Inherited from:
ByteIsEuclideanRing
override def lt(x: Byte, y: Byte): Boolean
Definition Classes
Inherited from:
ByteOrder
override def lteqv(x: Byte, y: Byte): Boolean
Definition Classes
Inherited from:
ByteOrder
def max(x: Byte, y: Byte): Byte

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

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

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

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

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

Inherited from:
Order
override def minus(a: Byte, b: Byte): Byte
Definition Classes
Inherited from:
ByteIsEuclideanRing
def negate(a: Byte): Byte
Inherited from:
ByteIsEuclideanRing
override def neqv(x: Byte, y: Byte): Boolean
Definition Classes
Inherited from:
ByteOrder
def one: Byte
Inherited from:
ByteIsEuclideanRing
Inherited from:
ByteSigned
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(a: Byte, b: Byte): Byte
Inherited from:
ByteIsEuclideanRing
def pmax(x: Byte, y: Byte): Option[Byte]

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

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

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from:
MultiplicativeMonoid
def round(a: Byte): Byte
Inherited from:
IsIntegral
def sign(a: Byte): 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: Byte): Int
Definition Classes
Inherited from:
ByteSigned
@nowarn("msg=deprecated")

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from:
AdditiveMonoid
override def sumN(a: Byte, n: Int): Byte
Definition Classes
Inherited from:
AdditiveGroup
override def times(a: Byte, b: Byte): Byte
def tmod(x: Byte, y: Byte): Byte
Inherited from:
ByteTruncatedDivision
Inherited from:
IsRational
Inherited from:
ByteIsReal
Inherited from:
ByteIsReal

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
Inherited from:
IsIntegral
def toReal(a: Byte): Real
Inherited from:
IsAlgebraic
def tquot(x: Byte, y: Byte): Byte
Inherited from:
ByteTruncatedDivision
def tquotmod(x: Byte, y: Byte): (Byte, Byte)
Inherited from:
TruncatedDivision
def tryCompare(x: Byte, y: Byte): 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[Byte]): Option[Byte]
@nowarn("msg=deprecated")
override def trySum(as: IterableOnce[Byte]): Option[Byte]
Definition Classes
Inherited from:
AdditiveMonoid
def zero: Byte
Inherited from:
ByteIsEuclideanRing