Applies this index table to the specified target, putting target into the same ordering as this IndexTable. @throws RuntimeException if the length of the target array is not the same as the index table
(double[] target)
| 277 | * @throws RuntimeException if the length of the target array is not the same as the index table |
| 278 | */ |
| 279 | public void apply(double[] target) |
| 280 | { |
| 281 | //use DoubleList view b/d we are only using set ops, so we wont run into an issue of re-allocating the array |
| 282 | apply(DoubleList.view(target, target.length), new DoubleList(target.length)); |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * Applies this index table to the specified target, putting {@code target} |