Trait/Object

spire.algebra

Module

Related Docs: object Module | package algebra

Permalink

trait Module[V, R] extends AdditiveAbGroup[V]

A module generalizes a vector space by requiring its scalar need only form a ring, rather than a field.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Module
  2. AdditiveAbGroup
  3. AdditiveCMonoid
  4. AdditiveCSemigroup
  5. AdditiveGroup
  6. AdditiveMonoid
  7. AdditiveSemigroup
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getClass(): Class[_]

    Permalink
    Definition Classes
    Any
  2. abstract def negate(x: V): V

    Permalink
    Definition Classes
    AdditiveGroup
  3. abstract def plus(x: V, y: V): V

    Permalink
    Definition Classes
    AdditiveSemigroup
  4. implicit abstract def scalar: Rng[R]

    Permalink
  5. abstract def timesl(r: R, v: V): V

    Permalink
  6. abstract def zero: V

    Permalink
    Definition Classes
    AdditiveMonoid

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. def additive: AbGroup[V]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  7. def hashCode(): Int

    Permalink
    Definition Classes
    Any
  8. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  9. def isZero(a: V)(implicit ev: Eq[V]): Boolean

    Permalink

    Tests if a is zero.

    Tests if a is zero.

    Definition Classes
    AdditiveMonoid
  10. def minus(x: V, y: V): V

    Permalink
    Definition Classes
    AdditiveGroup
  11. def sum(as: TraversableOnce[V]): V

    Permalink

    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
  12. def sumOption(as: TraversableOnce[V]): Option[V]

    Permalink

    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
  13. def sumn(a: V, n: Int): V

    Permalink

    Return a added with itself n times.

    Return a added with itself n times.

    Definition Classes
    AdditiveGroupAdditiveMonoidAdditiveSemigroup
  14. def sumnAboveOne(a: V, n: Int): V

    Permalink
    Attributes
    protected
    Definition Classes
    AdditiveSemigroup
  15. def timesr(v: V, r: R): V

    Permalink
  16. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AdditiveAbGroup[V]

Inherited from AdditiveCMonoid[V]

Inherited from AdditiveCSemigroup[V]

Inherited from AdditiveGroup[V]

Inherited from AdditiveMonoid[V]

Inherited from AdditiveSemigroup[V]

Inherited from Any

Ungrouped