superquants.doubleprecision.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of superquants_2.11 Show documentation
Show all versions of superquants_2.11 Show documentation
Scala: Typelevel unboxed compile time dimensional analysis over tagged types. Intellij Idea compatible 100%
The newest version!
package superquants
import shapeless.Nat
package object doubleprecision {
type Single[T] = Pow[Double, T, PowPlus, Nat._1]
type Squared[T] = Pow[Double, T, PowPlus, Nat._2]
type Cubic[T] = Pow[Double, T, PowPlus, Nat._3]
object Negative {
type Single[T] = Pow[Double, T, PowMinus, Nat._1]
type Squared[T] = Pow[Double, T, PowMinus, Nat._2]
type Cubic[T] = Pow[Double, T, PowMinus, Nat._3]
}
}