IntAlgebra

class IntAlgebra extends CommutativeRing[Int] with Serializable
trait CommutativeRing[Int]
trait CommutativeRng[Int]
trait CommutativeRig[Int]
trait Ring[Int]
trait Rng[Int]
trait AdditiveGroup[Int]
trait Rig[Int]
trait Semiring[Int]
trait AdditiveMonoid[Int]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

override def fromBigInt(n: BigInt): Int
Definition Classes
override def fromInt(n: Int): Int
Definition Classes
override def minus(x: Int, y: Int): Int
Definition Classes
def negate(x: Int): Int
def one: Int
def plus(x: Int, y: Int): Int
override def pow(x: Int, y: Int): Int
def times(x: Int, y: Int): Int
def zero: Int

Inherited methods

def isOne(a: Int)(ev: Eq[Int]): Boolean

Tests if a is one.

Tests if a is one.

Inherited from
MultiplicativeMonoid
def isZero(a: Int)(ev: Eq[Int]): Boolean

Tests if a is zero.

Tests if a is zero.

Inherited from
AdditiveMonoid
def product(as: IterableOnce[Int]): Int

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from
MultiplicativeMonoid
def sum(as: IterableOnce[Int]): Int

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from
AdditiveMonoid
override def sumN(a: Int, n: Int): Int
Definition Classes
Inherited from
AdditiveGroup
override def tryProduct(as: IterableOnce[Int]): Option[Int]
override def trySum(as: IterableOnce[Int]): Option[Int]
Definition Classes
Inherited from
AdditiveMonoid