Ops

com.alecdorrington.scalgebra.normed.NormedMultiplicativeSemigroup.Ops
trait Ops extends Ops, Ops

Attributes

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

Members list

Value members

Inherited methods

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

Attributes

Inherited from:
Ops
inline def multiply[X](x: X, y: X)(using X: MultiplicativeSemigroup[X]): X

Computes the product of two values x and y, i.e. x × y.

Computes the product 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 pow[X](x: X, n: Int)(using X: MultiplicativeSemigroup[X]): X

Computes x raised to the power n, for any strictly positive n.

Computes x raised to the power n, for any strictly positive n.

Attributes

Throws
IllegalArgumentException

if n ≤ 0.

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

Computes the product of x and all values in xss, i.e. x × xs₁ × xs₂ × ….

Computes the product of x and all values in xss, i.e. x × xs₁ × xs₂ × ….

Attributes

Inherited from:
Ops
inline def productOption[X](xs: Iterable[X])(using X: MultiplicativeSemigroup[X]): Option[X]

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

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

Attributes

Inherited from:
Ops