NormedAdditiveMonoid

com.alecdorrington.scalgebra.normed.NormedAdditiveMonoid
See theNormedAdditiveMonoid companion trait
object NormedAdditiveMonoid extends Ops

The companion object for NormedAdditiveMonoid.

Attributes

Companion
trait
Graph
Supertypes
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

trait Ops extends Ops, Ops, Ops

Attributes

Supertypes
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
object NormedField
object NormedRing
trait Ops
trait Ops
trait Ops
trait Ops
Show all

Types

type Over[S] = [X] =>> NormedAdditiveMonoid[X, S]

Value members

Concrete methods

inline def normedAdditiveMonoid[X, S](using ev: NormedAdditiveMonoid[X, S]): NormedAdditiveMonoid[X, S]

The NormedAdditiveMonoid instance describing the current algebra system.

The NormedAdditiveMonoid instance describing the current algebra system.

Attributes

Inherited methods

inline def add[X](x: X, y: X)(using X: AdditiveSemigroup[X]): X

Computes the sum of two values x and y, i.e. x + y.

Computes the sum of two values x and y, i.e. x + y.

Attributes

Note

All implementations must be associative, i.e. (x + y) + z == x + (y + z).

Inherited from:
Ops
inline def isZero[X](x: X)(using X: AdditiveIdentity[X]): Boolean

Attributes

Returns

true if x equals zero.

Inherited from:
Ops
inline def length[X, S](x: X)(using ev: Normed[X, S]): S

Attributes

Inherited from:
Ops
inline def scale[X](x: X, n: Int)(using X: AdditiveSemigroup[X]): X

Computes x multiplied by n, for any strictly positive n.

Computes x multiplied by n, for any strictly positive n.

Attributes

Throws
IllegalArgumentException

if n ≤ 0.

Inherited from:
Ops
inline def scale[X](x: X, n: Int)(using X: AdditiveMonoid[X]): X

Computes x multiplied by n, for any non-negative n.

Computes x multiplied by n, for any non-negative n.

Attributes

Throws
IllegalArgumentException

if n < 0.

Inherited from:
Ops
inline def sum[X](x: X, xs: X*)(using X: AdditiveSemigroup[X]): X

Computes the sum of x and all values in xs, i.e. x + xs₁ + xs₂ + ….

Computes the sum of x and all values in xs, i.e. x + xs₁ + xs₂ + ….

Attributes

Inherited from:
Ops
inline def sum[X](xs: Iterable[X])(using X: AdditiveMonoid[X]): X

Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else zero if xs is empty.

Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else zero if xs is empty.

Attributes

Inherited from:
Ops
inline def sumOption[X](xs: Iterable[X])(using X: AdditiveSemigroup[X]): Option[X]

Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else None if xs is empty.

Computes the sum of all values in xs, i.e. xs₁ + xs₂ + …, or else None if xs is empty.

Attributes

Inherited from:
Ops
inline def zero[X](using X: AdditiveIdentity[X]): X

The unique representation of the additive identity (0) in this algebra system. Typically corresponds to values such as 0, 0.0F, or Seq.empty.

The unique representation of the additive identity (0) in this algebra system. Typically corresponds to values such as 0, 0.0F, or Seq.empty.

Attributes

Note

All implementations must obey the identity property, i.e. x + zero == zero + x == x.

Inherited from:
Ops

Exports

Defined exports

Exported from normed