osqp / osqp-python

Python interface for OSQP
https://osqp.org/
Apache License 2.0
109 stars 41 forks source link

Preventing empty array declarations during code generation. #70

Closed maxschaller closed 2 years ago

maxschaller commented 2 years ago

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.