Class

spire.std

ShortAlgebra

Related Doc: package std

Permalink

class ShortAlgebra extends ShortIsEuclideanRing with ShortIsReal with Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, ShortIsReal, ShortIsSigned, ShortOrder, IsIntegral[Short], IsRational[Short], IsAlgebraic[Short], IsReal[Short], Signed[Short], Order[Short], PartialOrder[Short], Eq[Short], ShortIsEuclideanRing, EuclideanRing[Short], CRing[Short], MultiplicativeCMonoid[Short], MultiplicativeCSemigroup[Short], Ring[Short], Rng[Short], AdditiveAbGroup[Short], AdditiveCMonoid[Short], AdditiveCSemigroup[Short], AdditiveGroup[Short], Rig[Short], MultiplicativeMonoid[Short], Semiring[Short], MultiplicativeSemigroup[Short], AdditiveMonoid[Short], AdditiveSemigroup[Short], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ShortAlgebra
  2. Serializable
  3. Serializable
  4. ShortIsReal
  5. ShortIsSigned
  6. ShortOrder
  7. IsIntegral
  8. IsRational
  9. IsAlgebraic
  10. IsReal
  11. Signed
  12. Order
  13. PartialOrder
  14. Eq
  15. ShortIsEuclideanRing
  16. EuclideanRing
  17. CRing
  18. MultiplicativeCMonoid
  19. MultiplicativeCSemigroup
  20. Ring
  21. Rng
  22. AdditiveAbGroup
  23. AdditiveCMonoid
  24. AdditiveCSemigroup
  25. AdditiveGroup
  26. Rig
  27. MultiplicativeMonoid
  28. Semiring
  29. MultiplicativeSemigroup
  30. AdditiveMonoid
  31. AdditiveSemigroup
  32. AnyRef
  33. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ShortAlgebra()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def abs(a: Short): Short

    Permalink

    An idempotent function that ensures an object has a non-negative sign.

    An idempotent function that ensures an object has a non-negative sign.

    Definition Classes
    ShortIsSignedSigned
  5. def additive: AbGroup[Short]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def ceil(a: Short): Short

    Permalink

    Rounds a the nearest integer that is greater than or equal to a.

    Rounds a the nearest integer that is greater than or equal to a.

    Definition Classes
    IsIntegralIsReal
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def compare(x: Short, y: Short): Int

    Permalink
    Definition Classes
    ShortOrderOrder
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def eqv(x: Short, y: Short): Boolean

    Permalink

    Returns true if x and y are equivalent, false otherwise.

    Returns true if x and y are equivalent, false otherwise.

    Definition Classes
    ShortOrderOrderPartialOrderEq
  13. final def euclid(a: Short, b: Short)(implicit eq: Eq[Short]): Short

    Permalink
    Attributes
    protected[this]
    Definition Classes
    EuclideanRing
    Annotations
    @tailrec()
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def floor(a: Short): Short

    Permalink

    Rounds a the nearest integer that is less than or equal to a.

    Rounds a the nearest integer that is less than or equal to a.

    Definition Classes
    IsIntegralIsReal
  16. def fromInt(n: Int): Short

    Permalink

    Defined to be equivalent to additive.sumn(one, n).

    Defined to be equivalent to additive.sumn(one, n). That is, n repeated summations of this ring's one, or -one if n is negative.

    Definition Classes
    ShortIsEuclideanRingRing
  17. def gcd(a: Short, b: Short): Short

    Permalink
    Definition Classes
    ShortIsEuclideanRingEuclideanRing
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def gt(x: Short, y: Short): Boolean

    Permalink
    Definition Classes
    ShortOrderOrderPartialOrder
  20. def gteqv(x: Short, y: Short): Boolean

    Permalink
    Definition Classes
    ShortOrderOrderPartialOrder
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def isOne(a: Short)(implicit ev: Eq[Short]): Boolean

    Permalink
    Definition Classes
    MultiplicativeMonoid
  24. def isSignNegative(a: Short): Boolean

    Permalink
    Definition Classes
    Signed
  25. def isSignNonNegative(a: Short): Boolean

    Permalink
    Definition Classes
    Signed
  26. def isSignNonPositive(a: Short): Boolean

    Permalink
    Definition Classes
    Signed
  27. def isSignNonZero(a: Short): Boolean

    Permalink
    Definition Classes
    Signed
  28. def isSignPositive(a: Short): Boolean

    Permalink
    Definition Classes
    Signed
  29. def isSignZero(a: Short): Boolean

    Permalink
    Definition Classes
    Signed
  30. def isWhole(a: Short): Boolean

    Permalink

    Returns true iff a is a an integer.

    Returns true iff a is a an integer.

    Definition Classes
    IsIntegralIsReal
  31. def isZero(a: Short)(implicit ev: Eq[Short]): Boolean

    Permalink

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  32. def lcm(a: Short, b: Short): Short

    Permalink
    Definition Classes
    EuclideanRing
  33. def lt(x: Short, y: Short): Boolean

    Permalink
    Definition Classes
    ShortOrderOrderPartialOrder
  34. def lteqv(x: Short, y: Short): Boolean

    Permalink
    Definition Classes
    ShortOrderOrderPartialOrder
  35. def max(x: Short, y: Short): Short

    Permalink
    Definition Classes
    Order
  36. def min(x: Short, y: Short): Short

    Permalink
    Definition Classes
    Order
  37. def minus(a: Short, b: Short): Short

    Permalink
    Definition Classes
    ShortIsEuclideanRingAdditiveGroup
  38. def mod(a: Short, b: Short): Short

    Permalink
    Definition Classes
    ShortIsEuclideanRingEuclideanRing
  39. def multiplicative: CMonoid[Short]

    Permalink
  40. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  41. def negate(a: Short): Short

    Permalink
    Definition Classes
    ShortIsEuclideanRingAdditiveGroup
  42. def neqv(x: Short, y: Short): Boolean

    Permalink

    Returns false if x and y are equivalent, true otherwise.

    Returns false if x and y are equivalent, true otherwise.

    Definition Classes
    ShortOrderEq
  43. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. def on[B](f: (B) ⇒ Short): Order[B]

    Permalink

    Defines an order on B by mapping B to A using f and using As order to order B.

    Defines an order on B by mapping B to A using f and using As order to order B.

    Definition Classes
    OrderPartialOrderEq
  46. def one: Short

    Permalink
  47. def partialCompare(x: Short, y: Short): Double

    Permalink

    Result of comparing x with y.

    Result of comparing x with y. Returns NaN if operands are not comparable. If operands are comparable, returns a Double whose sign is: - negative iff x < y - zero iff x === y - positive iff x > y

    Definition Classes
    OrderPartialOrder
  48. def plus(a: Short, b: Short): Short

    Permalink
  49. def pmax(x: Short, y: Short): Option[Short]

    Permalink

    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.

    Definition Classes
    PartialOrder
  50. def pmin(x: Short, y: Short): Option[Short]

    Permalink

    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.

    Definition Classes
    PartialOrder
  51. def pow(a: Short, b: Int): Short

    Permalink

    This is similar to Semigroup#pow, except that a pow 0 is defined to be the multiplicative identity.

    This is similar to Semigroup#pow, except that a pow 0 is defined to be the multiplicative identity.

    Definition Classes
    ShortIsEuclideanRingRigSemiring
  52. def prod(as: TraversableOnce[Short]): Short

    Permalink

    Given a sequence of as, sum them using the monoid and return the total.

    Given a sequence of as, sum them using the monoid and return the total.

    Definition Classes
    MultiplicativeMonoid
  53. def prodOption(as: TraversableOnce[Short]): Option[Short]

    Permalink

    Given a sequence of as, sum them using the semigroup and return the total.

    Given a sequence of as, sum them using the semigroup and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    MultiplicativeSemigroup
  54. def prodn(a: Short, n: Int): Short

    Permalink

    Return a multiplied with itself n times.

    Return a multiplied with itself n times.

    Definition Classes
    MultiplicativeMonoidMultiplicativeSemigroup
  55. def prodnAboveOne(a: Short, n: Int): Short

    Permalink
    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  56. def quot(a: Short, b: Short): Short

    Permalink
    Definition Classes
    ShortIsEuclideanRingEuclideanRing
  57. def quotmod(a: Short, b: Short): (Short, Short)

    Permalink
    Definition Classes
    EuclideanRing
  58. def reverse: Order[Short]

    Permalink

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

    Definition Classes
    OrderPartialOrder
  59. def round(a: Short): Short

    Permalink

    Rounds a to the nearest integer.

    Rounds a to the nearest integer.

    Definition Classes
    IsIntegralIsReal
  60. def sign(a: Short): Sign

    Permalink

    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.

    Definition Classes
    Signed
  61. def signum(a: Short): Int

    Permalink

    Returns 0 if a is 0, > 0 if a is positive, and < 0 is a is negative.

    Returns 0 if a is 0, > 0 if a is positive, and < 0 is a is negative.

    Definition Classes
    ShortIsSignedSigned
  62. def sum(as: TraversableOnce[Short]): Short

    Permalink

    Given a sequence of as, sum them using the monoid and return the total.

    Given a sequence of as, sum them using the monoid and return the total.

    Definition Classes
    AdditiveMonoid
  63. def sumOption(as: TraversableOnce[Short]): Option[Short]

    Permalink

    Given a sequence of as, sum them using the semigroup and return the total.

    Given a sequence of as, sum them using the semigroup and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    AdditiveSemigroup
  64. def sumn(a: Short, n: Int): Short

    Permalink

    Return a added with itself n times.

    Return a added with itself n times.

    Definition Classes
    AdditiveGroupAdditiveMonoidAdditiveSemigroup
  65. def sumnAboveOne(a: Short, n: Int): Short

    Permalink
    Attributes
    protected
    Definition Classes
    AdditiveSemigroup
  66. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  67. def times(a: Short, b: Short): Short

    Permalink
  68. def toAlgebraic(a: Short): Algebraic

    Permalink
    Definition Classes
    IsRationalIsAlgebraic
  69. def toBigInt(n: Short): BigInt

    Permalink
    Definition Classes
    ShortIsRealIsIntegral
  70. def toDouble(n: Short): Double

    Permalink

    Approximates a as a Double.

    Approximates a as a Double.

    Definition Classes
    ShortIsRealIsReal
  71. def toRational(a: Short): Rational

    Permalink
    Definition Classes
    IsIntegralIsRational
  72. def toReal(a: Short): Real

    Permalink
    Definition Classes
    IsAlgebraicIsReal
  73. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  74. def tryCompare(x: Short, y: Short): Option[Int]

    Permalink

    Result of comparing x with y.

    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

    Definition Classes
    PartialOrder
  75. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  78. def zero: Short

    Permalink
    Definition Classes
    ShortIsEuclideanRingAdditiveMonoid

Inherited from Serializable

Inherited from Serializable

Inherited from ShortIsReal

Inherited from ShortIsSigned

Inherited from ShortOrder

Inherited from IsIntegral[Short]

Inherited from IsRational[Short]

Inherited from IsAlgebraic[Short]

Inherited from IsReal[Short]

Inherited from Signed[Short]

Inherited from Order[Short]

Inherited from PartialOrder[Short]

Inherited from Eq[Short]

Inherited from ShortIsEuclideanRing

Inherited from EuclideanRing[Short]

Inherited from CRing[Short]

Inherited from MultiplicativeCMonoid[Short]

Inherited from MultiplicativeCSemigroup[Short]

Inherited from Ring[Short]

Inherited from Rng[Short]

Inherited from AdditiveAbGroup[Short]

Inherited from AdditiveCMonoid[Short]

Inherited from AdditiveCSemigroup[Short]

Inherited from AdditiveGroup[Short]

Inherited from Rig[Short]

Inherited from MultiplicativeMonoid[Short]

Inherited from Semiring[Short]

Inherited from MultiplicativeSemigroup[Short]

Inherited from AdditiveMonoid[Short]

Inherited from AdditiveSemigroup[Short]

Inherited from AnyRef

Inherited from Any

Ungrouped