Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/ExecutionEngine/SparseTensor/COO.h | ||
---|---|---|
68 | nit: isSorted(true), also moved to L74 as initializer? technically, when we start empty, we are sorted, this would also play nicer with the TODO below, where only the first out of order "add" invalides the flag | |
69 | maybe move these to also to constructor as initializer? |
Comment Actions
Finished TODO: the add method only invalidates the isSorted bit if the new element is not strictly-greater than the previously final element.
Comment Actions
Very neat! This will avoid the sort step in many cases where the external format already appears in the right order.
nit: isSorted(true), also moved to L74 as initializer? technically, when we start empty, we are sorted, this would also play nicer with the TODO below, where only the first out of order "add" invalides the flag