Initializes a d-dimensional zero vector.
(d: usize)
| 20 | impl SparseVector { |
| 21 | /// Initializes a d-dimensional zero vector. |
| 22 | pub fn new(d: usize) -> Self { |
| 23 | let st = Tree::default(); |
| 24 | Self { d, st } |
| 25 | } |
| 26 | |
| 27 | /// Sets the ith coordinate of this vector to the specified value. |
| 28 | pub fn put(&mut self, i: usize, v: f64) { |
nothing calls this directly
no outgoing calls
no test coverage detected