()
| 761 | } |
| 762 | |
| 763 | @Override |
| 764 | public SparseVector clone() |
| 765 | { |
| 766 | SparseVector copy = new SparseVector(length, Math.max(used, 10)); |
| 767 | |
| 768 | System.arraycopy(this.values, 0, copy.values, 0, this.used); |
| 769 | System.arraycopy(this.indexes, 0, copy.indexes, 0, this.used); |
| 770 | copy.used = this.used; |
| 771 | |
| 772 | return copy; |
| 773 | } |
| 774 | |
| 775 | @Override |
| 776 | public void normalize() |