Mercurial > hg > octave-jordi
diff src/npsol.cc @ 506:0f388340e607
[project @ 1994-07-09 06:10:34 by jwe]
author | jwe |
---|---|
date | Sat, 09 Jul 1994 06:10:34 +0000 |
parents | 88614b380d6e |
children | 309fc59f66ee |
line wrap: on
line diff
--- a/src/npsol.cc +++ b/src/npsol.cc @@ -46,15 +46,15 @@ #ifdef WITH_DLD Octave_object -builtin_npsol_2 (const Octave_object& args, int nargin, int nargout) +builtin_npsol_2 (const Octave_object& args, int nargout) { - return npsol (args, nargin, nargout); + return npsol (args, nargout); } Octave_object -builtin_npsol_options_2 (const Octave_object& args, int nargin, int nargout) +builtin_npsol_options_2 (const Octave_object& args, int nargout) { - return npsol_options (args, nargin, nargout); + return npsol_options (args, nargout); } #endif @@ -90,7 +90,7 @@ tree_constant objective_value; if (npsol_objective != (tree_fvc *) NULL) { - Octave_object tmp = npsol_objective->eval (0, 1, args, 2); + Octave_object tmp = npsol_objective->eval (0, 1, args); if (error_state) { @@ -163,7 +163,7 @@ if (npsol_constraints != (tree_fvc *)NULL) { - Octave_object tmp = npsol_constraints->eval (0, 1, args, 2); + Octave_object tmp = npsol_constraints->eval (0, 1, args); if (error_state) { @@ -246,7 +246,7 @@ } Octave_object -npsol (const Octave_object& args, int nargin, int nargout) +npsol (const Octave_object& args, int nargout) { /* @@ -267,6 +267,8 @@ Octave_object retval; + int nargin = args.length (); + ColumnVector x = args(1).to_vector (); if (x.capacity () == 0) @@ -696,10 +698,12 @@ } Octave_object -npsol_options (const Octave_object& args, int nargin, int nargout) +npsol_options (const Octave_object& args, int nargout) { Octave_object retval; + int nargin = args.length (); + if (nargin == 1) { print_npsol_option_list ();