Inconsistent behavior in cone dimension definition (empty vs 0)
Opened this issue · 0 comments
johanlofberg commented
This works
clear all
c = randn(6,1);
G = sparse(randn(7,6));
h = randn(7,1);
dims.l = 0;
dims.q = 7;
[x,y,info,s,z] = ecos(c,G,h,dims)
This fails (seg-faults)
dims.l = [];
dims.q = 7;
This fails (out of memory)
dims.l = 7;
dims.q = 0;
This works
dims.l = 7;
dims.q = [];
Interface should support both 0 and [] to make it robust (for exponential cone also of course)