NormedMultiplicativeIdentity

com.alecdorrington.scalgebra.normed.NormedMultiplicativeIdentity
See theNormedMultiplicativeIdentity companion object

A typeclass for algebraic values with the following features:

  • Multiplicative identity (1)
  • Norm (length)

Attributes

Note

Laws, in addition to those inherited, whenever S carries the corresponding structure:

  • Normalisation: ‖one‖ == 1.
Companion
object
Graph
Supertypes
trait Normed[X, S]
trait Algebra[X]
class Object
trait Matchable
class Any
Show all
Known subtypes
trait NormedQuotientMonoid[X, S]
trait NormedSemifield[X, S]
trait NormedField[X, S]
trait NormedQuotientRing[X, S]
trait NormedSemiring[X, S]
trait NormedRing[X, S]
Show all

Members list

Value members

Inherited and Abstract methods

def one: X

The unique multiplicative identity in this algebra. Typically given by values such as 1 or 1.0F.

The unique multiplicative identity in this algebra. Typically given by values such as 1 or 1.0F.

Attributes

Inherited from:
MultiplicativeIdentity

Extensions

Inherited extensions

extension (x: X)
inline def isOne: Boolean

Attributes

Returns

true if and only if x equals one.

Inherited from:
MultiplicativeIdentity
inline def nonOne: Boolean

Attributes

Returns

true if and only if x doesn't equal one.

Inherited from:
MultiplicativeIdentity

Inherited and Abstract extensions

extension (x: X)
def length: S

Computes the norm of a value x, i.e. ‖x‖.

Computes the norm of a value x, i.e. ‖x‖.

Attributes

Inherited from:
Normed