Creates a new array that contains all the values of this vector in the appropriate indices @return a new array that is a copy of this vector
()
| 990 | * @return a new array that is a copy of this vector |
| 991 | */ |
| 992 | public double[] arrayCopy() |
| 993 | { |
| 994 | double[] array = new double[length()]; |
| 995 | for(IndexValue iv : this) |
| 996 | array[iv.getIndex()] = iv.getValue(); |
| 997 | return array; |
| 998 | } |
| 999 | |
| 1000 | @Override |
| 1001 | public Iterator<IndexValue> iterator() |