snopt / snopt-matlab

Matlab interface for sparse nonlinear optimizer SNOPT
MIT License
55 stars 23 forks source link

crd2spr bug when A has only 1 row #9

Closed gnowzil closed 6 years ago

gnowzil commented 6 years ago

find(A) returns row vectors when A has only one row so the size command following won't work correctly and the number of nonzero elements in A is counted incorrectly.