Class

spire.std

BigIntAlgebra

Related Doc: package std

Permalink

class BigIntAlgebra extends BigIntIsEuclideanRing with BigIntIsNRoot with BigIntIsMetricSpace with BigIntIsReal with Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
BigIntIsReal, Serializable, Serializable, BigIntIsSigned, BigIntOrder, IsIntegral[BigInt], IsRational[BigInt], IsAlgebraic[BigInt], IsReal[BigInt], Signed[BigInt], Order[BigInt], PartialOrder[BigInt], Eq[BigInt], BigIntIsMetricSpace, MetricSpace[BigInt, BigInt], BigIntIsNRoot, NRoot[BigInt], BigIntIsEuclideanRing, EuclideanRing[BigInt], CRing[BigInt], MultiplicativeCMonoid[BigInt], MultiplicativeCSemigroup[BigInt], Ring[BigInt], Rng[BigInt], AdditiveAbGroup[BigInt], AdditiveCMonoid[BigInt], AdditiveCSemigroup[BigInt], AdditiveGroup[BigInt], Rig[BigInt], MultiplicativeMonoid[BigInt], Semiring[BigInt], MultiplicativeSemigroup[BigInt], AdditiveMonoid[BigInt], AdditiveSemigroup[BigInt], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BigIntAlgebra
  2. BigIntIsReal
  3. Serializable
  4. Serializable
  5. BigIntIsSigned
  6. BigIntOrder
  7. IsIntegral
  8. IsRational
  9. IsAlgebraic
  10. IsReal
  11. Signed
  12. Order
  13. PartialOrder
  14. Eq
  15. BigIntIsMetricSpace
  16. MetricSpace
  17. BigIntIsNRoot
  18. NRoot
  19. BigIntIsEuclideanRing
  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 BigIntAlgebra()

    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: BigInt): BigInt

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

    Permalink
  6. final def asInstanceOf[T0]: T0

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

    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: BigInt, y: BigInt): Int

    Permalink
    Definition Classes
    BigIntOrderOrder
  10. def distance(v: BigInt, w: BigInt): BigInt

    Permalink
    Definition Classes
    BigIntIsMetricSpaceMetricSpace
  11. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink

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

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

    Definition Classes
    BigIntOrderOrderPartialOrderEq
  14. final def euclid(a: BigInt, b: BigInt)(implicit eq: Eq[BigInt]): BigInt

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

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

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

    Permalink
    Definition Classes
    BigIntIsNRootNRoot
  18. def fromInt(n: Int): BigInt

    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
    BigIntIsEuclideanRingRing
  19. def gcd(a: BigInt, b: BigInt): BigInt

    Permalink
    Definition Classes
    BigIntIsEuclideanRingEuclideanRing
  20. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    BigIntOrderOrderPartialOrder
  22. def gteqv(x: BigInt, y: BigInt): Boolean

    Permalink
    Definition Classes
    BigIntOrderOrderPartialOrder
  23. def hashCode(): Int

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

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

    Permalink
    Definition Classes
    MultiplicativeMonoid
  26. def isSignNegative(a: BigInt): Boolean

    Permalink
    Definition Classes
    Signed
  27. def isSignNonNegative(a: BigInt): Boolean

    Permalink
    Definition Classes
    Signed
  28. def isSignNonPositive(a: BigInt): Boolean

    Permalink
    Definition Classes
    Signed
  29. def isSignNonZero(a: BigInt): Boolean

    Permalink
    Definition Classes
    Signed
  30. def isSignPositive(a: BigInt): Boolean

    Permalink
    Definition Classes
    Signed
  31. def isSignZero(a: BigInt): Boolean

    Permalink
    Definition Classes
    Signed
  32. def isWhole(a: BigInt): Boolean

    Permalink

    Returns true iff a is a an integer.

    Returns true iff a is a an integer.

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

    Permalink

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  34. def lcm(a: BigInt, b: BigInt): BigInt

    Permalink
    Definition Classes
    EuclideanRing
  35. def lt(x: BigInt, y: BigInt): Boolean

    Permalink
    Definition Classes
    BigIntOrderOrderPartialOrder
  36. def lteqv(x: BigInt, y: BigInt): Boolean

    Permalink
    Definition Classes
    BigIntOrderOrderPartialOrder
  37. def max(x: BigInt, y: BigInt): BigInt

    Permalink
    Definition Classes
    BigIntOrderOrder
  38. def min(x: BigInt, y: BigInt): BigInt

    Permalink
    Definition Classes
    BigIntOrderOrder
  39. def minus(a: BigInt, b: BigInt): BigInt

    Permalink
    Definition Classes
    BigIntIsEuclideanRingAdditiveGroup
  40. def mod(a: BigInt, b: BigInt): BigInt

    Permalink
    Definition Classes
    BigIntIsEuclideanRingEuclideanRing
  41. def multiplicative: CMonoid[BigInt]

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

    Permalink
    Definition Classes
    AnyRef
  43. def negate(a: BigInt): BigInt

    Permalink
    Definition Classes
    BigIntIsEuclideanRingAdditiveGroup
  44. def neqv(x: BigInt, y: BigInt): Boolean

    Permalink

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  47. def nroot(a: BigInt, k: Int): BigInt

    Permalink
    Definition Classes
    BigIntIsNRootNRoot
  48. def on[B](f: (B) ⇒ BigInt): 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
  49. val one: BigInt

    Permalink
  50. def partialCompare(x: BigInt, y: BigInt): 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
  51. def plus(a: BigInt, b: BigInt): BigInt

    Permalink
  52. def pmax(x: BigInt, y: BigInt): Option[BigInt]

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

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

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

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

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

    Permalink

    Return a multiplied with itself n times.

    Return a multiplied with itself n times.

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

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

    Permalink
    Definition Classes
    BigIntIsEuclideanRingEuclideanRing
  60. def quotmod(a: BigInt, b: BigInt): (BigInt, BigInt)

    Permalink
    Definition Classes
    BigIntIsEuclideanRingEuclideanRing
  61. def reverse: Order[BigInt]

    Permalink

    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: BigInt): BigInt

    Permalink

    Rounds a to the nearest integer.

    Rounds a to the nearest integer.

    Definition Classes
    IsIntegralIsReal
  63. def sign(a: BigInt): 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
  64. def signum(a: BigInt): 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
    BigIntIsSignedSigned
  65. def sqrt(a: BigInt): BigInt

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

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

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

    Permalink

    Return a added with itself n times.

    Return a added with itself n times.

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

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

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

    Permalink
  72. def toAlgebraic(a: BigInt): Algebraic

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

    Permalink
    Definition Classes
    BigIntIsRealIsIntegral
  74. def toDouble(n: BigInt): Double

    Permalink

    Approximates a as a Double.

    Approximates a as a Double.

    Definition Classes
    BigIntIsRealIsReal
  75. def toRational(a: BigInt): Rational

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  78. def tryCompare(x: BigInt, y: BigInt): 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
  79. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  82. val zero: BigInt

    Permalink
    Definition Classes
    BigIntIsEuclideanRingAdditiveMonoid

