Index: trunk/SophyaLib/NTools/poly.cc
===================================================================
--- trunk/SophyaLib/NTools/poly.cc	(revision 490)
+++ trunk/SophyaLib/NTools/poly.cc	(revision 508)
@@ -13,5 +13,5 @@
 //++
 // Links	Parents
-// Vector
+// OVector
 //--
 
@@ -29,5 +29,5 @@
 
 Poly::Poly(int degre)
-: Vector(degre+1), dirty(0), deg(0)
+: OVector(degre+1), dirty(0), deg(0)
 {
   END_CONSTRUCTOR
@@ -99,5 +99,5 @@
 
 //++
-int Poly::Roots(Vector& roots) const
+int Poly::Roots(OVector& roots) const
 //
 //	Retourne dans roots les racines réelles, si on sait
@@ -167,5 +167,5 @@
 {
   if (this == &a) return *this;
-  Vector::operator=(a);
+  OVector::operator=(a);
 
   UpdateDeg();
@@ -324,5 +324,5 @@
 #endif
 
-  Vector::ReadSelf(s);
+  OVector::ReadSelf(s);
 
 #ifdef DEBUG
@@ -341,5 +341,5 @@
   ((Poly*)(this))->Realloc(deg, true);
   s << deg;
-  Vector::WriteSelf(s);
+  OVector::WriteSelf(s);
 }
 
@@ -375,5 +375,5 @@
 
 //++
-double Poly::Fit(Vector const& x, Vector const& y, int degre)
+double Poly::Fit(OVector const& x, OVector const& y, int degre)
 //
 //	Ajustement polynomial par moindre carrés. Un polynôme de
@@ -387,5 +387,5 @@
   Realloc(degre);
 
-  Matrix a(degre+1, n);
+  OMatrix a(degre+1, n);
 
   for (int c=0; c<n; c++) {
@@ -397,5 +397,5 @@
   }
 
-  double rc = LinFit(a,y,(Vector&)*this);
+  double rc = LinFit(a,y,(OVector&)*this);
   UpdateDeg();
   return rc;
@@ -403,6 +403,6 @@
 
 //++
-double Poly::Fit(Vector const& x, Vector const& y, Vector const& erry2, int degre,
-                 Vector& errCoef)
+double Poly::Fit(OVector const& x, OVector const& y, OVector const& erry2, int degre,
+                 OVector& errCoef)
 //
 //	Ajustement polynomial par moindre carrés. Un polynôme de
@@ -419,5 +419,5 @@
   errCoef.Realloc(degre+1);
 
-  Matrix a(degre+1, n);
+  OMatrix a(degre+1, n);
 
   for (int c=0; c<n; c++) {
@@ -429,5 +429,5 @@
   }
 
-  double rc = LinFit(a,y,erry2,(Vector&)*this,errCoef);
+  double rc = LinFit(a,y,erry2,(OVector&)*this,errCoef);
   UpdateDeg();
   return rc;
@@ -482,5 +482,5 @@
 //++
 // Links	Parents
-// Vector
+// OVector
 //--
 
@@ -494,5 +494,5 @@
 //	Crée un polynôme de degrés partiels degreX et degreY.
 //--
-:Vector((degreX+1)*(degreY+1)), dirty(0),
+:OVector((degreX+1)*(degreY+1)), dirty(0),
  maxDegX(degreX), maxDegY(degreY), degX(0), degY(0), deg(0)
 {
@@ -506,5 +506,5 @@
 //	de deux polynômes à une variable, p2(x,y)=px(x)py(y)
 //--
-:Vector((polX.Degre()+1)*(polY.Degre()+1)), dirty(0),
+:OVector((polX.Degre()+1)*(polY.Degre()+1)), dirty(0),
  maxDegX(polX.Degre()), maxDegY(polY.Degre()),
  degX(polX.Degre()), degY(polY.Degre()), deg(degX+degY)
@@ -521,5 +521,5 @@
 //	Constructeur par copie.
 //--
-:Vector(a), dirty(a.dirty),
+:OVector(a), dirty(a.dirty),
  maxDegX(a.maxDegX), maxDegY(a.maxDegY),
  degX(a.degX), degY(a.degY), deg(a.deg)
@@ -561,5 +561,5 @@
   UpdateDegIfDirty();
   Poly2 tmp(*this);
-  Vector::Realloc((degreX+1)*(degreY+1));
+  OVector::Realloc((degreX+1)*(degreY+1));
   Zero();
   maxDegX = degreX;
@@ -631,5 +631,5 @@
 
 //++
-double Poly2::Fit(Vector const& x, Vector const& y, Vector const& z,
+double Poly2::Fit(OVector const& x, OVector const& y, OVector const& z,
                   int degreX, int degreY)
 //
@@ -643,5 +643,5 @@
   Realloc(degreX, degreY);
 
-  Matrix a((degreX+1)*(degreY+1), n);
+  OMatrix a((degreX+1)*(degreY+1), n);
 
   for (int c=0; c<n; c++) {
@@ -657,5 +657,5 @@
   }
 
-  double rc = LinFit(a,z,(Vector&)*this);
+  double rc = LinFit(a,z,(OVector&)*this);
   UpdateDeg();
   return rc;
@@ -664,7 +664,7 @@
 
 //++
-double Poly2::Fit(Vector const& x, Vector const& y, Vector const& z,
-                  Vector const& errz2, int degreX, int degreY,
-                  Vector& errCoef)
+double Poly2::Fit(OVector const& x, OVector const& y, OVector const& z,
+                  OVector const& errz2, int degreX, int degreY,
+                  OVector& errCoef)
 //
 //	Ajustement par moindre carrés z = P(x,y), degrés partiels imposés,
@@ -680,5 +680,5 @@
   errCoef.Realloc((degreX+1)*(degreY+1));
 
-  Matrix a((degreX+1)*(degreY+1), n);
+  OMatrix a((degreX+1)*(degreY+1), n);
 
   for (int c=0; c<n; c++) {
@@ -694,5 +694,5 @@
   }
 
-  double rc = LinFit(a,z,errz2,(Vector&)*this,errCoef);
+  double rc = LinFit(a,z,errz2,(OVector&)*this,errCoef);
   UpdateDeg();
   return rc;
@@ -700,5 +700,5 @@
 
 //++
-double Poly2::Fit(Vector const& x, Vector const& y, Vector const& z,
+double Poly2::Fit(OVector const& x, OVector const& y, OVector const& z,
                   int degre)
 //
@@ -712,6 +712,6 @@
   Realloc(degre, degre);   // certains vaudront 0, impose.
 
-  Matrix a((degre+1)*(degre+2)/2, n);
-  Vector cf((degre+1)*(degre+2)/2);
+  OMatrix a((degre+1)*(degre+2)/2, n);
+  OVector cf((degre+1)*(degre+2)/2);
 #define C_INDEX(i,j) ((i) + (j)*(2*degre+3-(j))/2)
 
@@ -744,7 +744,7 @@
 
 //++
-double Poly2::Fit(Vector const& x, Vector const& y, Vector const& z,
-                  Vector const& errz2, int degre,
-                  Vector& errCoef)
+double Poly2::Fit(OVector const& x, OVector const& y, OVector const& z,
+                  OVector const& errz2, int degre,
+                  OVector& errCoef)
 //
 //	Ajustement par moindre carrés z = P(x,y), degré total imposé,
@@ -761,7 +761,7 @@
 #define C_INDEX(i,j) ((i) + (j)*(2*degre+3-(j))/2)
 
-  Matrix a((degre+1)*(degre+2)/2, n);
-  Vector cf((degre+1)*(degre+2)/2);
-  Vector ecf((degre+1)*(degre+2)/2);
+  OMatrix a((degre+1)*(degre+2)/2, n);
+  OVector cf((degre+1)*(degre+2)/2);
+  OVector ecf((degre+1)*(degre+2)/2);
 
   for (int c=0; c<n; c++) {
@@ -806,5 +806,5 @@
 #endif
 
-  Vector::ReadSelf(s);
+  OVector::ReadSelf(s);
 
 #ifdef DEBUG
@@ -817,5 +817,5 @@
 {
   s << maxDegX << maxDegY;
-  Vector::WriteSelf(s);
+  OVector::WriteSelf(s);
 }
 
