LongAlgebra

class LongAlgebra extends CommutativeRing[Long] with Serializable
trait CommutativeRing[Long]
trait CommutativeRng[Long]
trait CommutativeRig[Long]
trait Ring[Long]
trait Rng[Long]
trait AdditiveGroup[Long]
trait Rig[Long]
trait Semiring[Long]
trait AdditiveMonoid[Long]
trait AdditiveSemigroup[Long]
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Inherited methods

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

Tests if a is one.

Tests if a is one.

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

Tests if a is zero.

Tests if a is zero.

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

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

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

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

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