spire.std

BigDecimalAlgebra

Related Doc: package std

class BigDecimalAlgebra extends BigDecimalIsField with BigDecimalIsNRoot with BigDecimalIsReal with Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, BigDecimalIsReal, BigDecimalIsSigned, BigDecimalOrder, IsReal[BigDecimal], Signed[BigDecimal], Order[BigDecimal], PartialOrder[BigDecimal], Eq[BigDecimal], BigDecimalIsNRoot, NRoot[BigDecimal], BigDecimalIsField, Field[BigDecimal], MultiplicativeAbGroup[BigDecimal], MultiplicativeGroup[BigDecimal], EuclideanRing[BigDecimal], CRing[BigDecimal], MultiplicativeCMonoid[BigDecimal], MultiplicativeCSemigroup[BigDecimal], Ring[BigDecimal], Rng[BigDecimal], AdditiveAbGroup[BigDecimal], AdditiveCMonoid[BigDecimal], AdditiveCSemigroup[BigDecimal], AdditiveGroup[BigDecimal], Rig[BigDecimal], MultiplicativeMonoid[BigDecimal], Semiring[BigDecimal], MultiplicativeSemigroup[BigDecimal], AdditiveMonoid[BigDecimal], AdditiveSemigroup[BigDecimal], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BigDecimalAlgebra
  2. Serializable
  3. Serializable
  4. BigDecimalIsReal
  5. BigDecimalIsSigned
  6. BigDecimalOrder
  7. IsReal
  8. Signed
  9. Order
  10. PartialOrder
  11. Eq
  12. BigDecimalIsNRoot
  13. NRoot
  14. BigDecimalIsField
  15. Field
  16. MultiplicativeAbGroup
  17. MultiplicativeGroup
  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 BigDecimalAlgebra()

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

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

  6. final def asInstanceOf[T0]: T0

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

    Definition Classes
    BigDecimalIsRealIsReal
  8. def clone(): AnyRef

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

    Definition Classes
    BigDecimalOrderOrder
  10. def div(a: BigDecimal, b: BigDecimal): BigDecimal

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

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

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

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

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

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

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

    Definition Classes
    BigDecimalIsRealIsReal
  17. def fpow(a: BigDecimal, b: BigDecimal): BigDecimal

    Definition Classes
    BigDecimalIsNRootNRoot
  18. def fromDouble(n: Double): BigDecimal

    This is implemented in terms of basic Field ops.

    This is implemented in terms of basic Field ops. However, this is probably significantly less efficient than can be done with a specific type. So, it is recommended that this method is overriden.

    This is possible because a Double is a rational number.

    Definition Classes
    BigDecimalIsFieldField
  19. def fromInt(n: Int): BigDecimal

    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
    BigDecimalIsFieldRing
  20. def gcd(a: BigDecimal, b: BigDecimal): BigDecimal

    Definition Classes
    BigDecimalIsFieldEuclideanRing
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def gt(x: BigDecimal, y: BigDecimal): Boolean

    Definition Classes
    BigDecimalOrderOrderPartialOrder
  23. def gteqv(x: BigDecimal, y: BigDecimal): Boolean

    Definition Classes
    BigDecimalOrderOrderPartialOrder
  24. def hashCode(): Int

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

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

    Definition Classes
    MultiplicativeMonoid
  27. def isSignNegative(a: BigDecimal): Boolean

    Definition Classes
    Signed
  28. def isSignNonNegative(a: BigDecimal): Boolean

    Definition Classes
    Signed
  29. def isSignNonPositive(a: BigDecimal): Boolean

    Definition Classes
    Signed
  30. def isSignNonZero(a: BigDecimal): Boolean

    Definition Classes
    Signed
  31. def isSignPositive(a: BigDecimal): Boolean

    Definition Classes
    Signed
  32. def isSignZero(a: BigDecimal): Boolean

    Definition Classes
    Signed
  33. def isWhole(a: BigDecimal): Boolean

    Definition Classes
    BigDecimalIsRealIsReal
  34. def isZero(a: BigDecimal)(implicit ev: Eq[BigDecimal]): Boolean

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  35. def lcm(a: BigDecimal, b: BigDecimal): BigDecimal

    Definition Classes
    EuclideanRing
  36. def lt(x: BigDecimal, y: BigDecimal): Boolean

    Definition Classes
    BigDecimalOrderOrderPartialOrder
  37. def lteqv(x: BigDecimal, y: BigDecimal): Boolean

    Definition Classes
    BigDecimalOrderOrderPartialOrder
  38. def max(x: BigDecimal, y: BigDecimal): BigDecimal

    Definition Classes
    BigDecimalOrderOrder
  39. def min(x: BigDecimal, y: BigDecimal): BigDecimal

    Definition Classes
    BigDecimalOrderOrder
  40. def minus(a: BigDecimal, b: BigDecimal): BigDecimal

    Definition Classes
    BigDecimalIsFieldAdditiveGroup
  41. def mod(a: BigDecimal, b: BigDecimal): BigDecimal

    Definition Classes
    BigDecimalIsFieldEuclideanRing
  42. def multiplicative: AbGroup[BigDecimal]

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

    Definition Classes
    AnyRef
  44. def negate(a: BigDecimal): BigDecimal

    Definition Classes
    BigDecimalIsFieldAdditiveGroup
  45. def neqv(x: BigDecimal, y: BigDecimal): Boolean

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

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

    Definition Classes
    BigDecimalOrderEq
  46. final def notify(): Unit

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

    Definition Classes
    AnyRef
  48. def nroot(a: BigDecimal, k: Int): BigDecimal

    Definition Classes
    BigDecimalIsNRootNRoot
  49. def on[B](f: (B) ⇒ BigDecimal): 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
  50. val one: BigDecimal

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

    Definition Classes
    BigDecimalIsFieldAdditiveSemigroup
  53. def pmax(x: BigDecimal, y: BigDecimal): Option[BigDecimal]

    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 pmin(x: BigDecimal, y: BigDecimal): Option[BigDecimal]

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

    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
    BigDecimalIsFieldRigSemiring
  56. def prod(as: TraversableOnce[BigDecimal]): BigDecimal

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

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

    Return a multiplicated with itself n times.

    Return a multiplicated with itself n times.

    Definition Classes
    MultiplicativeGroupMultiplicativeMonoidMultiplicativeSemigroup
  59. def prodnAboveOne(a: BigDecimal, n: Int): BigDecimal

    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  60. def quot(a: BigDecimal, b: BigDecimal): BigDecimal

    Definition Classes
    BigDecimalIsFieldEuclideanRing
  61. def quotmod(a: BigDecimal, b: BigDecimal): (BigDecimal, BigDecimal)

    Definition Classes
    BigDecimalIsFieldEuclideanRing
  62. def reciprocal(x: BigDecimal): BigDecimal

    Definition Classes
    MultiplicativeGroup
  63. def reverse: Order[BigDecimal]

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

    Definition Classes
    BigDecimalIsRealIsReal
  65. def sign(a: BigDecimal): 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: BigDecimal): 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
    BigDecimalIsSignedSigned
  67. def sqrt(n: BigDecimal): BigDecimal

    Definition Classes
    BigDecimalIsNRootNRoot
  68. def sum(as: TraversableOnce[BigDecimal]): BigDecimal

    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[BigDecimal]): Option[BigDecimal]

    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: BigDecimal, n: Int): BigDecimal

    Return a added with itself n times.

    Return a added with itself n times.

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

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

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

  74. def toDouble(x: BigDecimal): Double

    Definition Classes
    BigDecimalIsRealIsReal
  75. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. val zero: BigDecimal

    Definition Classes
    BigDecimalIsFieldAdditiveMonoid

