spire
spire copied to clipboard
Question about qtopk behavior
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 List(3, 2) or List(2, 3).