Thanks for the doc patch, now applied. I think you are right about needing workspace (or destroying the input array) to get the k-th largest. Brian