spire icon indicating copy to clipboard operation
spire copied to clipboard

Question about qtopk behavior

Open darkone23 opened this issue 9 years ago • 0 comments

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).

darkone23 avatar Feb 11 '16 19:02 darkone23