diff liboctave/NLEqn.cc @ 1878:aa2bcaefbc5a

[project @ 1996-02-05 16:21:31 by jwe]
author jwe
date Mon, 05 Feb 1996 16:21:53 +0000
parents 2ffe49eb95a5
children 1281a23a34dd
line wrap: on
line diff
--- a/liboctave/NLEqn.cc
+++ b/liboctave/NLEqn.cc
@@ -59,18 +59,6 @@
   (*current_liboctave_error_handler) ("fatal NLEqn error: %s", msg);
 }
 
-void
-NLEqn::set_states (const ColumnVector& xvec)
-{
-  if (xvec.capacity () != n)
-    {
-      error ("dimension error");
-      return;
-    }
-
-  x = xvec;
-}
-
 // Other operations
 
 int
@@ -146,6 +134,8 @@
 {
   ColumnVector retval;
 
+  int n = x.capacity ();
+
   if (n == 0)
     {
       error ("equation set not initialized");