spire.std

BigIntegerAlgebra

class BigIntegerAlgebra extends BigIntegerIsEuclideanRing with BigIntegerIsNRoot with BigIntegerIsMetricSpace with BigIntegerIsReal with Serializable

Annotations
@SerialVersionUID( 0L )
Linear Supertypes
BigIntegerIsReal, Serializable, Serializable, BigIntegerIsSigned, BigIntegerOrder, IsIntegral[BigInteger], IsRational[BigInteger], IsAlgebraic[BigInteger], IsReal[BigInteger], Signed[BigInteger], Order[BigInteger], PartialOrder[BigInteger], Eq[BigInteger], BigIntegerIsMetricSpace, MetricSpace[BigInteger, BigInteger], BigIntegerIsNRoot, NRoot[BigInteger], BigIntegerIsEuclideanRing, EuclideanRing[BigInteger], CRing[BigInteger], MultiplicativeCMonoid[BigInteger], MultiplicativeCSemigroup[BigInteger], Ring[BigInteger], Rng[BigInteger], AdditiveAbGroup[BigInteger], AdditiveCMonoid[BigInteger], AdditiveCSemigroup[BigInteger], AdditiveGroup[BigInteger], Rig[BigInteger], MultiplicativeMonoid[BigInteger], Semiring[BigInteger], MultiplicativeSemigroup[BigInteger], AdditiveMonoid[BigInteger], AdditiveSemigroup[BigInteger], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BigIntegerAlgebra
  2. BigIntegerIsReal
  3. Serializable
  4. Serializable
  5. BigIntegerIsSigned
  6. BigIntegerOrder
  7. IsIntegral
  8. IsRational
  9. IsAlgebraic
  10. IsReal
  11. Signed
  12. Order
  13. PartialOrder
  14. Eq
  15. BigIntegerIsMetricSpace
  16. MetricSpace
  17. BigIntegerIsNRoot
  18. NRoot
  19. BigIntegerIsEuclideanRing
  20. EuclideanRing
  21. CRing
  22. MultiplicativeCMonoid
  23. MultiplicativeCSemigroup
  24. Ring
  25. Rng
  26. AdditiveAbGroup
  27. AdditiveCMonoid
  28. AdditiveCSemigroup
  29. AdditiveGroup
  30. Rig
  31. MultiplicativeMonoid
  32. Semiring
  33. MultiplicativeSemigroup
  34. AdditiveMonoid
  35. AdditiveSemigroup
  36. AnyRef
  37. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BigIntegerAlgebra()

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. def abs(a: BigInteger): BigInteger

    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
    BigIntegerIsSignedSigned
  7. def additive: AbGroup[BigInteger]

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def ceil(a: BigInteger): BigInteger

    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
  10. def clone(): AnyRef

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

    Definition Classes
    BigIntegerOrderOrder
  12. def distance(v: BigInteger, w: BigInteger): BigInteger

    Definition Classes
    BigIntegerIsMetricSpaceMetricSpace
  13. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  15. def eqv(x: BigInteger, y: BigInteger): Boolean

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

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

    Definition Classes
    BigIntegerOrderOrderPartialOrderEq
  16. final def euclid(a: BigInteger, b: BigInteger)(implicit eq: Eq[BigInteger]): BigInteger

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

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

    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
  19. def fpow(a: BigInteger, b: BigInteger): BigInteger

    Definition Classes
    BigIntegerIsNRootNRoot
  20. def fromInt(n: Int): BigInteger

    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
    BigIntegerIsEuclideanRingRing
  21. def gcd(a: BigInteger, b: BigInteger): BigInteger

  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def gt(x: BigInteger, y: BigInteger): Boolean

    Definition Classes
    BigIntegerOrderOrderPartialOrder
  24. def gteqv(x: BigInteger, y: BigInteger): Boolean

    Definition Classes
    BigIntegerOrderOrderPartialOrder
  25. def hashCode(): Int

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

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

    Definition Classes
    MultiplicativeMonoid
  28. def isSignNegative(a: BigInteger): Boolean

    Definition Classes
    Signed
  29. def isSignNonNegative(a: BigInteger): Boolean

    Definition Classes
    Signed
  30. def isSignNonPositive(a: BigInteger): Boolean

    Definition Classes
    Signed
  31. def isSignNonZero(a: BigInteger): Boolean

    Definition Classes
    Signed
  32. def isSignPositive(a: BigInteger): Boolean

    Definition Classes
    Signed
  33. def isSignZero(a: BigInteger): Boolean

    Definition Classes
    Signed
  34. def isWhole(a: BigInteger): Boolean

    Returns true iff a is a an integer.

    Returns true iff a is a an integer.

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

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  36. def lcm(a: BigInteger, b: BigInteger): BigInteger

    Definition Classes
    EuclideanRing
  37. def lt(x: BigInteger, y: BigInteger): Boolean

    Definition Classes
    BigIntegerOrderOrderPartialOrder
  38. def lteqv(x: BigInteger, y: BigInteger): Boolean

    Definition Classes
    BigIntegerOrderOrderPartialOrder
  39. def max(x: BigInteger, y: BigInteger): BigInteger

    Definition Classes
    BigIntegerOrderOrder
  40. def min(x: BigInteger, y: BigInteger): BigInteger

    Definition Classes
    BigIntegerOrderOrder
  41. def minus(a: BigInteger, b: BigInteger): BigInteger

  42. def mod(a: BigInteger, b: BigInteger): BigInteger

  43. def multiplicative: CMonoid[BigInteger]

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

    Definition Classes
    AnyRef
  45. def negate(a: BigInteger): BigInteger

  46. def neqv(x: BigInteger, y: BigInteger): Boolean

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

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

    Definition Classes
    BigIntegerOrderEq
  47. final def notify(): Unit

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

    Definition Classes
    AnyRef
  49. def nroot(a: BigInteger, k: Int): BigInteger

    Definition Classes
    BigIntegerIsNRootNRoot
  50. def on[B](f: (B) ⇒ BigInteger): 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
  51. def one: BigInteger

  52. def partialCompare(x: BigInteger, y: BigInteger): 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
  53. def plus(a: BigInteger, b: BigInteger): BigInteger

  54. def pmax(x: BigInteger, y: BigInteger): Option[BigInteger]

    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
  55. def pmin(x: BigInteger, y: BigInteger): Option[BigInteger]

    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
  56. def pow(a: BigInteger, b: Int): BigInteger

    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
    BigIntegerIsEuclideanRingRigSemiring
  57. def prod(as: TraversableOnce[BigInteger]): BigInteger

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

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

    Return a multiplied with itself n times.

    Return a multiplied with itself n times.

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

    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  61. def quot(a: BigInteger, b: BigInteger): BigInteger

  62. def quotmod(a: BigInteger, b: BigInteger): (BigInteger, BigInteger)

  63. def reverse: Order[BigInteger]

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

    Definition Classes
    OrderPartialOrder
  64. def round(a: BigInteger): BigInteger

    Rounds a to the nearest integer.

    Rounds a to the nearest integer.

    Definition Classes
    IsIntegralIsReal
  65. def sign(a: BigInteger): 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
  66. def signum(a: BigInteger): 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
    BigIntegerIsSignedSigned
  67. def sqrt(a: BigInteger): BigInteger

    Definition Classes
    NRoot
  68. def sum(as: TraversableOnce[BigInteger]): BigInteger

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

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

    Return a added with itself n times.

    Return a added with itself n times.

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

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

    Definition Classes
    AnyRef
  73. def times(a: BigInteger, b: BigInteger): BigInteger

  74. def toAlgebraic(a: BigInteger): Algebraic

    Definition Classes
    IsRationalIsAlgebraic
  75. def toBigInt(n: BigInteger): BigInt

    Definition Classes
    BigIntegerIsRealIsIntegral
  76. def toDouble(n: BigInteger): Double

    Approximates a as a Double.

    Approximates a as a Double.

    Definition Classes
    BigIntegerIsRealIsReal
  77. def toRational(a: BigInteger): Rational

    Definition Classes
    IsIntegralIsRational
  78. def toReal(a: BigInteger): Real

    Definition Classes
    IsAlgebraicIsReal
  79. def toString(): String

    Definition Classes
    AnyRef → Any
  80. def tryCompare(x: BigInteger, y: BigInteger): 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
  81. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  84. def zero: BigInteger

