SafeLongAlgebra

Value members

Inherited methods

Inherited from:
SafeLongIsEuclideanRing
Inherited from:
SafeLongIsEuclideanRing
override def equotmod(a: SafeLong, b: SafeLong): (SafeLong, SafeLong)
Definition Classes
SafeLongIsEuclideanRing -> EuclideanRing
Inherited from:
SafeLongIsEuclideanRing
Inherited from:
SafeLongIsEuclideanRing
Inherited from:
SafeLongIsUniqueFactorizationDomain
Inherited from:
SafeLongIsNRoot

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.

Inherited from:
Ring
override def fromInt(n: Int): SafeLong
Definition Classes
SafeLongIsCRing -> Ring
Inherited from:
SafeLongIsCRing
override def gcd(a: SafeLong, b: SafeLong)(implicit ev: Eq[SafeLong]): SafeLong
Definition Classes
SafeLongIsEuclideanRing -> SafeLongIsGCDRing -> EuclideanRing -> GCDRing
Inherited from:
SafeLongIsEuclideanRing
def isOne(a: SafeLong)(implicit ev: Eq[SafeLong]): Boolean

Tests if a is one.

Tests if a is one.

Inherited from:
MultiplicativeMonoid
Inherited from:
SafeLongIsUniqueFactorizationDomain
def isZero(a: SafeLong)(implicit ev: Eq[SafeLong]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from:
AdditiveMonoid
override def lcm(a: SafeLong, b: SafeLong)(implicit ev: Eq[SafeLong]): SafeLong
Definition Classes
SafeLongIsEuclideanRing -> SafeLongIsGCDRing -> EuclideanRing -> GCDRing
Inherited from:
SafeLongIsEuclideanRing
override def minus(a: SafeLong, b: SafeLong): SafeLong
Definition Classes
SafeLongIsCRing -> AdditiveGroup
Inherited from:
SafeLongIsCRing
Inherited from:
SafeLongIsCRing
def nroot(a: SafeLong, k: Int): SafeLong
Inherited from:
SafeLongIsNRoot
Inherited from:
SafeLongIsCRing
override def pow(a: SafeLong, b: Int): SafeLong
Definition Classes
Inherited from:
SafeLongIsCRing
@nowarn("msg=deprecated")

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from:
MultiplicativeMonoid
Inherited from:
NRoot
@nowarn("msg=deprecated")

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from:
AdditiveMonoid
override def sumN(a: SafeLong, n: Int): SafeLong
Definition Classes
Inherited from:
AdditiveGroup
override def times(a: SafeLong, b: SafeLong): SafeLong
Definition Classes
SafeLongIsCRing -> MultiplicativeSemigroup
Inherited from:
SafeLongIsCRing
@nowarn("msg=deprecated")
@nowarn("msg=deprecated")
Definition Classes
Inherited from:
AdditiveMonoid

Inherited fields

Inherited from:
SafeLongIsCRing
Inherited from:
SafeLongIsCRing