spire
spire copied to clipboard
Powerful new number types and numeric abstractions for Scala.
There is a bug with the macro inlining code. The following gives: `3` ``` object Demo extends App { val res: Int = Macros.test(1, 2) println(res) } object Macros {...
In my data structures in [intervalset](https://github.com/rklaehn/intervalset), I do not store intervals, but only boundary positions. I also do not store the typeclasses in the data structure, but require them on...
When evaluating the 'top k' spire seems to return the bottom k: For example: ``` import spire.implicits._ Seq(1,2,3).qtopk(2) // List(1, 2) ``` It seems like the correct result should be...
SecureJava has an option to pass a seed through to SecureRandom initially: ``` def fromBytes(bytes: Array[Byte]): SecureJava = new SecureJava(new SecureRandom(bytes)) ``` https://github.com/non/spire/blob/master/core/shared/src/main/scala/spire/random/rng/SecureJava.scala#L23 `new SecureRandom(seed)` is generally considered to be...
I would expect /% to work on Int, but it doesn't. If this is not meant to work in the first place, feel free to close this issue. There should...
`Jet` provides the basic machinery for forward mode AD, but the supporting apis and machinery are largely missing. It would be useful to have robust apis available for actual production...
I know this is not an easy task. But probably a rewarding one for many applications that require a high memory bandwidth. I really would like to have half-precision float...
Currently there are no discipline law properties for BitString. Adding those would make it easier for new BitString typeclass instances to be validated. I am not sure if the laws...
Trying to use the `Real` to calculate an exponential using the latest stable version (0.10.1). When I create the type no problem. Its when the `toRational` is executed, whether directly...
We rely on a ton of constants which are scattered around various companion objects. In a lot of cases this is to avoid allocating certain `BigInt` or `BigDecimal` values frequently....