ShortIsReal

Value members

Concrete methods

Inherited methods

override def abs(a: Short): Short
Definition Classes
Inherited from:
ShortSigned
def ceil(a: Short): Short
Inherited from:
IsIntegral
def compare(x: Short, y: Short): Int
Inherited from:
ShortOrder

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: Short, y: Short): Boolean
Definition Classes
Inherited from:
ShortOrder
def floor(a: Short): Short
Inherited from:
IsIntegral
def fmod(x: Short, y: Short): Short
Inherited from:
forCommutativeRing
def fquot(x: Short, y: Short): Short
Inherited from:
forCommutativeRing
override def fquotmod(x: Short, y: Short): (Short, Short)
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): Short

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

Tests if a is zero.

Tests if a is zero.

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

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

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

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

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

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

Inherited from:
Order
def minus(x: Short, y: Short): Short
Inherited from:
AdditiveGroup
def negate(x: Short): Short
Inherited from:
AdditiveGroup
override def neqv(x: Short, y: Short): Boolean
Definition Classes
Inherited from:
ShortOrder
def one: Short
Inherited from:
MultiplicativeMonoid
Inherited from:
ShortSigned
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: Short, y: Short): Short
Inherited from:
AdditiveSemigroup
def pmax(x: Short, y: Short): Option[Short]

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

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: Short, n: Int): Short
@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: Short): Short
Inherited from:
IsIntegral
def sign(a: Short): 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: Short): Int
Definition Classes
Inherited from:
ShortSigned
@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: Short, n: Int): Short
Definition Classes
Inherited from:
AdditiveGroup
def times(x: Short, y: Short): Short
def tmod(x: Short, y: Short): Short
Inherited from:
ShortTruncatedDivision
Inherited from:
IsRational

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: Short): Real
Inherited from:
IsAlgebraic
def tquot(x: Short, y: Short): Short
Inherited from:
ShortTruncatedDivision
def tquotmod(x: Short, y: Short): (Short, Short)
Inherited from:
TruncatedDivision

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")
@nowarn("msg=deprecated")
override def trySum(as: IterableOnce[Short]): Option[Short]
Definition Classes
Inherited from:
AdditiveMonoid
def zero: Short
Inherited from:
AdditiveMonoid