Mercurial > hg > octave-terminal
changeset 3045:d2046ca9a380
[project @ 1997-06-06 22:08:11 by jwe]
author | jwe |
---|---|
date | Fri, 06 Jun 1997 22:08:11 +0000 |
parents | 8ec2d00e20e5 |
children | 639808eda8eb |
files | examples/hello.cc scripts/general/perror.m scripts/general/strerror.m |
diffstat | 3 files changed, 7 insertions(+), 65 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/hello.cc +++ b/examples/hello.cc @@ -32,13 +32,13 @@ // of the Octave distribution that use the macro DEFUN_DLD_BUILTIN. // Currently, this includes the files // -// balance.cc fft.cc hess.cc lu.cc schur.cc -// chol.cc fft2.cc ifft.cc minmax.cc sort.cc -// colloc.cc filter.cc ifft2.cc pinv.cc svd.cc -// dassl.cc find.cc inv.cc qr.cc syl.cc -// det.cc fsolve.cc log.cc quad.cc -// eig.cc fsqp.cc lsode.cc qzval.cc -// expm.cc givens.cc lu.cc rand.cc +// balance.cc fft.cc ifft.cc minmax.cc sort.cc +// chol.cc fft2.cc ifft2.cc pinv.cc svd.cc +// colloc.cc filter.cc inv.cc qr.cc syl.cc +// dassl.cc find.cc log.cc quad.cc +// det.cc fsolve.cc lsode.cc qzval.cc +// eig.cc givens.cc lu.cc rand.cc +// expm.cc hess.cc minmax.cc schur.cc // // The difference between DEFUN_DLD and DEFUN_DLD_BUILTIN is that // DEFUN_DLD_BUILTIN can define a built-in function that is not
--- a/scripts/general/perror.m +++ b/scripts/general/perror.m @@ -21,11 +21,6 @@ ## ## Print an error message for error number `err' from function "name". ## -## Messages correspond to the following subroutine versions: -## -## npsol : 4.0 -## qpsol : 3.2 -## ## See also: strerror ## Author: jwe
--- a/scripts/general/strerror.m +++ b/scripts/general/strerror.m @@ -21,11 +21,6 @@ ## ## Return the text of an error message for error number `err' from ## function "name". -## -## Messages correspond to the following subroutine versions: -## -## npsol : 4.0 -## qpsol : 3.2 ## Author: jwe @@ -59,54 +54,6 @@ error ("strerror: unrecognized error code for fsolve"); endif - elseif (strcmp (name, "npsol")) - - if (err == 0) - msg = "optimal solution found\n"; - elseif (err == 1) - msg = "weak local solution found\n"; - elseif (err == 2) - msg = "no feasible point for linear constraints and bounds\n"; - elseif (err == 3) - msg = "no feasible point found for nonlinear constraints\n"; - elseif (err == 4) - msg = "iteration limit reached\n"; - elseif (err == 6) - msg = "current point cannot be improved upon\n"; - elseif (err == 7) - msg = "user-supplied derivatives appear to be incorrect\n"; - elseif (err == 9) - msg = "internal error: invalid input parameter\n"; - else - error ("strerror: unrecognized error code for npsol"); - endif - - elseif (strcmp (name, "qpsol")) - - if (err == 0) - msg = "optimal solution found\n"; - elseif (err == 1) - msg = "weak local solution found\n"; - elseif (err == 2) - msg = "solution appears to be unbounded\n"; - elseif (err == 3) - msg = "solution appears optimal, but optimality can't be verified\n"; - elseif (err == 4) - msg = "iterates of the QP phase appear to be cycling\n"; - elseif (err == 5) - msg = "iteration limit reached during QP phase\n"; - elseif (err == 6) - msg = "no feasible point found during LP phase\n"; - elseif (err == 7) - msg = "iterates of the LP phase appear to be cycling\n"; - elseif (err == 8) - msg = "iteration limit reached during LP phase\n"; - elseif (err == 9) - msg = "internal error: invalid input parameter\n"; - else - error ("strerror: unrecognized error code for qpsol"); - endif - else error ("strerror: unrecognized function name");