On Fri, Oct 28, 2011 at 03:16:19PM +0200, Horst Hardelauf wrote: > Dear developers, > > because of a system upgrade I'm now working with optim-1.0.16 instead of 1.0.6 > before. Now my program doesn't work any more and I get the following errors: > > error: two-arg min expecting args of same size > error: called from: > error: /usr/share/octave/packages/3.2/optim-1.0.16/__dfdp__.m at line 99, > column 13 > error: /usr/share/octave/packages/3.2/optim-1.0.16/dfdp.m at line 70, column > 7 > error: at line -1, column -1 > error: /usr/share/octave/packages/3.2/optim-1.0.16/__lm_svd__.m at line 176, > column 9 > error: /usr/share/octave/packages/3.2/optim-1.0.16/leasqr.m at line 583, > column 26 > > > I'm using leasqr and I get the error only when I fit only 1 parameter, 2 > parameters work. I think I found the error (see the patch). The problem is, > that in these expressions: > > p1(idx1g2w) = max (p(idx1g2w) - absdel(idx1g2w), lbound(idx1g2w, 1)); > > the size differs because for some variables (lbound and ubound) two dimensions > are used, for the others only one. The result is that I have expressions like: > > [](0x0) and [](0x1), that don't agree in size. > > > -- > With kind regards! > Horst Hardelauf
Sorry for responding so late. You are right (except that its better to use 2 indices throughout to avoid empty index problems). But the problem was already fixed in SVN, there was just no new package distributed yet. You have conviced me that its time to make one. Olaf ------------------------------------------------------------------------------ RSA® Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev