AdditiveGroup

algebra.ring.AdditiveGroup
See theAdditiveGroup companion object
trait AdditiveGroup[A] extends AdditiveMonoid[A]

Attributes

Companion:
object
Source:
Additive.scala
Graph
Supertypes
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def negate(x: A): A

Attributes

Source:
Additive.scala

Concrete methods

override def additive: Group[A]

Attributes

Definition Classes
Source:
Additive.scala
def minus(x: A, y: A): A

Attributes

Source:
Additive.scala
override def sumN(a: A, n: Int): A

Attributes

Definition Classes
Source:
Additive.scala

Inherited methods

def isZero(a: A)(implicit ev: Eq[A]): Boolean

Tests if a is zero.

Tests if a is zero.

Attributes

Inherited from:
AdditiveMonoid
Source:
Additive.scala
def plus(x: A, y: A): A

Attributes

Inherited from:
AdditiveSemigroup
Source:
Additive.scala
def sum(as: IterableOnce[A]): A

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Attributes

Inherited from:
AdditiveMonoid
Source:
Additive.scala
override def trySum(as: IterableOnce[A]): Option[A]

Given a sequence of as, combine them and return the total.

Given a sequence of as, combine them and return the total.

If the sequence is empty, returns None. Otherwise, returns Some(total).

Attributes

Definition Classes
Inherited from:
AdditiveMonoid
Source:
Additive.scala
def zero: A

Attributes

Inherited from:
AdditiveMonoid
Source:
Additive.scala