- Companion
- class
trait RingFunctions[[A] =>> CommutativeRing[A]]
trait MultiplicativeMonoidFunctions[[A] =>> CommutativeRing[A]]
trait MultiplicativeSemigroupFunctions[[A] =>> CommutativeRing[A]]
trait AdditiveGroupFunctions[[A] =>> CommutativeRing[A]]
trait AdditiveMonoidFunctions[[A] =>> CommutativeRing[A]]
trait AdditiveSemigroupFunctions[[A] =>> CommutativeRing[A]]
class Object
trait Matchable
class Any
Value members
Concrete methods
Inherited methods
final def defaultFromBigInt[@specialized(Int, Long, Float, Double) A](n: BigInt)(ev: CommutativeRing[A]): A
- Inherited from
- RingFunctions
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 isOne[@specialized(Int, Long, Float, Double) A](a: A)(ev0: CommutativeRing[A], ev1: Eq[A]): Boolean
- Inherited from
- MultiplicativeMonoidFunctions
def isZero[@specialized(Int, Long, Float, Double) A](a: A)(ev0: CommutativeRing[A], ev1: Eq[A]): Boolean
- Inherited from
- AdditiveMonoidFunctions
def product[@specialized(Int, Long, Float, Double) A](as: IterableOnce[A])(ev: CommutativeRing[A]): A
- Inherited from
- MultiplicativeMonoidFunctions