help-octave
[Top][All Lists]
Advanced

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

frozen_at_z_len problems


From: John W. Eaton
Subject: frozen_at_z_len problems
Date: Tue, 29 Feb 2000 02:00:18 -0600 (CST)

On 25-Feb-2000, Ben Sapp <address@hidden> wrote:

| 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. 

Can you explain what it is you are trying to do, or provide a complete
working example that demonstrates the problem (I can't duplicate your
problem with the incomplete information you provided).

It appears that whichBound is supposed to be a row vector, and you
want to select some elements from it.  If so, what is wrong with

  RowVector result (whichBound.index (tmp_cols));

?

jwe



-----------------------------------------------------------------------
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]