Spire is a numeric library for Scala
Using features such as specialization, macros, type classes, and implicits, Spire provides support for rational, complex, real numbers and intervals, along with algebraic type classes such as monoid, ring or vector space. While optimized for high performance, numeric, fractional and integral algebra also have conversions to the standard Scala implementations.