github-actions[bot] on gh-pages
deploy: e361e57dd57cb16c9551422… (compare)
armanbilge on main
only test against longs that do… test cube get rid of unecessary comments and 8 more (compare)
trait Complicate[T] {
def i: T
}
object Complicate {
implicit def complicateComplex[T](implicit t: CRing[T]): Complicate[Complex[T]] = new Complicate[Complex[T]] {
override def i: Complex[T] = Complex.i
}
}
Complicate
trait, I can think of two possible structures
T
representing either a subfield of the reals, or an approximation of the reals, returns the corresponding complex type, and provides the imaginary unit
VectorSpace
for free
elist
library is out there somewhere I should be aware of?
BigInt
with https://github.com/fthomas/refined ? Natural
is kind of a weird type
ConvertableFrom
, ConvertableTo
business is not necessarily very principled. That said, using UInt
with those typeclasses is likely to lead to boxing if the JIT is not clever enough.