com.alecdorrington.scalgebra.DifferenceSemigroup
See theDifferenceSemigroup companion trait
object DifferenceSemigroup extends Ops
The companion object for DifferenceSemigroup.
Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
DifferenceSemigroup.type
Members list
Type members
Classlikes
Attributes
- Supertypes
- Known subtypes
-
trait Opstrait Opstrait Opsobject NormedAdditiveGrouptrait Opsobject NormedPseudoringtrait Opstrait Opsobject NormedEuclideanRingtrait Opsobject NormedFieldobject NormedRingobject NormedDifferenceMonoidtrait Opstrait Opsobject NormedDifferenceSemifieldobject NormedDifferenceSemiringobject NormedDifferenceSemigrouptrait Opstrait Opstrait Opsobject OrderedAdditiveGrouptrait Opsobject OrderedPseudoringtrait Opstrait Opsobject OrderedEuclideanRingtrait Opsobject OrderedFieldobject OrderedRingobject OrderedDifferenceMonoidtrait Opstrait Opsobject OrderedDifferenceSemifieldobject OrderedDifferenceSemiringobject OrderedDifferenceSemigrouptrait Opstrait Opsobject AdditiveGrouptrait Opsobject Pseudoringtrait Opstrait Opsobject EuclideanRingtrait Opsobject Fieldobject Ringobject DifferenceMonoidtrait Opstrait Opsobject DifferenceSemifieldobject DifferenceSemiringobject DifferenceSemigroupShow all
Value members
Concrete methods
inline def differenceSemigroup[X](using differenceSemigroup: DifferenceSemigroup[X]): DifferenceSemigroup[X]
The DifferenceSemigroup instance describing the current algebra system.
Inherited methods
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
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
Computes the difference between two values x and y, i.e. x - y.
Computes the sum of x and all values in xs, i.e. x + xs₁ + xs₂ + ….
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
In this article