All Downloads are FREE. Search and download functionalities are using the official Maven repository.

poly.algebra.OrderedAdditiveGroup.scala Maven / Gradle / Ivy

package poly.algebra

import poly.algebra.factory._
import poly.algebra.specgroup._

/**
 * @author Tongfei Chen
 */
trait OrderedAdditiveGroup[@sp(fdi) X] extends AdditiveGroup[X] with Order[X] {

  def isPositive(x: X) = gt(x, zero)

  def isNegative(x: X) = lt(x, zero)

}

object OrderedAdditiveGroup extends ImplicitGetter[OrderedAdditiveGroup]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy