spire.std

IntAlgebra

Related Doc: package std

class IntAlgebra extends IntIsEuclideanRing with IntIsNRoot with IntIsReal with Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. IntAlgebra
  2. Serializable
  3. Serializable
  4. IntIsReal
  5. IntIsSigned
  6. IntOrder
  7. IsIntegral
  8. IsRational
  9. IsAlgebraic
  10. IsReal
  11. Signed
  12. Order
  13. PartialOrder
  14. Eq
  15. IntIsNRoot
  16. NRoot
  17. IntIsEuclideanRing
  18. EuclideanRing
  19. CRing
  20. MultiplicativeCMonoid
  21. MultiplicativeCSemigroup
  22. Ring
  23. Rng
  24. AdditiveAbGroup
  25. AdditiveCMonoid
  26. AdditiveCSemigroup
  27. AdditiveGroup
  28. Rig
  29. MultiplicativeMonoid
  30. Semiring
  31. MultiplicativeSemigroup
  32. AdditiveMonoid
  33. AdditiveSemigroup
  34. AnyRef
  35. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IntAlgebra()

Value Members

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

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

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

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

    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
    IntIsSignedSigned
  5. def additive: AbGroup[Int]

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def ceil(a: Int): Int

    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

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

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

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

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

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

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

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

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

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

    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 fpow(a: Int, b: Int): Int

    Definition Classes
    IntIsNRootNRoot
  17. def fromInt(n: Int): Int

    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
    IntIsEuclideanRingRing
  18. def gcd(a: Int, b: Int): Int

    Definition Classes
    IntIsEuclideanRingEuclideanRing
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def gt(x: Int, y: Int): Boolean

    Definition Classes
    IntOrderOrderPartialOrder
  21. def gteqv(x: Int, y: Int): Boolean

    Definition Classes
    IntOrderOrderPartialOrder
  22. def hashCode(): Int

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

    Definition Classes
    Any
  24. def isOne(a: Int)(implicit ev: Eq[Int]): Boolean

    Definition Classes
    MultiplicativeMonoid
  25. def isSignNegative(a: Int): Boolean

    Definition Classes
    Signed
  26. def isSignNonNegative(a: Int): Boolean

    Definition Classes
    Signed
  27. def isSignNonPositive(a: Int): Boolean

    Definition Classes
    Signed
  28. def isSignNonZero(a: Int): Boolean

    Definition Classes
    Signed
  29. def isSignPositive(a: Int): Boolean

    Definition Classes
    Signed
  30. def isSignZero(a: Int): Boolean

    Definition Classes
    Signed
  31. def isWhole(a: Int): Boolean

    Returns true iff a is a an integer.

    Returns true iff a is a an integer.

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

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  33. def lcm(a: Int, b: Int): Int

    Definition Classes
    EuclideanRing
  34. def log(a: Int): Int

    Definition Classes
    IntIsNRoot
  35. def lt(x: Int, y: Int): Boolean

    Definition Classes
    IntOrderOrderPartialOrder
  36. def lteqv(x: Int, y: Int): Boolean

    Definition Classes
    IntOrderOrderPartialOrder
  37. def max(x: Int, y: Int): Int

    Definition Classes
    Order
  38. def min(x: Int, y: Int): Int

    Definition Classes
    Order
  39. def minus(a: Int, b: Int): Int

    Definition Classes
    IntIsEuclideanRingAdditiveGroup
  40. def mod(a: Int, b: Int): Int

    Definition Classes
    IntIsEuclideanRingEuclideanRing
  41. def multiplicative: CMonoid[Int]

  42. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  43. def negate(a: Int): Int

    Definition Classes
    IntIsEuclideanRingAdditiveGroup
  44. def neqv(x: Int, y: Int): Boolean

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

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

    Definition Classes
    IntOrderEq
  45. final def notify(): Unit

    Definition Classes
    AnyRef
  46. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  47. def nroot(x: Int, n: Int): Int

    Definition Classes
    IntIsNRootNRoot
  48. def on[B](f: (B) ⇒ Int): Order[B]

    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
  49. def one: Int

  50. def partialCompare(x: Int, y: Int): Double

    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
  51. def plus(a: Int, b: Int): Int

    Definition Classes
    IntIsEuclideanRingAdditiveSemigroup
  52. 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.

    Definition Classes
    PartialOrder
  53. 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.

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

    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
    IntIsEuclideanRingRigSemiring
  55. def prod(as: TraversableOnce[Int]): Int

    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
  56. def prodOption(as: TraversableOnce[Int]): Option[Int]

    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
  57. def prodn(a: Int, n: Int): Int

    Return a multiplied with itself n times.

    Return a multiplied with itself n times.

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

    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  59. def quot(a: Int, b: Int): Int

    Definition Classes
    IntIsEuclideanRingEuclideanRing
  60. def quotmod(a: Int, b: Int): (Int, Int)

    Definition Classes
    EuclideanRing
  61. def reverse: Order[Int]

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

    Definition Classes
    OrderPartialOrder
  62. def round(a: Int): Int

    Rounds a to the nearest integer.

    Rounds a to the nearest integer.

    Definition Classes
    IsIntegralIsReal
  63. 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.

    Definition Classes
    Signed
  64. def signum(a: Int): Int

    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
    IntIsSignedSigned
  65. def sqrt(a: Int): Int

    Definition Classes
    NRoot
  66. def sum(as: TraversableOnce[Int]): Int

    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
  67. def sumOption(as: TraversableOnce[Int]): Option[Int]

    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
  68. def sumn(a: Int, n: Int): Int

    Return a added with itself n times.

    Return a added with itself n times.

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

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

    Definition Classes
    AnyRef
  71. def times(a: Int, b: Int): Int

  72. def toAlgebraic(a: Int): Algebraic

    Definition Classes
    IsRationalIsAlgebraic
  73. def toBigInt(n: Int): BigInt

    Definition Classes
    IntIsRealIsIntegral
  74. def toDouble(n: Int): Double

    Approximates a as a Double.

    Approximates a as a Double.

    Definition Classes
    IntIsRealIsReal
  75. def toRational(a: Int): Rational

    Definition Classes
    IsIntegralIsRational
  76. def toReal(a: Int): Real

    Definition Classes
    IsAlgebraicIsReal
  77. def toString(): String

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

    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
  79. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. def zero: Int

    Definition Classes
    IntIsEuclideanRingAdditiveMonoid

