How are empty rows treated in sparse csc_matrix? #547
Replies: 2 comments
-
They are not filtered out internally - the solver will just take whatever csc_matrix you give it. The only constraints is that it should be in the standard format, i.e. entries within each column should appear in order of their row numbers (note most libraries / languages will provide it this way automatically). I think the solver will also still work even if you have a completely empty row, or a row with non-empty sparse entries but with values set to zero. No need to pre-filter. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick response. I will try not filtering and see if I have any issues. If I run into any issues I will post them. |
Beta Was this translation helpful? Give feedback.
-
I am leveraging OSQP for manipulator motion planning where collision constraints are defined for link pair collision objects. The application uses a contact threshold so the number of collision pairs is dynamic which results in empty rows in the csc_matrix. I plan to prune the rows out but wanted to check if this is already handled internally.
Beta Was this translation helpful? Give feedback.
All reactions