[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error messages
From: |
John Eaton |
Subject: |
Error messages |
Date: |
Tue, 3 Oct 1995 17:38:00 -0500 |
address@hidden <address@hidden> wrote:
: I can't make sense of the following error messages I am getting from
: octave. All of "lb1, lb2, ub1, ub2, x0" are 7 x 1 column vectors
: and a is a 7 x 7 square matrix.
:
: octave:1> test2
:
: error: invalid conversion from real matrix to string
: error: npsol: bounds for linear constraints must be vectors
: error: evaluating index expression near line 24, column 27
: error: evaluating assignment expression near line 24, column 25
Please try the following patch. I think it should fix your problem.
Thanks,
jwe
Tue Oct 3 05:30:24 1995 John Eaton <address@hidden>
* variables.cc (is_valid_function): Avoid setting error_state if
argument is not a string and warn is 0.
*** src/variables.cc~ Fri Feb 17 09:31:07 1995
--- src/variables.cc Tue Oct 3 17:33:16 1995
***************
*** 134,142 ****
{
tree_fvc *ans = 0;
! char *fcn_name = arg.string_value ();
! if (error_state)
{
if (warn)
error ("%s: expecting function name as argument", warn_for);
--- 134,144 ----
{
tree_fvc *ans = 0;
! char *fcn_name = 0;
! if (arg.is_string ())
! fcn_name = arg.string_value ();
! if (! fcn_name || error_state)
{
if (warn)
error ("%s: expecting function name as argument", warn_for);