spire.std

MapVectorSpace

Related Doc: package std

class MapVectorSpace[K, V] extends MapRng[K, V] with VectorSpace[Map[K, V], V] with Serializable

Annotations
@SerialVersionUID()
Linear Supertypes
VectorSpace[Map[K, V], V], MapRng[K, V], RingAlgebra[Map[K, V], V], Rng[Map[K, V]], Module[Map[K, V], V], AdditiveAbGroup[Map[K, V]], AdditiveCMonoid[Map[K, V]], AdditiveCSemigroup[Map[K, V]], AdditiveGroup[Map[K, V]], MapSemiring[K, V], Serializable, Serializable, Semiring[Map[K, V]], MultiplicativeSemigroup[Map[K, V]], AdditiveMonoid[Map[K, V]], AdditiveSemigroup[Map[K, V]], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MapVectorSpace
  2. VectorSpace
  3. MapRng
  4. RingAlgebra
  5. Rng
  6. Module
  7. AdditiveAbGroup
  8. AdditiveCMonoid
  9. AdditiveCSemigroup
  10. AdditiveGroup
  11. MapSemiring
  12. Serializable
  13. Serializable
  14. Semiring
  15. MultiplicativeSemigroup
  16. AdditiveMonoid
  17. AdditiveSemigroup
  18. AnyRef
  19. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapVectorSpace()(implicit scalar: Field[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: AbGroup[Map[K, V]]

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def divr(v: Map[K, V], f: V): Map[K, V]

    Definition Classes
    VectorSpace
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  14. 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
  15. def minus(x: Map[K, V], y: Map[K, V]): Map[K, V]

    Definition Classes
    AdditiveGroup
  16. def multiplicative: Semigroup[Map[K, V]]

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

    Definition Classes
    AnyRef
  18. def negate(x: Map[K, V]): Map[K, V]

    Definition Classes
    MapRngAdditiveGroup
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def plus(x: Map[K, V], y: Map[K, V]): Map[K, V]

    Definition Classes
    MapSemiringAdditiveSemigroup
  22. 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
  23. 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
  24. 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
  25. def prodnAboveOne(a: Map[K, V], n: Int): Map[K, V]

    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  26. implicit val scalar: Field[V]

    Definition Classes
    MapVectorSpaceVectorSpaceMapRngModuleMapSemiring
  27. 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
  28. 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
  29. 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
    AdditiveGroupAdditiveMonoidAdditiveSemigroup
  30. def sumnAboveOne(a: Map[K, V], n: Int): Map[K, V]

    Attributes
    protected
    Definition Classes
    AdditiveSemigroup
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def times(x: Map[K, V], y: Map[K, V]): Map[K, V]

  33. def timesl(r: V, v: Map[K, V]): Map[K, V]

    Definition Classes
    MapRngModule
  34. def timesr(v: Map[K, V], r: V): Map[K, V]

    Definition Classes
    Module
  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit

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

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

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

    Definition Classes
    MapSemiringAdditiveMonoid

Inherited from VectorSpace[Map[K, V], V]

Inherited from MapRng[K, V]

Inherited from RingAlgebra[Map[K, V], V]

Inherited from Rng[Map[K, V]]

Inherited from Module[Map[K, V], V]

Inherited from AdditiveAbGroup[Map[K, V]]

Inherited from AdditiveCMonoid[Map[K, V]]

Inherited from AdditiveCSemigroup[Map[K, V]]

Inherited from AdditiveGroup[Map[K, V]]

Inherited from MapSemiring[K, V]

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