com.alecdorrington.scalgebra.arithmetic

Members list

Type members

Classlikes

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)
  • Additive inverse (negation)

Attributes

Note

Laws, in addition to those inherited:

  • Inversion: x + -x == -x + x == zero.
Supertypes
trait AdditiveInverse[X]
trait DifferenceMonoid[X]
trait AdditiveMonoid[X]
trait AdditiveIdentity[X]
trait Difference[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait AdditiveIdentity[X] extends Algebra[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Additive identity (0)

Attributes

Companion
object
Supertypes
trait Algebra[X]
class Object
trait Matchable
class Any
Known subtypes
trait AdditiveMonoid[X]
trait DifferenceMonoid[X]
trait AdditiveGroup[X]
trait Pseudoring[X]
trait Ring[X]
trait QuotientRing[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedQuotientRing[X, S]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait NormedPseudoring[X, S]
trait NormedAdditiveGroup[X, S]
trait Semiring[X]
trait QuotientSemiring[X]
trait Semifield[X]
trait NormedSemifield[X, S]
trait OrderedSemifield[X]
trait NormedSemiring[X, S]
trait OrderedSemiring[X]
trait NormedAdditiveMonoid[X, S]
Show all

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait AdditiveInverse[X] extends Algebra[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Additive inverse (negation)

Attributes

Note

Laws, in addition to those inherited:

  • Involution: -(-x) == x.
Supertypes
trait Algebra[X]
class Object
trait Matchable
class Any
Known subtypes
trait AdditiveGroup[X]
trait Pseudoring[X]
trait Ring[X]
trait QuotientRing[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedQuotientRing[X, S]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait NormedPseudoring[X, S]
trait NormedAdditiveGroup[X, S]
trait NormedAdditiveInverse[X, S]
Show all
trait AdditiveMagma[X] extends Algebra[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Addition

Attributes

Supertypes
trait Algebra[X]
class Object
trait Matchable
class Any
Known subtypes
trait AdditiveMonoid[X]
trait DifferenceMonoid[X]
trait AdditiveGroup[X]
trait Pseudoring[X]
trait Ring[X]
trait QuotientRing[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedQuotientRing[X, S]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait NormedPseudoring[X, S]
trait NormedAdditiveGroup[X, S]
trait Semiring[X]
trait QuotientSemiring[X]
trait Semifield[X]
trait NormedSemifield[X, S]
trait OrderedSemifield[X]
trait NormedSemiring[X, S]
trait OrderedSemiring[X]
trait NormedAdditiveMonoid[X, S]
trait NormedAdditiveMagma[X, S]
Show all

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)

Attributes

Note

Laws, in addition to those inherited:

  • Identity: x + zero == zero + x == x.
Supertypes
trait AdditiveIdentity[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait DifferenceMonoid[X]
trait AdditiveGroup[X]
trait Pseudoring[X]
trait Ring[X]
trait QuotientRing[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedQuotientRing[X, S]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait NormedPseudoring[X, S]
trait NormedAdditiveGroup[X, S]
trait Semiring[X]
trait QuotientSemiring[X]
trait Semifield[X]
trait NormedSemifield[X, S]
trait OrderedSemifield[X]
trait NormedSemiring[X, S]
trait OrderedSemiring[X]
trait NormedAdditiveMonoid[X, S]
Show all
trait AdditiveSemigroup[X] extends AdditiveMagma[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition

Attributes

Note

Laws, in addition to those inherited:

  • Associativity: (x + y) + z == x + (y + z).
Supertypes
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Known subtypes
trait AdditiveMonoid[X]
trait DifferenceMonoid[X]
trait AdditiveGroup[X]
trait Pseudoring[X]
trait Ring[X]
trait QuotientRing[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedQuotientRing[X, S]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait NormedPseudoring[X, S]
trait NormedAdditiveGroup[X, S]
trait Semiring[X]
trait QuotientSemiring[X]
trait Semifield[X]
trait NormedSemifield[X, S]
trait OrderedSemifield[X]
trait NormedSemiring[X, S]
trait OrderedSemiring[X]
trait NormedAdditiveMonoid[X, S]
Show all
trait Difference[X] extends Algebra[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Subtraction

Attributes

Supertypes
trait Algebra[X]
class Object
trait Matchable
class Any
Known subtypes
trait DifferenceMonoid[X]
trait AdditiveGroup[X]
trait Pseudoring[X]
trait Ring[X]
trait QuotientRing[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedQuotientRing[X, S]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait NormedPseudoring[X, S]
trait NormedAdditiveGroup[X, S]
trait NormedDifference[X, S]
Show all

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)
  • Subtraction

Attributes

Supertypes
trait AdditiveMonoid[X]
trait AdditiveIdentity[X]
trait Difference[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait AdditiveGroup[X]
trait Pseudoring[X]
trait Ring[X]
trait QuotientRing[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedQuotientRing[X, S]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait NormedPseudoring[X, S]
trait NormedAdditiveGroup[X, S]
Show all

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)
  • Subtraction
  • Associative multiplication
  • Multiplicative identity (1)
  • Multiplicative inverse (reciprocation)

Attributes

Supertypes
trait Semifield[X]
trait DifferenceMonoid[X]
trait Difference[X]
trait QuotientSemiring[X]
trait QuotientMonoid[X]
trait Quotient[X]
trait Semiring[X]
trait AdditiveMonoid[X]
trait AdditiveIdentity[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Subtraction

Attributes

Note

Laws, in addition to those inherited:

  • Cancellation: (x + y) - y == x.
Supertypes
trait Difference[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait DifferenceMonoid[X]
trait AdditiveGroup[X]
trait Pseudoring[X]
trait Ring[X]
trait QuotientRing[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedQuotientRing[X, S]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait NormedPseudoring[X, S]
trait NormedAdditiveGroup[X, S]
Show all
trait DifferenceSemiring[X] extends Semiring[X], DifferenceMonoid[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)
  • Subtraction
  • Associative multiplication
  • Multiplicative identity (1)

Attributes

Supertypes
trait DifferenceMonoid[X]
trait Difference[X]
trait Semiring[X]
trait AdditiveMonoid[X]
trait AdditiveIdentity[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Field[X] extends QuotientRing[X], DifferenceSemifield[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)
  • Additive inverse (negation)
  • Associative multiplication
  • Multiplicative identity (1)
  • Multiplicative inverse (reciprocation)

Attributes

Supertypes
trait Semifield[X]
trait QuotientRing[X]
trait QuotientSemiring[X]
trait QuotientMonoid[X]
trait Quotient[X]
trait Ring[X]
trait Semiring[X]
trait Pseudoring[X]
trait AdditiveGroup[X]
trait AdditiveInverse[X]
trait DifferenceMonoid[X]
trait AdditiveMonoid[X]
trait AdditiveIdentity[X]
trait Difference[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative multiplication
  • Multiplicative identity (1)
  • Multiplicative inverse (reciprocation)

Attributes

Note

Laws, in addition to those inherited:

  • Inversion: x × x.reciprocal == x.reciprocal × x == one, whenever the reciprocal is defined.
Supertypes
trait QuotientMonoid[X]
trait Quotient[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait MultiplicativeIdentity[X] extends Algebra[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Multiplicative identity (1)

Attributes

Companion
object
Supertypes
trait Algebra[X]
class Object
trait Matchable
class Any
Known subtypes
trait QuotientMonoid[X]
trait Semifield[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedSemifield[X, S]
trait OrderedSemifield[X]
trait QuotientSemiring[X]
trait QuotientRing[X]
trait NormedQuotientRing[X, S]
trait NormedQuotientMonoid[X, S]
trait Semiring[X]
trait Ring[X]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait NormedSemiring[X, S]
trait OrderedSemiring[X]
Show all
trait MultiplicativeInverse[X] extends Algebra[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Multiplicative inverse (reciprocation)

Attributes

Note

Laws, in addition to those inherited:

  • Involution: x.reciprocal.reciprocal == x.
Supertypes
trait Algebra[X]
class Object
trait Matchable
class Any
Known subtypes
trait MultiplicativeMagma[X] extends Algebra[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Multiplication

Attributes

Supertypes
trait Algebra[X]
class Object
trait Matchable
class Any
Known subtypes
trait QuotientMonoid[X]
trait Semifield[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedSemifield[X, S]
trait OrderedSemifield[X]
trait QuotientSemiring[X]
trait QuotientRing[X]
trait NormedQuotientRing[X, S]
trait NormedQuotientMonoid[X, S]
trait Semiring[X]
trait Ring[X]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait NormedSemiring[X, S]
trait OrderedSemiring[X]
trait Pseudoring[X]
trait NormedPseudoring[X, S]
Show all

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative multiplication
  • Multiplicative identity (1)

Attributes

Note

Laws, in addition to those inherited:

  • Identity: x × one == one × x == x.
Supertypes
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait QuotientMonoid[X]
trait Semifield[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedSemifield[X, S]
trait OrderedSemifield[X]
trait QuotientSemiring[X]
trait QuotientRing[X]
trait NormedQuotientRing[X, S]
trait NormedQuotientMonoid[X, S]
trait Semiring[X]
trait Ring[X]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait NormedSemiring[X, S]
trait OrderedSemiring[X]
Show all

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative multiplication

Attributes

Note

Laws, in addition to those inherited:

  • Associativity: (x × y) × z == x × (y × z).
Supertypes
trait Algebra[X]
class Object
trait Matchable
class Any
Known subtypes
trait QuotientMonoid[X]
trait Semifield[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedSemifield[X, S]
trait OrderedSemifield[X]
trait QuotientSemiring[X]
trait QuotientRing[X]
trait NormedQuotientRing[X, S]
trait NormedQuotientMonoid[X, S]
trait Semiring[X]
trait Ring[X]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait NormedSemiring[X, S]
trait OrderedSemiring[X]
trait Pseudoring[X]
trait NormedPseudoring[X, S]
Show all

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)
  • Additive inverse (negation)
  • Associative multiplication

Attributes

Note

Laws, in addition to those inherited:

  • Commutativity: x + y == y + x.
  • Distributivity: x × (y + z) == (x × y) + (x × z) and (x + y) × z == (x × z) + (y × z).
Supertypes
trait AdditiveGroup[X]
trait AdditiveInverse[X]
trait DifferenceMonoid[X]
trait AdditiveMonoid[X]
trait AdditiveIdentity[X]
trait Difference[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Quotient[X] extends Algebra[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Division

Attributes

Supertypes
trait Algebra[X]
class Object
trait Matchable
class Any
Known subtypes
trait QuotientMonoid[X]
trait Semifield[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedSemifield[X, S]
trait OrderedSemifield[X]
trait QuotientSemiring[X]
trait QuotientRing[X]
trait NormedQuotientRing[X, S]
trait NormedQuotientMonoid[X, S]
trait NormedQuotient[X, S]
trait OrderedQuotient[X]
Show all

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)
  • Subtraction
  • Associative multiplication
  • Multiplicative identity (1)
  • Division

Attributes

Supertypes
trait DifferenceMonoid[X]
trait Difference[X]
trait QuotientSemiring[X]
trait QuotientMonoid[X]
trait Quotient[X]
trait Semiring[X]
trait AdditiveMonoid[X]
trait AdditiveIdentity[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative multiplication
  • Multiplicative identity (1)
  • Division

Attributes

Supertypes
trait Quotient[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Semifield[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedSemifield[X, S]
trait OrderedSemifield[X]
trait QuotientSemiring[X]
trait QuotientRing[X]
trait NormedQuotientRing[X, S]
trait NormedQuotientMonoid[X, S]
Show all
trait QuotientRing[X] extends Ring[X], QuotientDifferenceSemiring[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)
  • Additive inverse (negation)
  • Associative multiplication
  • Multiplicative identity (1)
  • Division

Attributes

Supertypes
trait QuotientSemiring[X]
trait QuotientMonoid[X]
trait Quotient[X]
trait Ring[X]
trait Semiring[X]
trait Pseudoring[X]
trait AdditiveGroup[X]
trait AdditiveInverse[X]
trait DifferenceMonoid[X]
trait AdditiveMonoid[X]
trait AdditiveIdentity[X]
trait Difference[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative multiplication
  • Division

Attributes

Note

Laws, in addition to those inherited:

  • Cancellation: (x × y) / y == x, whenever the division is defined.
Supertypes
trait Quotient[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait QuotientMonoid[X]
trait Semifield[X]
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait NormedSemifield[X, S]
trait OrderedSemifield[X]
trait QuotientSemiring[X]
trait QuotientRing[X]
trait NormedQuotientRing[X, S]
trait NormedQuotientMonoid[X, S]
Show all
trait QuotientSemiring[X] extends Semiring[X], QuotientMonoid[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)
  • Associative multiplication
  • Multiplicative identity (1)
  • Division

Attributes

Supertypes
trait QuotientMonoid[X]
trait Quotient[X]
trait Semiring[X]
trait AdditiveMonoid[X]
trait AdditiveIdentity[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Ring[X] extends Pseudoring[X], DifferenceSemiring[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)
  • Additive inverse (negation)
  • Associative multiplication
  • Multiplicative identity (1)

Attributes

Supertypes
trait Semiring[X]
trait Pseudoring[X]
trait AdditiveGroup[X]
trait AdditiveInverse[X]
trait DifferenceMonoid[X]
trait AdditiveMonoid[X]
trait AdditiveIdentity[X]
trait Difference[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)
  • Associative multiplication
  • Multiplicative identity (1)
  • Multiplicative inverse (reciprocation)

Attributes

Supertypes
trait QuotientSemiring[X]
trait QuotientMonoid[X]
trait Quotient[X]
trait Semiring[X]
trait AdditiveMonoid[X]
trait AdditiveIdentity[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
object Semiring

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Semiring.type
trait Semiring[X] extends AdditiveMonoid[X], MultiplicativeMonoid[X]

A typeclass for algebraic values with the following features:

A typeclass for algebraic values with the following features:

  • Associative addition
  • Additive identity (0)
  • Associative multiplication
  • Multiplicative identity (1)

Attributes

Note

Laws, in addition to those inherited:

  • Commutativity: x + y == y + x.
  • Distributivity: x × (y + z) == (x × y) + (x × z) and (x + y) × z == (x × z) + (y × z).
  • Annihilation: x × zero == zero × x == zero.
Companion
object
Supertypes
trait AdditiveMonoid[X]
trait AdditiveIdentity[X]
trait AdditiveMagma[X]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Field[X]
trait NormedField[X, S]
trait OrderedField[X]
trait ArchimedeanField[X]
trait QuotientRing[X]
trait NormedQuotientRing[X, S]
trait Ring[X]
trait NormedRing[X, S]
trait OrderedRing[X]
trait ArchimedeanRing[X]
trait QuotientSemiring[X]
trait Semifield[X]
trait NormedSemifield[X, S]
trait OrderedSemifield[X]
trait NormedSemiring[X, S]
trait OrderedSemiring[X]
Show all