Inherited from BigIntIsReal

Inherited from Serializable

Inherited from Serializable

Inherited from BigIntIsSigned

Inherited from BigIntOrder

Inherited from IsIntegral[BigInt]

Inherited from IsRational[BigInt]

Inherited from IsAlgebraic[BigInt]

Inherited from IsReal[BigInt]

Inherited from Signed[BigInt]

Inherited from Order[BigInt]

Inherited from PartialOrder[BigInt]

Inherited from Eq[BigInt]

Inherited from BigIntIsMetricSpace

Inherited from MetricSpace[BigInt, BigInt]

Inherited from BigIntIsNRoot

Inherited from NRoot[BigInt]

Inherited from BigIntIsEuclideanRing

Inherited from EuclideanRing[BigInt]

Inherited from CRing[BigInt]

Inherited from MultiplicativeCMonoid[BigInt]

Inherited from MultiplicativeCSemigroup[BigInt]

Inherited from Ring[BigInt]

Inherited from Rng[BigInt]

Inherited from AdditiveAbGroup[BigInt]

Inherited from AdditiveCMonoid[BigInt]

Inherited from AdditiveCSemigroup[BigInt]

Inherited from AdditiveGroup[BigInt]

Inherited from Rig[BigInt]

Inherited from MultiplicativeMonoid[BigInt]

Inherited from Semiring[BigInt]

Inherited from MultiplicativeSemigroup[BigInt]

Inherited from AdditiveMonoid[BigInt]

Inherited from AdditiveSemigroup[BigInt]

Inherited from AnyRef

Inherited from Any

Ungrouped