FieldAssociativeAlgebra

A FieldAlgebra is a vector space that is also a Ring. An example is the complex numbers.

Companion:
object
trait VectorSpace[V, F]
trait Ring[V]
trait Rng[V]
trait Rig[V]
trait Semiring[V]
trait CModule[V, F]
trait RightModule[V, F]
trait LeftModule[V, F]
trait AdditiveGroup[V]
class Any

Value members

Inherited methods

def divr(v: V, f: F): V
Inherited from:
VectorSpace
def fromBigInt(n: BigInt): V

Convert the given BigInt to an instance of A.

Convert the given BigInt to an instance of A.

This is equivalent to n repeated summations of this ring's one, or -n summations of -one if n is negative.

Most type class instances should consider overriding this method for performance reasons.

Inherited from:
Ring
def fromInt(n: Int): V

Convert the given integer to an instance of A.

Convert the given integer to an instance of A.

Defined to be equivalent to sumN(one, n).

That is, n repeated summations of this ring's one, or -n summations of -one if n is negative.

Most type class instances should consider overriding this method for performance reasons.

Inherited from:
Ring
def isOne(a: V)(implicit ev: Eq[V]): Boolean

Tests if a is one.

Tests if a is one.

Inherited from:
MultiplicativeMonoid
def isZero(a: V)(implicit ev: Eq[V]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from:
AdditiveMonoid
def minus(x: V, y: V): V
Inherited from:
AdditiveGroup
def negate(x: V): V
Inherited from:
AdditiveGroup
def one: V
Inherited from:
MultiplicativeMonoid
def plus(x: V, y: V): V
Inherited from:
AdditiveSemigroup
override def pow(a: V, n: Int): V
@nowarn("msg=deprecated")
def product(as: IterableOnce[V]): V

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from:
MultiplicativeMonoid
@nowarn("msg=deprecated")
def sum(as: IterableOnce[V]): V

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from:
AdditiveMonoid
override def sumN(a: V, n: Int): V
Definition Classes
Inherited from:
AdditiveGroup
def times(x: V, y: V): V
def timesl(r: F, v: V): V
Inherited from:
LeftModule
override def timesr(v: V, r: F): V
Definition Classes
Inherited from:
CModule
@nowarn("msg=deprecated")
override def tryProduct(as: IterableOnce[V]): Option[V]
@nowarn("msg=deprecated")
override def trySum(as: IterableOnce[V]): Option[V]
Definition Classes
Inherited from:
AdditiveMonoid
def zero: V
Inherited from:
AdditiveMonoid

Implicits

Inherited implicits

implicit def scalar: Field[F]
Inherited from:
VectorSpace