From: Teemu I. <tpi...@pc...> - 2004-09-07 12:00:09
|
On 07/09/04 11:56, Michael Creel wrote: > Forget it please. As is predictable, the error is mine. The CVS versions will > be fixed in 10 minutes or so. Thanks for the bug reports, Teemu. Here's another one. This is with CVS version with your latest fixes: function chi2=chigl(a, x, y) f = a(1).*x.^2 + a(2); chi2 = sum( (y - f).^2); endfunction > x = linspace(-5, 5, 10); > y = -1.0 .* x.^2; > a = zeros(1,2); > [aopt, chi2min] = bfgsmin("chigl", {a, x, y, y}, {10,2,1,1}); error: invalid conversion from matrix to real column vector octave: /usr/local/include/octave-2.1.58/octave/dim-vector.h:104: int& dim_vector::dim_vector_rep::elem(int): Assertion i >= 0 && i < ndims' failed. panic: Aborted -- stopping myself... attempting to save variables to octave-core'... save to octave-core' complete Aborted When the first argument is a column vector, there's no crash. Teemu |