c

algebra.instances

MapSemiring

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

Source
map.scala
Linear Supertypes
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. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def additive: CommutativeMonoid[Map[K, V]]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def isZero(a: Map[K, V])(implicit ev: Eq[Map[K, V]]): Boolean

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  14. def multiplicative: Semigroup[Map[K, V]]
    Definition Classes
    MultiplicativeSemigroup
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def plus(xs: Map[K, V], ys: Map[K, V]): Map[K, V]
    Definition Classes
    MapAdditiveMonoidAdditiveSemigroup
  19. def positivePow(a: Map[K, V], n: Int): Map[K, V]
    Attributes
    protected[this]
    Definition Classes
    MultiplicativeSemigroup
  20. def positiveSumN(a: Map[K, V], n: Int): Map[K, V]
    Attributes
    protected[this]
    Definition Classes
    AdditiveSemigroup
  21. def pow(x: Map[K, V], n: Int): Map[K, V]
    Definition Classes
    MapSemiringMultiplicativeSemigroup
  22. def sum(as: TraversableOnce[Map[K, V]]): Map[K, V]

    Given a sequence of as, compute the sum.

    Given a sequence of as, compute the sum.

    Definition Classes
    MapAdditiveMonoidAdditiveMonoid
    Annotations
    @nowarn()
  23. def sumN(a: Map[K, V], n: Int): Map[K, V]
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def times(xs: Map[K, V], ys: Map[K, V]): Map[K, V]
    Definition Classes
    MapSemiringMultiplicativeSemigroup
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def tryProduct(as: TraversableOnce[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).

    Definition Classes
    MapSemiringMultiplicativeSemigroup
    Annotations
    @nowarn()
  28. def trySum(as: TraversableOnce[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).

    Definition Classes
    AdditiveMonoidAdditiveSemigroup
    Annotations
    @nowarn()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. def zero: Map[K, V]
    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 AnyRef

Inherited from Any

Ungrouped