help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

frozen_at_z_len problems


From: Ben Sapp
Subject: frozen_at_z_len problems
Date: Fri, 25 Feb 2000 17:38:13 -0700

I am writing a file in c++ to be dynamically linked with Octave.  When
ever I run it there is a core dump and I can not figure out what it does
not like.  Before it core dumps I always see a warning like this:

idx-vector.cc:589: failed assertion `frozen_at_z_len == z_len'

I have looked at idx-vector.cc and I still am not any closer to
understanding.  

Here is the code, it always crashes on the second to last line.  
---------------------------------------------------------------
    octave_stdout << "whichBound =\n" << whichBound << "\n";
    tmp_rows = idx_vector(Range(1.0,1.0));
    octave_stdout << "tmp_rows =\n " << tmp_rows << "\n";
    octave_stdout << "tmp_cols =\n" << tmp_cols << "\n";
    Matrix temp = Matrix(whichBound);
    octave_stdout << "temp =\n" << temp << "\n";
    temp = Matrix(temp.index(tmp_rows,tmp_cols));
    octave_stdout << "temp =\n" << temp << "\n";
---------------------------------------------------------------

The variables are declared like this:
---------------------------------------------------------------
RowVector whichBound
idx_vector tmp_rows;
idx_vector tmp_cols;
---------------------------------------------------------------

The output looks like so:
---------------------------------------------------------------
whichBound =
 -0 -0 -0 0 0 0 1 1 1
tmp_rows =
 0

tmp_cols =
0
1
2
3
4
5

temp =
 -0 -0 -0 0 0 0 1 1 1

idx-vector.cc:589: failed assertion `frozen_at_z_len == z_len'
error: Abort -- stopping myself...
Abort (core dumped)
---------------------------------------------------------------

Any hints as to what the problem is would be greatly appreciated. 

Thanks.  

-- 
Ben Sapp                         Los Alamos National Laboratory
email: <mailto:address@hidden>   Phone: (505)667-3277
Fax:   (505)665-7920             URL:   http://www.neutrino.lanl.gov/
--



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

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]