logo       

function cumsum aborts octave: msg#00006

gnu.octave.bugs

Subject: function cumsum aborts octave

On 4-Apr-2005, Jiří Poláček <polacek@xxxxxxxxxxxx> wrote:

| Dimension equal to the number 3 gets Octave into a trouble, see example:
| --------
| GNU Octave, version 2.1.55 (i686-suse-linux).
| Copyright (C) 2004 John W. Eaton.
| This is free software; see the source code for copying conditions.
| There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
| FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.
|
| Please contribute if you find this software useful.
| For more information, visit http://www.octave.org/help-wanted.html
|
| Report bugs to <bug-octave@xxxxxxxxxxxxxxxxx> (but first, please read
| http://www.octave.org/bugs.html to learn how to write a helpful report).
|
| octave:1> v=1:5
| v =
|
| 1 2 3 4 5
|
| octave:2>
| octave:2> cumsum(v,3)
| 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

I think this problem is fixed in later versions. 2.1.69 is the
current recommended version of Octave.

jwe



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise