spire.math

NaturalAlgebra

class NaturalAlgebra extends NaturalIsRig with NaturalIsReal with Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, NaturalIsReal, NaturalIsSigned, NaturalOrder, IsIntegral[Natural], IsReal[Natural], Signed[Natural], Order[Natural], Eq[Natural], NaturalIsRig, Rig[Natural], MultiplicativeMonoid[Natural], Semiring[Natural], MultiplicativeSemigroup[Natural], AdditiveMonoid[Natural], AdditiveSemigroup[Natural], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NaturalAlgebra
  2. Serializable
  3. Serializable
  4. NaturalIsReal
  5. NaturalIsSigned
  6. NaturalOrder
  7. IsIntegral
  8. IsReal
  9. Signed
  10. Order
  11. Eq
  12. NaturalIsRig
  13. Rig
  14. MultiplicativeMonoid
  15. Semiring
  16. MultiplicativeSemigroup
  17. AdditiveMonoid
  18. AdditiveSemigroup
  19. AnyRef
  20. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NaturalAlgebra()

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

    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
    NaturalIsSigned → Signed
  5. def additive: Monoid[Natural]

    Definition Classes
    AdditiveMonoidAdditiveSemigroup
  6. final def asInstanceOf[T0]: T0

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

    Definition Classes
    IsIntegralIsReal
  8. def clone(): AnyRef

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

    Definition Classes
    NaturalOrder → Order
  10. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. def eqv(x: Natural, y: Natural): Boolean

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

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

    Definition Classes
    NaturalOrder → OrderEq
  13. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  16. def gt(x: Natural, y: Natural): Boolean

    Definition Classes
    NaturalOrder → Order
  17. def gteqv(x: Natural, y: Natural): Boolean

    Definition Classes
    NaturalOrder → Order
  18. def hashCode(): Int

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

    Definition Classes
    Any
  20. def isWhole(a: Natural): Boolean

    Definition Classes
    IsIntegralIsReal
  21. def isZero(a: Natural): Boolean

    Definition Classes
    Signed
  22. def lt(x: Natural, y: Natural): Boolean

    Definition Classes
    NaturalOrder → Order
  23. def lteqv(x: Natural, y: Natural): Boolean

    Definition Classes
    NaturalOrder → Order
  24. def max(x: Natural, y: Natural): Natural

    Definition Classes
    Order
  25. def min(x: Natural, y: Natural): Natural

    Definition Classes
    Order
  26. def multiplicative: Monoid[Natural]

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

    Definition Classes
    AnyRef
  28. def neqv(x: Natural, y: Natural): Boolean

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

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

    Definition Classes
    NaturalOrder → Eq
  29. final def notify(): Unit

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

    Definition Classes
    AnyRef
  31. def on[B](f: (B) ⇒ Natural): 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
    OrderEq
  32. def one: Natural

    Definition Classes
    NaturalIsRig → MultiplicativeMonoid
  33. def plus(a: Natural, b: Natural): Natural

    Definition Classes
    NaturalIsRig → AdditiveSemigroup
  34. def pow(a: Natural, b: Int): Natural

    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
    NaturalIsRig → RigSemiring
  35. def reverse: Order[Natural]

    Defines an ordering on A where all arrows switch direction.

    Defines an ordering on A where all arrows switch direction.

    Definition Classes
    Order
  36. def round(a: Natural): Natural

    Definition Classes
    IsIntegralIsReal
  37. def sign(a: Natural): 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
  38. def signum(a: Natural): 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
    NaturalIsSigned → Signed
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def times(a: Natural, b: Natural): Natural

    Definition Classes
    NaturalIsRig → MultiplicativeSemigroup
  41. def toDouble(n: Natural): Double

    Definition Classes
    NaturalIsReal → IsReal
  42. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def zero: Natural

    Definition Classes
    NaturalIsRig → AdditiveMonoid

Inherited from Serializable

Inherited from Serializable

Inherited from NaturalIsReal

Inherited from NaturalIsSigned

Inherited from NaturalOrder

Inherited from IsIntegral[Natural]

Inherited from IsReal[Natural]

Inherited from Signed[Natural]

Inherited from Order[Natural]

Inherited from Eq[Natural]

Inherited from NaturalIsRig

Inherited from Rig[Natural]

Inherited from MultiplicativeMonoid[Natural]

Inherited from Semiring[Natural]

Inherited from AdditiveMonoid[Natural]

Inherited from AdditiveSemigroup[Natural]

Inherited from AnyRef

Inherited from Any

Ungrouped