- Companion
- class
trait GCDRingFunctions[EuclideanRing]
trait RingFunctions[EuclideanRing]
trait MultiplicativeMonoidFunctions[EuclideanRing]
trait MultiplicativeSemigroupFunctions[EuclideanRing]
trait AdditiveGroupFunctions[EuclideanRing]
trait AdditiveMonoidFunctions[EuclideanRing]
trait AdditiveSemigroupFunctions[EuclideanRing]
class Object
trait Matchable
class Any
Type members
Classlikes
Value members
Concrete methods
Inherited methods
final
def defaultFromBigInt[@specialized(Int, Long, Float, Double) A](n: BigInt)(implicit ev: EuclideanRing[A]): A
- Inherited from
- RingFunctions
final
Returns the given Double, understood as a rational number, in the provided (division) ring.
Returns the given Double, understood as a rational number, in the provided (division) ring.
This is implemented in terms of basic ops. However, this is probably significantly less efficient than can be done with a specific type. So, it is recommended to specialize this general method.
- Inherited from
- RingFunctions
def equotmod[@specialized(Int, Long, Float, Double) A](a: A, b: A)(implicit ev: EuclideanRing[A]): (A, A)
- Inherited from
- EuclideanRingFunctions
def euclideanFunction[@specialized(Int, Long, Float, Double) A](a: A)(implicit ev: EuclideanRing[A]): BigInt
- Inherited from
- EuclideanRingFunctions
def fromBigInt[@specialized(Int, Long, Float, Double) A](n: BigInt)(implicit ev: EuclideanRing[A]): A
- Inherited from
- RingFunctions
def gcd[@specialized(Int, Long, Float, Double) A](a: A, b: A)(implicit ev: EuclideanRing[A], eqA: Eq[A]): A
- Inherited from
- GCDRingFunctions
def isOne[@specialized(Int, Long, Float, Double) A](a: A)(implicit ev0: EuclideanRing[A], ev1: Eq[A]): Boolean
- Inherited from
- MultiplicativeMonoidFunctions
def isZero[@specialized(Int, Long, Float, Double) A](a: A)(implicit ev0: EuclideanRing[A], ev1: Eq[A]): Boolean
- Inherited from
- AdditiveMonoidFunctions
def lcm[@specialized(Int, Long, Float, Double) A](a: A, b: A)(implicit ev: EuclideanRing[A], eqA: Eq[A]): A
- Inherited from
- GCDRingFunctions
def product[@specialized(Int, Long, Float, Double) A](as: IterableOnce[A])(implicit ev: EuclideanRing[A]): A
- Inherited from
- MultiplicativeMonoidFunctions
def sum[@specialized(Int, Long, Float, Double) A](as: IterableOnce[A])(implicit ev: EuclideanRing[A]): A
- Inherited from
- AdditiveMonoidFunctions