Hi Rafael, I applied the change you suggest in SVN.
Best, Nir On Thu, Jul 26, 2012 at 3:35 AM, Rafael Laboissiere <raf...@laboissiere.net> wrote: > * Carnė Draug <carandraug+...@gmail.com> [2012-07-24 21:29]: > >> Nir Krakauer has just made a new release of the splines package. > > Thanks for this new release. > > When running the tests in csaps, some warnings are issued: > > octave:1> x = ([1:10 10.5 11.3])'; y = sin(x); > octave:2> csaps(x,[y 2*y],1,x)'; > warning: quotient: automatic broadcasting operation applied > warning: quotient: automatic broadcasting operation applied > warning: product: automatic broadcasting operation applied > warning: product: automatic broadcasting operation applied > > The warnings come from the following lines in csaps.m: > > dd(2:n, :) = diff(cc(2:(n+1), :)) ./ h; > bb(2:n, :) = diff(a) ./ h - (cc(2:n, :)/2).*h - (dd(2:n,:)/6).*(h.^2); > > Since the messages may be confusing for the casual user, the code could > be wrapped like this: > > warn_state = warning ("query", "Octave:broadcast").state; > warning ("off", "Octave:broadcast"); > unwind_protect > dd(2:n, :) = diff(cc(2:(n+1), :)) ./ h; > bb(2:n, :) = diff(a) ./ h - (cc(2:n, :)/2).*h - (dd(2:n, :)/6).*(h.^2); > unwind_protect_cleanup > warning (warn_state, "Octave:broadcast"); > end_unwind_protect > > Cheers, > > Rafael ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev