DifferenceSemigroup

com.alecdorrington.scalgebra.DifferenceSemigroup
See theDifferenceSemigroup companion trait
object DifferenceSemigroup extends Ops

The companion object for DifferenceSemigroup.

Attributes

Companion
trait
Graph
Supertypes
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

Attributes

Supertypes
trait Ops
trait Ops
class Object
trait Matchable
class Any
Known subtypes
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
object NormedField
object NormedRing
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
trait Ops
object OrderedField
object OrderedRing
trait Ops
trait Ops
trait Ops
trait Ops
object AdditiveGroup
trait Ops
object Pseudoring
trait Ops
trait Ops
object EuclideanRing
trait Ops
object Field
object Ring
trait Ops
trait Ops
Show all

Value members

Concrete methods

inline def differenceSemigroup[X](using differenceSemigroup: DifferenceSemigroup[X]): DifferenceSemigroup[X]

The DifferenceSemigroup instance describing the current algebra system.

The DifferenceSemigroup 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 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 subtract[X](x: X, y: X)(using X: Difference[X]): X

Computes the difference between two values x and y, i.e. x - y.

Computes the difference between two values x and y, i.e. x - y.

Attributes

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 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

Exports

Defined exports