Skip to content

Conversation

@maxschaller
Copy link
Contributor

In the case of linear programs, the csc matrix P is empty. Previously, amongst others, empty (zero length) index and data arrays for P were generated. Some compilers will throw an error because of this. This pull request prevents the declaration of empty arrays and specifies NULL pointers where needed.

Copy link
Contributor

@vineetbansal vineetbansal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @maxschaller - looks good. We're currently not testing the case when P is None. I'll add that as a TODO on my end (and incorporate codegen testing in our CI so we can catch these errors faster..)

@vineetbansal vineetbansal merged commit 696e1a1 into osqp:master Feb 14, 2022
@vineetbansal vineetbansal mentioned this pull request Feb 15, 2022
lb3825 pushed a commit to lb3825/osqp-python that referenced this pull request Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants