Packages

c

spire.std

MapSemiring

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

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, Semiring[Map[K, V]], MultiplicativeSemigroup[Map[K, V]], AdditiveMonoid[Map[K, V]], AdditiveSemigroup[Map[K, V]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapSemiring
  2. Serializable
  3. Serializable
  4. Semiring
  5. MultiplicativeSemigroup
  6. AdditiveMonoid
  7. AdditiveSemigroup
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapSemiring()(implicit scalar: 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: Monoid[Map[K, V]]
    Definition Classes
    AdditiveMonoidAdditiveSemigroup
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  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
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  18. def plus(x: Map[K, V], y: Map[K, V]): Map[K, V]
    Definition Classes
    MapSemiringAdditiveSemigroup
  19. def pow(a: Map[K, V], n: Int): Map[K, V]

    Returns a multiplied with itself n times.

    Returns a multiplied with itself n times. For instance, a pow 3 === a * a * a. Since this is a semiring, there is no notion of a multiplicative identity, and so the exponent must be positive.

    Definition Classes
    Semiring
  20. def prodOption(as: TraversableOnce[Map[K, V]]): Option[Map[K, V]]

    Given a sequence of as, sum them using the semigroup and return the total.

    Given a sequence of as, sum them using the semigroup and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    MultiplicativeSemigroup
  21. def prodn(a: Map[K, V], n: Int): Map[K, V]

    Return a multiplied with itself n times.

    Return a multiplied with itself n times.

    Definition Classes
    MultiplicativeSemigroup
  22. def prodnAboveOne(a: Map[K, V], n: Int): Map[K, V]
    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  23. implicit val scalar: Semiring[V]
  24. def sum(as: TraversableOnce[Map[K, V]]): Map[K, V]

    Given a sequence of as, sum them using the monoid and return the total.

    Given a sequence of as, sum them using the monoid and return the total.

    Definition Classes
    AdditiveMonoid
  25. def sumOption(as: TraversableOnce[Map[K, V]]): Option[Map[K, V]]

    Given a sequence of as, sum them using the semigroup and return the total.

    Given a sequence of as, sum them using the semigroup and return the total.

    If the sequence is empty, returns None. Otherwise, returns Some(total).

    Definition Classes
    AdditiveSemigroup
  26. def sumn(a: Map[K, V], n: Int): Map[K, V]

    Return a added with itself n times.

    Return a added with itself n times.

    Definition Classes
    AdditiveMonoidAdditiveSemigroup
  27. def sumnAboveOne(a: Map[K, V], n: Int): Map[K, V]
    Attributes
    protected
    Definition Classes
    AdditiveSemigroup
  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def times(x: Map[K, V], y: Map[K, V]): Map[K, V]
    Definition Classes
    MapSemiringMultiplicativeSemigroup
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def zero: Map[K, V]
    Definition Classes
    MapSemiringAdditiveMonoid

Inherited from Serializable

Inherited from Serializable

Inherited from Semiring[Map[K, V]]

Inherited from MultiplicativeSemigroup[Map[K, V]]

Inherited from AdditiveMonoid[Map[K, V]]

Inherited from AdditiveSemigroup[Map[K, V]]

Inherited from AnyRef

Inherited from Any

Ungrouped