Object

spire.math.SafeLongInstances

SafeLongAlgebra

Related Doc: package SafeLongInstances

Permalink

implicit object SafeLongAlgebra extends SafeLongIsEuclideanRing with SafeLongIsNRoot with Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SafeLongAlgebra
  2. Serializable
  3. Serializable
  4. SafeLongIsNRoot
  5. NRoot
  6. SafeLongIsEuclideanRing
  7. SafeLongIsRing
  8. EuclideanRing
  9. CRing
  10. MultiplicativeCMonoid
  11. MultiplicativeCSemigroup
  12. Ring
  13. Rng
  14. AdditiveAbGroup
  15. AdditiveCMonoid
  16. AdditiveCSemigroup
  17. AdditiveGroup
  18. Rig
  19. MultiplicativeMonoid
  20. Semiring
  21. MultiplicativeSemigroup
  22. AdditiveMonoid
  23. AdditiveSemigroup
  24. AnyRef
  25. 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[SafeLong]

    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. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fpow(a: SafeLong, b: SafeLong): SafeLong

    Permalink
    Definition Classes
    SafeLongIsNRoot → NRoot
  12. def fromInt(n: Int): SafeLong

    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
    SafeLongIsRing → Ring
  13. def gcd(a: SafeLong, b: SafeLong): SafeLong

    Permalink
    Definition Classes
    SafeLongIsEuclideanRing → EuclideanRing
  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: SafeLong)(implicit ev: Eq[SafeLong]): Boolean

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

    Permalink

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  19. def lcm(a: SafeLong, b: SafeLong): SafeLong

    Permalink
    Definition Classes
    EuclideanRing
  20. def minus(a: SafeLong, b: SafeLong): SafeLong

    Permalink
    Definition Classes
    SafeLongIsRing → AdditiveGroup
  21. def mod(a: SafeLong, b: SafeLong): SafeLong

    Permalink
    Definition Classes
    SafeLongIsEuclideanRing → EuclideanRing
  22. def multiplicative: CMonoid[SafeLong]

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

    Permalink
    Definition Classes
    AnyRef
  24. def negate(a: SafeLong): SafeLong

    Permalink
    Definition Classes
    SafeLongIsRing → AdditiveGroup
  25. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  27. def nroot(a: SafeLong, k: Int): SafeLong

    Permalink
    Definition Classes
    SafeLongIsNRoot → NRoot
  28. val one: SafeLong

    Permalink
    Definition Classes
    SafeLongIsRing → MultiplicativeMonoid
  29. def plus(a: SafeLong, b: SafeLong): SafeLong

    Permalink
    Definition Classes
    SafeLongIsRing → AdditiveSemigroup
  30. def pow(a: SafeLong, b: Int): SafeLong

    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
    SafeLongIsRing → RigSemiring
  31. def prod(as: TraversableOnce[SafeLong]): SafeLong

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

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

    Permalink

    Return a multiplied with itself n times.

    Return a multiplied with itself n times.

    Definition Classes
    MultiplicativeMonoidMultiplicativeSemigroup
  34. def prodnAboveOne(a: SafeLong, n: Int): SafeLong

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

    Permalink
    Definition Classes
    SafeLongIsEuclideanRing → EuclideanRing
  36. def quotmod(a: SafeLong, b: SafeLong): (SafeLong, SafeLong)

    Permalink
    Definition Classes
    SafeLongIsEuclideanRing → EuclideanRing
  37. def sqrt(a: SafeLong): SafeLong

    Permalink
    Definition Classes
    NRoot
  38. def sum(as: TraversableOnce[SafeLong]): SafeLong

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

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

    Permalink

    Return a added with itself n times.

    Return a added with itself n times.

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

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

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

    Permalink
    Definition Classes
    SafeLongIsRing → MultiplicativeSemigroup
  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: SafeLong

    Permalink
    Definition Classes
    SafeLongIsRing → AdditiveMonoid

Inherited from Serializable

Inherited from Serializable

Inherited from SafeLongIsNRoot

Inherited from NRoot[SafeLong]

Inherited from SafeLongIsEuclideanRing

Inherited from SafeLongIsRing

Inherited from EuclideanRing[SafeLong]

Inherited from CRing[SafeLong]

Inherited from Ring[SafeLong]

Inherited from Rng[SafeLong]

Inherited from AdditiveAbGroup[SafeLong]

Inherited from AdditiveCMonoid[SafeLong]

Inherited from AdditiveCSemigroup[SafeLong]

Inherited from AdditiveGroup[SafeLong]

Inherited from Rig[SafeLong]

Inherited from MultiplicativeMonoid[SafeLong]

Inherited from Semiring[SafeLong]

Inherited from AdditiveMonoid[SafeLong]

Inherited from AdditiveSemigroup[SafeLong]

Inherited from AnyRef

Inherited from Any

Ungrouped