Inherited from Serializable

Inherited from Serializable

Inherited from IntIsReal

Inherited from IntIsSigned

Inherited from IntOrder

Inherited from IsIntegral[Int]

Inherited from IsRational[Int]

Inherited from IsAlgebraic[Int]

Inherited from IsReal[Int]

Inherited from Signed[Int]

Inherited from Order[Int]

Inherited from PartialOrder[Int]

Inherited from Eq[Int]

Inherited from IntIsNRoot

Inherited from NRoot[Int]

Inherited from IntIsEuclideanRing

Inherited from EuclideanRing[Int]

Inherited from CRing[Int]

Inherited from MultiplicativeCMonoid[Int]

Inherited from MultiplicativeCSemigroup[Int]

Inherited from Ring[Int]

Inherited from Rng[Int]

Inherited from AdditiveAbGroup[Int]

Inherited from AdditiveCMonoid[Int]

Inherited from AdditiveCSemigroup[Int]

Inherited from AdditiveGroup[Int]

Inherited from Rig[Int]

Inherited from MultiplicativeMonoid[Int]

Inherited from Semiring[Int]

Inherited from MultiplicativeSemigroup[Int]

Inherited from AdditiveMonoid[Int]

Inherited from AdditiveSemigroup[Int]

Inherited from AnyRef

Inherited from Any

Ungrouped