From 273647f86f123b0639490248c0727bca27a2959f Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 20 Feb 2003 16:34:30 +0000
Subject: [PATCH] add comment (1->N instead of 0->N-1)

---
 Numeric/gsl_newt.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Numeric/gsl_newt.cpp b/Numeric/gsl_newt.cpp
index 5c67e2cc50..934e7a88f3 100644
--- a/Numeric/gsl_newt.cpp
+++ b/Numeric/gsl_newt.cpp
@@ -1,4 +1,4 @@
-// $Id: gsl_newt.cpp,v 1.3 2003-02-20 10:05:09 remacle Exp $
+// $Id: gsl_newt.cpp,v 1.4 2003-02-20 16:34:30 geuzaine Exp $
 //
 // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
 //
@@ -65,6 +65,9 @@ int gslfunc(const gsl_vector *xx, void *params, gsl_vector *f){
   return GSL_SUCCESS;
 }
 
+// Warning: for compatibility with the old newt from NR, x[] is
+// indexed from 1 to N!
+
 void newt(double x[], int n, int *check, void (*func)(int, double [],double [])){
   const gsl_multiroot_fsolver_type *T;
   gsl_multiroot_fsolver *s;
-- 
GitLab