DistCRing

trait DistCRing[A] extends DistCRng[A] with CommutativeRing[Dist[A]]
trait DistGCDRing[A]
trait DistField[A]

Value members

Abstract methods

Concrete methods

def one: Dist[A]

Inherited methods

def fromBigInt(n: BigInt): Dist[A]

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
def fromInt(n: Int): Dist[A]

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.

Inherited from:
Ring
def isOne(a: Dist[A])(implicit ev: Eq[Dist[A]]): Boolean

Tests if a is one.

Tests if a is one.

Inherited from:
MultiplicativeMonoid
def isZero(a: Dist[A])(implicit ev: Eq[Dist[A]]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from:
AdditiveMonoid
def minus(x: Dist[A], y: Dist[A]): Dist[A]
Inherited from:
AdditiveGroup
def negate(x: Dist[A]): Dist[A]
Inherited from:
DistCRng
def plus(x: Dist[A], y: Dist[A]): Dist[A]
Inherited from:
DistCSemiring
override def pow(a: Dist[A], n: Int): Dist[A]
@nowarn("msg=deprecated")
def product(as: IterableOnce[Dist[A]]): Dist[A]

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from:
MultiplicativeMonoid
@nowarn("msg=deprecated")
def sum(as: IterableOnce[Dist[A]]): Dist[A]

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from:
AdditiveMonoid
override def sumN(a: Dist[A], n: Int): Dist[A]
Definition Classes
Inherited from:
AdditiveGroup
def times(x: Dist[A], y: Dist[A]): Dist[A]
Inherited from:
DistCSemiring
@nowarn("msg=deprecated")
override def tryProduct(as: IterableOnce[Dist[A]]): Option[Dist[A]]
@nowarn("msg=deprecated")
override def trySum(as: IterableOnce[Dist[A]]): Option[Dist[A]]
Definition Classes
Inherited from:
AdditiveMonoid
def zero: Dist[A]
Inherited from:
DistCSemiring