superquants.longprecision.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of superquants_sjs0.6_2.12 Show documentation
Show all versions of superquants_sjs0.6_2.12 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 longprecision {
type Single[T] = Pow[Long, T, PowPlus, Nat._1]
type Squared[T] = Pow[Long, T, PowPlus, Nat._2]
type Cubic[T] = Pow[Long, T, PowPlus, Nat._3]
object Negative {
type Single[T] = Pow[Long, T, PowMinus, Nat._1]
type Squared[T] = Pow[Long, T, PowMinus, Nat._2]
type Cubic[T] = Pow[Long, T, PowMinus, Nat._3]
}
}