Class

algebra.instances

BigDecimalAlgebra

Related Doc: package instances

Permalink

class BigDecimalAlgebra extends Field[BigDecimal] with Serializable

Linear Supertypes
Field[BigDecimal], MultiplicativeCommutativeGroup[BigDecimal], MultiplicativeGroup[BigDecimal], CommutativeRing[BigDecimal], CommutativeRng[BigDecimal], CommutativeRig[BigDecimal], MultiplicativeCommutativeMonoid[BigDecimal], CommutativeSemiring[BigDecimal], MultiplicativeCommutativeSemigroup[BigDecimal], Ring[BigDecimal], Rng[BigDecimal], AdditiveCommutativeGroup[BigDecimal], AdditiveGroup[BigDecimal], Rig[BigDecimal], MultiplicativeMonoid[BigDecimal], Semiring[BigDecimal], MultiplicativeSemigroup[BigDecimal], AdditiveCommutativeMonoid[BigDecimal], AdditiveCommutativeSemigroup[BigDecimal], AdditiveMonoid[BigDecimal], AdditiveSemigroup[BigDecimal], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BigDecimalAlgebra
  2. Field
  3. MultiplicativeCommutativeGroup
  4. MultiplicativeGroup
  5. CommutativeRing
  6. CommutativeRng
  7. CommutativeRig
  8. MultiplicativeCommutativeMonoid
  9. CommutativeSemiring
  10. MultiplicativeCommutativeSemigroup
  11. Ring
  12. Rng
  13. AdditiveCommutativeGroup
  14. AdditiveGroup
  15. Rig
  16. MultiplicativeMonoid
  17. Semiring
  18. MultiplicativeSemigroup
  19. AdditiveCommutativeMonoid
  20. AdditiveCommutativeSemigroup
  21. AdditiveMonoid
  22. AdditiveSemigroup
  23. Serializable
  24. Serializable
  25. AnyRef
  26. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BigDecimalAlgebra()

    Permalink
  2. new BigDecimalAlgebra(mc: MathContext)

    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 additive: CommutativeGroup[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
    BigDecimalAlgebraMultiplicativeGroup
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fromBigInt(n: BigInt): BigDecimal

    Permalink

    Convert the given BigInt to an instance of A.

    Convert the given BigInt to an instance of A.

    This is equivalent to n repeated summations of this ring's one, or -n summations of -one if n is negative.

    Most type class instances should consider overriding this method for performance reasons.

    Definition Classes
    BigDecimalAlgebraRing
  12. def fromDouble(a: 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 be overriden.

    This is possible because a Double is a rational number.

    Definition Classes
    Field
  13. def fromInt(n: Int): BigDecimal

    Permalink

    Convert the given integer to an instance of A.

    Convert the given integer to an instance of A.

    Defined to be equivalent to sumN(one, n).

    That is, n repeated summations of this ring's one, or -n summations of -one if n is negative.

    Most type class instances should consider overriding this method for performance reasons.

    Definition Classes
    BigDecimalAlgebraRing
  14. final def getClass(): Class[_]

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

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

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

    Permalink

    Tests if a is one.

    Tests if a is one.

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

    Permalink

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  19. def minus(a: BigDecimal, b: BigDecimal): BigDecimal

    Permalink
    Definition Classes
    BigDecimalAlgebraAdditiveGroup
  20. def multiplicative: CommutativeGroup[BigDecimal]

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

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

    Permalink
    Definition Classes
    BigDecimalAlgebraAdditiveGroup
  23. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  25. val one: BigDecimal

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

    Permalink
    Definition Classes
    BigDecimalAlgebraAdditiveSemigroup
  27. def positivePow(a: BigDecimal, n: Int): BigDecimal

    Permalink
    Attributes
    protected[this]
    Definition Classes
    MultiplicativeSemigroup
  28. def positiveSumN(a: BigDecimal, n: Int): BigDecimal

    Permalink
    Attributes
    protected[this]
    Definition Classes
    AdditiveSemigroup
  29. def pow(a: BigDecimal, k: Int): BigDecimal

    Permalink
  30. def product(as: TraversableOnce[BigDecimal]): BigDecimal

    Permalink

    Given a sequence of as, compute the product.

    Given a sequence of as, compute the product.

    Definition Classes
    MultiplicativeMonoid
  31. def reciprocal(x: BigDecimal): BigDecimal

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

    Permalink

    Given a sequence of as, compute the sum.

    Given a sequence of as, compute the sum.

    Definition Classes
    AdditiveMonoid
  33. def sumN(a: BigDecimal, n: Int): BigDecimal

    Permalink
  34. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. def tryProduct(as: TraversableOnce[BigDecimal]): Option[BigDecimal]

    Permalink

    Given a sequence of as, combine them and return the total.

    Given a sequence of as, combine them and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    MultiplicativeMonoidMultiplicativeSemigroup
  38. def trySum(as: TraversableOnce[BigDecimal]): Option[BigDecimal]

    Permalink

    Given a sequence of as, combine them and return the total.

    Given a sequence of as, combine them and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    AdditiveMonoidAdditiveSemigroup
  39. final def wait(): Unit

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

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

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

    Permalink
    Definition Classes
    BigDecimalAlgebraAdditiveMonoid

Inherited from Field[BigDecimal]

Inherited from MultiplicativeCommutativeGroup[BigDecimal]

Inherited from MultiplicativeGroup[BigDecimal]

Inherited from CommutativeRing[BigDecimal]

Inherited from CommutativeRng[BigDecimal]

Inherited from CommutativeRig[BigDecimal]

Inherited from MultiplicativeCommutativeMonoid[BigDecimal]

Inherited from CommutativeSemiring[BigDecimal]

Inherited from MultiplicativeCommutativeSemigroup[BigDecimal]

Inherited from Ring[BigDecimal]

Inherited from Rng[BigDecimal]

Inherited from AdditiveCommutativeGroup[BigDecimal]

Inherited from AdditiveGroup[BigDecimal]

Inherited from Rig[BigDecimal]

Inherited from MultiplicativeMonoid[BigDecimal]

Inherited from Semiring[BigDecimal]

Inherited from MultiplicativeSemigroup[BigDecimal]

Inherited from AdditiveCommutativeMonoid[BigDecimal]

Inherited from AdditiveCommutativeSemigroup[BigDecimal]

Inherited from AdditiveMonoid[BigDecimal]

Inherited from AdditiveSemigroup[BigDecimal]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped