![JAR search and dependency download from the Maven repository](/logo.png)
com.bryghts.numerics.ExtendedNumeric.scala Maven / Gradle / Ivy
package com.bryghts.numerics
/**
* Created by dunlord on 22/02/15.
*/
trait ExtendedNumeric[T] extends Numeric[T]
with NumericBuilders[T]
with NumericConverters[T]
with PolyNumeric[T, T, T]
{
override def lteq(x: T, y: T): Boolean = super[Numeric].lteq(x, y)
override def gteq(x: T, y: T): Boolean = super[Numeric].gteq(x, y)
override def lt (x: T, y: T): Boolean = super[Numeric].lt(x, y)
override def gt (x: T, y: T): Boolean = super[Numeric].gt(x, y)
override def numeric = this
}
trait ExtendedIntegral[T] extends Integral[T]
with ExtendedNumeric[T]
with IntegralPolyNumeric[T, T, T] {
override def div(a: T, b: T): T = quot(a, b)
override def numeric = this
}
trait ExtendedFractional[T] extends Fractional[T]
with ExtendedNumeric[T]
with FractionalPolyNumeric[T, T, T]
{
override def numeric = this
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy