Commit c117e10
committed
Fixes NormalizeDuplicates (for sparse COO)
When values are removed, `RowPointers` is modified so that the start of the next row is pointing to the correct element. Howevever, since we are doing things in-place, when we start reading the next row we sart from the modified location instead of the original location. To fix this, `index` is set to the end of the original (unmodified) row instead of reading directly from `RowPointers`.
The logic of the internal `while` loop is also simplified.1 parent 640c125 commit c117e10
1 file changed
Lines changed: 6 additions & 12 deletions
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
305 | 306 | | |
306 | 307 | | |
307 | | - | |
308 | | - | |
| 308 | + | |
| 309 | + | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
314 | | - | |
| 315 | + | |
315 | 316 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
| 317 | + | |
| 318 | + | |
325 | 319 | | |
326 | 320 | | |
327 | 321 | | |
| |||
0 commit comments