fre, 29 02 2008 kl. 09:46 +0100, skrev GAIL: > sorry. I misinterpreted the warning about "matrices" (which seems to imply > 2-dimensionality). > > -------- Original Message -------- > Subject: sumskipnan(x,dim) aborts octave for inappropriate dim > Date: Fri, 29 Feb 2008 09:36:06 +0100 > From: GAIL <[EMAIL PROTECTED]> > To: octave-dev@lists.sourceforge.net > > For x = rand(3,1), octave produces the following: > > octave:> sumskipnan (x,3) > warning: SUMSKIPNAN.OCT supports only real double matrices. > > octave: /usr/local/include/octave-3.0.0/octave/dim-vector.h:112: > octave_idx_type& dim_vector::dim_vector_rep::elem(int): Assertion `i >= 0 && > i < ndims' failed. > panic: Aborted -- stopping myself... > Aborted > > Moreover, octave segfaults if sumskipnan is invoked without any arguments: > > octave:> sumskipnan > warning: SUMSKIPNAN.OCT supports only real double matrices. > > panic: Segmentation fault -- stopping myself... > Segmentation fault Can you try again with the SVN version? (you can download it from http://octave.svn.sourceforge.net/viewvc/*checkout*/octave/trunk/octave-forge/extra/NaN/src/sumskipnan.cc) I've just commited some changes that checks the input. This should remove the errors you're seeing.
Søren ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev