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

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

package poly.algebra

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

trait PowerOps[@sp(fd) X] {
  def root(x: X, n: Int): X
  def sqrt(x: X): X = root(x, 2)
  def cbrt(x: X): X = root(x, 3)
  def pow(x: X, y: X): X
}

object PowerOps extends ImplicitGetter[PowerOps]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy