Creates a new sparse vector of the given length that is all zero values. @param length the length of the sparse vector
(int length)
| 55 | * @param length the length of the sparse vector |
| 56 | */ |
| 57 | public SparseVector(int length) |
| 58 | { |
| 59 | this(length, 10); |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Creates a new sparse vector of the same length as {@code vals} and sets |