OrderedEuclideanMonoid

com.alecdorrington.scalgebra.ordered.OrderedEuclideanMonoid
See theOrderedEuclideanMonoid companion trait
object OrderedEuclideanMonoid extends Ops

The companion object for OrderedEuclideanMonoid.

Attributes

Companion
trait
Graph
Supertypes
trait Ops
trait Ops
trait Ops
trait Ops
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
trait Ops
trait Ops
trait Ops
trait Ops
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Ops
trait Ops
object OrderedField
trait Ops
trait Ops
trait Ops
Show all

Value members

Concrete methods

inline def orderedEuclideanMonoid[X](using orderedEuclideanMonoid: OrderedEuclideanMonoid[X]): OrderedEuclideanMonoid[X]

The OrderedEuclideanMonoid instance describing the current algebra system.

The OrderedEuclideanMonoid instance describing the current algebra system.

Attributes

Inherited methods

inline def divide[X](x: X, y: X)(using X: Euclidean[X]): X

Computes the quotient between two values x and y, i.e. x / y.

Computes the quotient between two values x and y, i.e. x / y.

Attributes

Inherited from:
Ops
inline def isOne[X](x: X)(using X: MultiplicativeIdentity[X]): Boolean

Attributes

Returns

true if x equals one.

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 one[X](using X: MultiplicativeIdentity[X]): X

The unique representation of the multiplicative identity (1) in this algebra system. Typically corresponds to values such as 1 or 1.0F.

The unique representation of the multiplicative identity (1) in this algebra system. Typically corresponds to values such as 1 or 1.0F.

Attributes

Note

All implementations must obey the identity property, i.e. x × one == one × x == x.

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

Computes x raised to the power n, for any non-negative n.

Computes x raised to the power n, for any non-negative 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 product[X](xs: Iterable[X])(using X: MultiplicativeMonoid[X]): X

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

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

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

Exports

Defined exports