Inherited from BigIntegerIsReal

Inherited from Serializable

Inherited from Serializable

Inherited from BigIntegerIsSigned

Inherited from BigIntegerOrder

Inherited from IsIntegral[BigInteger]

Inherited from IsRational[BigInteger]

Inherited from IsAlgebraic[BigInteger]

Inherited from IsReal[BigInteger]

Inherited from Signed[BigInteger]

Inherited from Order[BigInteger]

Inherited from PartialOrder[BigInteger]

Inherited from Eq[BigInteger]

Inherited from BigIntegerIsMetricSpace

Inherited from MetricSpace[BigInteger, BigInteger]

Inherited from BigIntegerIsNRoot

Inherited from NRoot[BigInteger]

Inherited from BigIntegerIsEuclideanRing

Inherited from EuclideanRing[BigInteger]

Inherited from CRing[BigInteger]

Inherited from MultiplicativeCMonoid[BigInteger]

Inherited from MultiplicativeCSemigroup[BigInteger]

Inherited from Ring[BigInteger]

Inherited from Rng[BigInteger]

Inherited from AdditiveAbGroup[BigInteger]

Inherited from AdditiveCMonoid[BigInteger]

Inherited from AdditiveCSemigroup[BigInteger]

Inherited from AdditiveGroup[BigInteger]

Inherited from Rig[BigInteger]

Inherited from MultiplicativeMonoid[BigInteger]

Inherited from Semiring[BigInteger]

Inherited from MultiplicativeSemigroup[BigInteger]

Inherited from AdditiveMonoid[BigInteger]

Inherited from AdditiveSemigroup[BigInteger]

Inherited from AnyRef

Inherited from Any

Ungrouped