emosqp allows 0 to be specified in the length field, but that field is used to allocate the array when copying to floats. If the user gives 0, we need to fallback to the stored nz length of the array instead of using 0 (since then no memory will be allocated).
emosqp allows 0 to be specified in the length field, but that field is used to allocate the array when copying to floats. If the user gives 0, we need to fallback to the stored nz length of the array instead of using 0 (since then no memory will be allocated).
Fixes https://github.com/oxfordcontrol/osqp/issues/203.