MapCSemiring

@SerialVersionUID(0L)
class MapCSemiring[K, V](implicit val scalar: CommutativeSemiring[V]) extends CommutativeSemiring[Map[K, V]] with Serializable
trait Semiring[Map[K, V]]
trait AdditiveMonoid[Map[K, V]]
trait AdditiveSemigroup[Map[K, V]]
class Object
trait Matchable
class Any
class MapCRng[K, V]
class MapVectorSpace[K, V]

Value members

Concrete methods

def plus(x: Map[K, V], y: Map[K, V]): Map[K, V]
def times(x: Map[K, V], y: Map[K, V]): Map[K, V]
def zero: Map[K, V]

Inherited methods

def isZero(a: Map[K, V])(implicit ev: Eq[Map[K, V]]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from:
AdditiveMonoid
def pow(a: Map[K, V], n: Int): Map[K, V]
@nowarn("msg=deprecated")
def sum(as: IterableOnce[Map[K, V]]): Map[K, V]

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from:
AdditiveMonoid
override def sumN(a: Map[K, V], n: Int): Map[K, V]
Definition Classes
Inherited from:
AdditiveMonoid
@nowarn("msg=deprecated")
def tryProduct(as: IterableOnce[Map[K, V]]): Option[Map[K, V]]

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).

Inherited from:
MultiplicativeSemigroup
@nowarn("msg=deprecated")
override def trySum(as: IterableOnce[Map[K, V]]): Option[Map[K, V]]
Definition Classes
Inherited from:
AdditiveMonoid

Implicits

Implicits

implicit val scalar: CommutativeSemiring[V]