object CommutativeRing extends RingFunctions[CommutativeRing] with Serializable
- Source
- CommutativeRing.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CommutativeRing
- Serializable
- RingFunctions
- MultiplicativeMonoidFunctions
- MultiplicativeSemigroupFunctions
- AdditiveGroupFunctions
- AdditiveMonoidFunctions
- AdditiveSemigroupFunctions
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def apply[A](implicit r: CommutativeRing[A]): CommutativeRing[A]
- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def defaultFromBigInt[A](n: BigInt)(implicit ev: CommutativeRing[A]): A
- Definition Classes
- RingFunctions
- final def defaultFromDouble[A](a: Double)(implicit ringA: Ring[A], mgA: MultiplicativeGroup[A]): A
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.
- Definition Classes
- RingFunctions
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromBigInt[A](n: BigInt)(implicit ev: CommutativeRing[A]): A
- Definition Classes
- RingFunctions
- def fromInt[A](n: Int)(implicit ev: CommutativeRing[A]): A
- Definition Classes
- RingFunctions
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isAdditiveCommutative[A](implicit ev: CommutativeRing[A]): Boolean
- Definition Classes
- AdditiveSemigroupFunctions
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isMultiplicativeCommutative[A](implicit ev: CommutativeRing[A]): Boolean
- Definition Classes
- MultiplicativeSemigroupFunctions
- def isOne[A](a: A)(implicit ev0: CommutativeRing[A], ev1: Eq[A]): Boolean
- Definition Classes
- MultiplicativeMonoidFunctions
- def isZero[A](a: A)(implicit ev0: CommutativeRing[A], ev1: Eq[A]): Boolean
- Definition Classes
- AdditiveMonoidFunctions
- def minus[A](x: A, y: A)(implicit ev: CommutativeRing[A]): A
- Definition Classes
- AdditiveGroupFunctions
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def negate[A](x: A)(implicit ev: CommutativeRing[A]): A
- Definition Classes
- AdditiveGroupFunctions
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def one[A](implicit ev: CommutativeRing[A]): A
- Definition Classes
- MultiplicativeMonoidFunctions
- def plus[A](x: A, y: A)(implicit ev: CommutativeRing[A]): A
- Definition Classes
- AdditiveSemigroupFunctions
- def pow[A](a: A, n: Int)(implicit ev: CommutativeRing[A]): A
- Definition Classes
- MultiplicativeSemigroupFunctions
- def product[A](as: TraversableOnce[A])(implicit ev: CommutativeRing[A]): A
- Definition Classes
- MultiplicativeMonoidFunctions
- Annotations
- @nowarn()
- def sum[A](as: TraversableOnce[A])(implicit ev: CommutativeRing[A]): A
- Definition Classes
- AdditiveMonoidFunctions
- Annotations
- @nowarn()
- def sumN[A](a: A, n: Int)(implicit ev: CommutativeRing[A]): A
- Definition Classes
- AdditiveSemigroupFunctions
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def times[A](x: A, y: A)(implicit ev: CommutativeRing[A]): A
- Definition Classes
- MultiplicativeSemigroupFunctions
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryProduct[A](as: TraversableOnce[A])(implicit ev: CommutativeRing[A]): Option[A]
- Definition Classes
- MultiplicativeSemigroupFunctions
- Annotations
- @nowarn()
- def trySum[A](as: TraversableOnce[A])(implicit ev: CommutativeRing[A]): Option[A]
- Definition Classes
- AdditiveSemigroupFunctions
- Annotations
- @nowarn()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def zero[A](implicit ev: CommutativeRing[A]): A
- Definition Classes
- AdditiveMonoidFunctions