Class

algebra.instances

MapSemiring

Related Doc: package instances

Permalink

class MapSemiring[K, V] extends MapAdditiveMonoid[K, V] with Semiring[Map[K, V]]

Linear Supertypes
Semiring[Map[K, V]], MultiplicativeSemigroup[Map[K, V]], AdditiveCommutativeMonoid[Map[K, V]], AdditiveCommutativeSemigroup[Map[K, V]], MapAdditiveMonoid[K, V], AdditiveMonoid[Map[K, V]], AdditiveSemigroup[Map[K, V]], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapSemiring
  2. Semiring
  3. MultiplicativeSemigroup
  4. AdditiveCommutativeMonoid
  5. AdditiveCommutativeSemigroup
  6. MapAdditiveMonoid
  7. AdditiveMonoid
  8. AdditiveSemigroup
  9. Serializable
  10. Serializable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapSemiring()(implicit V: Semiring[V])

    Permalink

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: CommutativeMonoid[Map[K, V]]

    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. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  13. def isZero(a: Map[K, V])(implicit ev: Eq[Map[K, V]]): Boolean

    Permalink

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  14. def multiplicative: Semigroup[Map[K, V]]

    Permalink
    Definition Classes
    MultiplicativeSemigroup
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  18. def plus(xs: Map[K, V], ys: Map[K, V]): Map[K, V]

    Permalink
    Definition Classes
    MapAdditiveMonoidAdditiveSemigroup
  19. def positivePow(a: Map[K, V], n: Int): Map[K, V]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    MultiplicativeSemigroup
  20. def positiveSumN(a: Map[K, V], n: Int): Map[K, V]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    AdditiveSemigroup
  21. def pow(x: Map[K, V], n: Int): Map[K, V]

    Permalink
    Definition Classes
    MapSemiringMultiplicativeSemigroup
  22. def sum(as: TraversableOnce[Map[K, V]]): Map[K, V]

    Permalink

    Given a sequence of as, compute the sum.

    Given a sequence of as, compute the sum.

    Definition Classes
    MapAdditiveMonoidAdditiveMonoid
  23. def sumN(a: Map[K, V], n: Int): Map[K, V]

    Permalink
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def times(xs: Map[K, V], ys: Map[K, V]): Map[K, V]

    Permalink
    Definition Classes
    MapSemiringMultiplicativeSemigroup
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def tryProduct(as: TraversableOnce[Map[K, V]]): Option[Map[K, V]]

    Permalink

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

    Definition Classes
    MapSemiringMultiplicativeSemigroup
  28. def trySum(as: TraversableOnce[Map[K, V]]): Option[Map[K, V]]

    Permalink

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

    Definition Classes
    AdditiveMonoidAdditiveSemigroup
  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def zero: Map[K, V]

    Permalink
    Definition Classes
    MapAdditiveMonoidAdditiveMonoid

Inherited from Semiring[Map[K, V]]

Inherited from MultiplicativeSemigroup[Map[K, V]]

Inherited from AdditiveCommutativeMonoid[Map[K, V]]

Inherited from AdditiveCommutativeSemigroup[Map[K, V]]

Inherited from MapAdditiveMonoid[K, V]

Inherited from AdditiveMonoid[Map[K, V]]

Inherited from AdditiveSemigroup[Map[K, V]]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped