Trait/Object

spire.algebra

RingAlgebra

Related Docs: object RingAlgebra | package algebra

Permalink

trait RingAlgebra[V, R] extends Module[V, R] with Rng[V]

A RingAlgebra is a module that is also a Rng. An example is the Gaussian numbers.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RingAlgebra
  2. Rng
  3. Semiring
  4. MultiplicativeSemigroup
  5. Module
  6. AdditiveAbGroup
  7. AdditiveCMonoid
  8. AdditiveCSemigroup
  9. AdditiveGroup
  10. AdditiveMonoid
  11. AdditiveSemigroup
  12. 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
    Definition Classes
    Module
  5. abstract def times(x: V, y: V): V

    Permalink
    Definition Classes
    MultiplicativeSemigroup
  6. abstract def timesl(r: R, v: V): V

    Permalink
    Definition Classes
    Module
  7. 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 multiplicative: Semigroup[V]

    Permalink
    Definition Classes
    MultiplicativeSemigroup
  12. def pow(a: V, n: Int): V

    Permalink

    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
  13. def prodOption(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
    MultiplicativeSemigroup
  14. def prodn(a: V, n: Int): V

    Permalink

    Return a multiplied with itself n times.

    Return a multiplied with itself n times.

    Definition Classes
    MultiplicativeSemigroup
  15. def prodnAboveOne(a: V, n: Int): V

    Permalink
    Attributes
    protected
    Definition Classes
    MultiplicativeSemigroup
  16. 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
  17. 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
  18. 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
  19. def sumnAboveOne(a: V, n: Int): V

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

    Permalink
    Definition Classes
    Module
  21. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from Rng[V]

Inherited from Semiring[V]

Inherited from MultiplicativeSemigroup[V]

Inherited from Module[V, R]

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