FloatIsField

trait FloatIsField extends Field[Float]

Value members

Concrete methods

def div(a: Float, b: Float): Float
override def fromDouble(n: Double): Float
Definition Classes
override def fromInt(n: Int): Float
Definition Classes
override def minus(a: Float, b: Float): Float
Definition Classes
def negate(a: Float): Float
def one: Float
def plus(a: Float, b: Float): Float
override def times(a: Float, b: Float): Float
Definition Classes
def zero: Float

Inherited methods

def emod(a: Float, b: Float): Float
Inherited from:
Field
def equot(a: Float, b: Float): Float
Inherited from:
Field
override def equotmod(a: Float, b: Float): (Float, Float)
Definition Classes
Inherited from:
Field
Inherited from:
Field

Convert the given BigInt to an instance of A.

Convert the given BigInt to an instance of A.

This is equivalent to n repeated summations of this ring's one, or -n summations of -one if n is negative.

Most type class instances should consider overriding this method for performance reasons.

Inherited from:
Ring
override def gcd(a: Float, b: Float)(implicit eqA: Eq[Float]): Float
Definition Classes
Inherited from:
Field
def isOne(a: Float)(implicit ev: Eq[Float]): Boolean

Tests if a is one.

Tests if a is one.

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

Tests if a is zero.

Tests if a is zero.

Inherited from:
AdditiveMonoid
override def lcm(a: Float, b: Float)(implicit eqA: Eq[Float]): Float
Definition Classes
Inherited from:
Field
@nowarn("msg=deprecated")

Given a sequence of as, compute the product.

Given a sequence of as, compute the product.

Inherited from:
MultiplicativeMonoid
Inherited from:
MultiplicativeGroup
@nowarn("msg=deprecated")

Given a sequence of as, compute the sum.

Given a sequence of as, compute the sum.

Inherited from:
AdditiveMonoid
override def sumN(a: Float, n: Int): Float
Definition Classes
Inherited from:
AdditiveGroup
@nowarn("msg=deprecated")
@nowarn("msg=deprecated")
override def trySum(as: IterableOnce[Float]): Option[Float]
Definition Classes
Inherited from:
AdditiveMonoid