Changeset 805 in Sophya for trunk/SophyaLib/NTools/poly.h
- Timestamp:
- Apr 3, 2000, 7:41:08 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/poly.h
r552 r805 1 1 // This may look like C code, but it is really -*- C++ -*- 2 2 // 3 // $Id: poly.h,v 1. 4 1999-11-05 13:08:31ansari Exp $3 // $Id: poly.h,v 1.5 2000-04-03 17:41:08 ansari Exp $ 4 4 // 5 5 … … 34 34 inline void Realloc(int n, bool force=false) {Vector::Realloc(n+1,force);} 35 35 36 inline double operator[](int i) const {return Element(i);} 37 inline double& operator[](int i) {dirty = 1; return Element(i);} 36 // Pour compatibilite PEIDA - Reza 03/2000 37 inline double Element(int i) const { return Elem(i,0,0,0,0); } 38 inline double & Element(int i) { return Elem(i,0,0,0,0); } 39 40 inline double operator[](int i) const {return Elem(i,0,0,0,0);} 41 inline double& operator[](int i) {dirty = 1; return Elem(i,0,0,0,0);} 38 42 // Retourne le coefficient de degre i 39 43 … … 68 72 Poly2 operator() (Poly2 const& b) const; 69 73 70 void Print(ostream& s ) const;74 void Print(ostream& s, int_4 maxprt=-1, bool si=false) const; 71 75 72 76 double Fit(Vector const& x, Vector const& y, int degre); … … 131 135 inline int Deg() const {UpdateDegIfDirty(); return deg;} 132 136 // les degres partiels en x et y, et totaux. 137 138 // Pour compatibilite PEIDA - Reza 03/2000 139 inline double Element(int i) const { return Elem(i,0,0,0,0); } 140 inline double & Element(int i) { return Elem(i,0,0,0,0); } 133 141 134 142 double operator()(double x, double y) const; … … 183 191 void Realloc(int degreX, int degreY); 184 192 185 void Print(ostream& s ) const;193 void Print(ostream& s, int_4 maxprt=-1, bool si=false) const; 186 194 187 195 private:
Note:
See TracChangeset
for help on using the changeset viewer.