Packages

c

spire.std

BigIntegerAlgebra

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

Annotations
@SerialVersionUID()
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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BigIntegerAlgebra()

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: 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
  5. def additive: AbGroup[BigInteger]
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. 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
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def compare(x: BigInteger, y: BigInteger): Int
    Definition Classes
    BigIntegerOrderOrder
  10. def distance(v: BigInteger, w: BigInteger): BigInteger
    Definition Classes
    BigIntegerIsMetricSpaceMetricSpace
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. 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
  14. final def euclid(a: BigInteger, b: BigInteger)(implicit eq: Eq[BigInteger]): BigInteger
    Attributes
    protected[this]
    Definition Classes
    EuclideanRing
    Annotations
    @tailrec()
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. 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
  17. def fpow(a: BigInteger, b: BigInteger): BigInteger
    Definition Classes
    BigIntegerIsNRootNRoot
  18. 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
  19. def gcd(a: BigInteger, b: BigInteger): BigInteger
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  21. def gt(x: BigInteger, y: BigInteger): Boolean
    Definition Classes
    BigIntegerOrderOrderPartialOrder
  22. def gteqv(x: BigInteger, y: BigInteger): Boolean
    Definition Classes
    BigIntegerOrderOrderPartialOrder
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def isOne(a: BigInteger)(implicit ev: Eq[BigInteger]): Boolean
    Definition Classes
    MultiplicativeMonoid
  26. def isSignNegative(a: BigInteger): Boolean
    Definition Classes
    Signed
  27. def isSignNonNegative(a: BigInteger): Boolean
    Definition Classes
    Signed
  28. def isSignNonPositive(a: BigInteger): Boolean
    Definition Classes
    Signed
  29. def isSignNonZero(a: BigInteger): Boolean
    Definition Classes
    Signed
  30. def isSignPositive(a: BigInteger): Boolean
    Definition Classes
    Signed
  31. def isSignZero(a: BigInteger): Boolean
    Definition Classes
    Signed
  32. def isWhole(a: BigInteger): Boolean

    Returns true iff a is a an integer.

    Returns true iff a is a an integer.

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

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  34. def lcm(a: BigInteger, b: BigInteger): BigInteger
    Definition Classes
    EuclideanRing
  35. def lt(x: BigInteger, y: BigInteger): Boolean
    Definition Classes
    BigIntegerOrderOrderPartialOrder
  36. def lteqv(x: BigInteger, y: BigInteger): Boolean
    Definition Classes
    BigIntegerOrderOrderPartialOrder
  37. def max(x: BigInteger, y: BigInteger): BigInteger
    Definition Classes
    BigIntegerOrderOrder
  38. def min(x: BigInteger, y: BigInteger): BigInteger
    Definition Classes
    BigIntegerOrderOrder
  39. def minus(a: BigInteger, b: BigInteger): BigInteger
  40. def mod(a: BigInteger, b: BigInteger): BigInteger
  41. def multiplicative: CMonoid[BigInteger]
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. def negate(a: BigInteger): BigInteger
  44. 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
  45. final def notify(): Unit
    Definition Classes
    AnyRef
  46. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  47. def nroot(a: BigInteger, k: Int): BigInteger
    Definition Classes
    BigIntegerIsNRootNRoot
  48. 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
  49. def one: BigInteger
  50. 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
  51. def plus(a: BigInteger, b: BigInteger): BigInteger
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. def prodn(a: BigInteger, n: Int): BigInteger

    Return a multiplied with itself n times.

    Return a multiplied with itself n times.

    Definition Classes
    MultiplicativeMonoidMultiplicativeSemigroup
  58. def prodnAboveOne(a: BigInteger, n: Int): BigInteger
    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  59. def quot(a: BigInteger, b: BigInteger): BigInteger
  60. def quotmod(a: BigInteger, b: BigInteger): (BigInteger, BigInteger)
  61. 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
  62. def round(a: BigInteger): BigInteger

    Rounds a to the nearest integer.

    Rounds a to the nearest integer.

    Definition Classes
    IsIntegralIsReal
  63. 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
  64. 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
  65. def sqrt(a: BigInteger): BigInteger
    Definition Classes
    NRoot
  66. 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
  67. 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
  68. def sumn(a: BigInteger, n: Int): BigInteger

    Return a added with itself n times.

    Return a added with itself n times.

    Definition Classes
    AdditiveGroupAdditiveMonoidAdditiveSemigroup
  69. def sumnAboveOne(a: BigInteger, n: Int): BigInteger
    Attributes
    protected
    Definition Classes
    AdditiveSemigroup
  70. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  71. def times(a: BigInteger, b: BigInteger): BigInteger
  72. def toAlgebraic(a: BigInteger): Algebraic
    Definition Classes
    IsRationalIsAlgebraic
  73. def toBigInt(n: BigInteger): BigInt
    Definition Classes
    BigIntegerIsRealIsIntegral
  74. def toDouble(n: BigInteger): Double

    Approximates a as a Double.

    Approximates a as a Double.

    Definition Classes
    BigIntegerIsRealIsReal
  75. def toRational(a: BigInteger): Rational
    Definition Classes
    IsIntegralIsRational
  76. def toReal(a: BigInteger): Real
    Definition Classes
    IsAlgebraicIsReal
  77. def toString(): String
    Definition Classes
    AnyRef → Any
  78. 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
  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: 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