(int[] ints)
| 517 | } |
| 518 | |
| 519 | private static double[] intsToDoubles(int[] ints) { |
| 520 | int len = ints.length; |
| 521 | double[] doubles = new double[len]; |
| 522 | for (int i = 0; i < len; i++) { |
| 523 | doubles[i] = ints[i]; |
| 524 | } |
| 525 | return doubles; |
| 526 | } |
| 527 | |
| 528 | /** |
| 529 | * Performs an in-place selection to find the element which would appear at a given index in a |