Inherited from Serializable

Inherited from Serializable

Inherited from BigDecimalIsReal

Inherited from BigDecimalIsSigned

Inherited from BigDecimalOrder

Inherited from IsReal[BigDecimal]

Inherited from Signed[BigDecimal]

Inherited from Order[BigDecimal]

Inherited from PartialOrder[BigDecimal]

Inherited from Eq[BigDecimal]

Inherited from BigDecimalIsNRoot

Inherited from NRoot[BigDecimal]

Inherited from BigDecimalIsField

Inherited from Field[BigDecimal]

Inherited from MultiplicativeAbGroup[BigDecimal]

Inherited from MultiplicativeGroup[BigDecimal]

Inherited from EuclideanRing[BigDecimal]

Inherited from CRing[BigDecimal]

Inherited from MultiplicativeCMonoid[BigDecimal]

Inherited from MultiplicativeCSemigroup[BigDecimal]

Inherited from Ring[BigDecimal]

Inherited from Rng[BigDecimal]

Inherited from AdditiveAbGroup[BigDecimal]

Inherited from AdditiveCMonoid[BigDecimal]

Inherited from AdditiveCSemigroup[BigDecimal]

Inherited from AdditiveGroup[BigDecimal]

Inherited from Rig[BigDecimal]

Inherited from MultiplicativeMonoid[BigDecimal]

Inherited from Semiring[BigDecimal]

Inherited from MultiplicativeSemigroup[BigDecimal]

Inherited from AdditiveMonoid[BigDecimal]

Inherited from AdditiveSemigroup[BigDecimal]

Inherited from AnyRef

Inherited from Any

Ungrouped