Trait

spire.std

BigDecimalIsField

Related Doc: package std

Permalink

trait BigDecimalIsField extends Field[BigDecimal]

Linear Supertypes
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
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BigDecimalIsField
  2. Field
  3. MultiplicativeAbGroup
  4. MultiplicativeGroup
  5. EuclideanRing
  6. CRing
  7. MultiplicativeCMonoid
  8. MultiplicativeCSemigroup
  9. Ring
  10. Rng
  11. AdditiveAbGroup
  12. AdditiveCMonoid
  13. AdditiveCSemigroup
  14. AdditiveGroup
  15. Rig
  16. MultiplicativeMonoid
  17. Semiring
  18. MultiplicativeSemigroup
  19. AdditiveMonoid
  20. AdditiveSemigroup
  21. AnyRef
  22. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 additive: AbGroup[BigDecimal]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def div(a: BigDecimal, b: BigDecimal): BigDecimal

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def euclid(a: BigDecimal, b: BigDecimal)(implicit eq: Eq[BigDecimal]): BigDecimal

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fromDouble(n: Double): BigDecimal

    Permalink

    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
  13. def fromInt(n: Int): BigDecimal

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

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

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

    Permalink
    Definition Classes
    MultiplicativeMonoid
  19. def isZero(a: BigDecimal)(implicit ev: Eq[BigDecimal]): Boolean

    Permalink

    Tests if a is zero.

    Tests if a is zero.

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

    Permalink
    Definition Classes
    EuclideanRing
  21. def minus(a: BigDecimal, b: BigDecimal): BigDecimal

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

    Permalink
    Definition Classes
    BigDecimalIsFieldEuclideanRing
  23. def multiplicative: AbGroup[BigDecimal]

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

    Permalink
    Definition Classes
    AnyRef
  25. def negate(a: BigDecimal): BigDecimal

    Permalink
    Definition Classes
    BigDecimalIsFieldAdditiveGroup
  26. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  28. val one: BigDecimal

    Permalink
  29. def plus(a: BigDecimal, b: BigDecimal): BigDecimal

    Permalink
    Definition Classes
    BigDecimalIsFieldAdditiveSemigroup
  30. def pow(a: BigDecimal, b: Int): BigDecimal

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

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

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

    Permalink

    Return a multiplicated with itself n times.

    Return a multiplicated with itself n times.

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

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

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

    Permalink
    Definition Classes
    BigDecimalIsFieldEuclideanRing
  37. def reciprocal(x: BigDecimal): BigDecimal

    Permalink
    Definition Classes
    MultiplicativeGroup
  38. def sum(as: TraversableOnce[BigDecimal]): BigDecimal

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

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

    Permalink

    Return a added with itself n times.

    Return a added with itself n times.

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

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

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

    Permalink
  44. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  45. final def wait(): Unit

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

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

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

    Permalink
    Definition Classes
    BigDecimalIsFieldAdditiveMonoid

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