algebra.ring.CommutativeRing.scala Maven / Gradle / Ivy
package algebra
package ring
import scala.{specialized => sp}
/**
* CommutativeRing is a Ring that is commutative under multiplication.
*/
trait CommutativeRing[@sp(Int, Long, Float, Double) A] extends Any with Ring[A] with CommutativeRig[A]
object CommutativeRing extends RingFunctions[CommutativeRing] {
@inline final def apply[A](implicit r: CommutativeRing[A]): CommutativeRing[A] = r
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy