ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/math/Polynomial.hpp
(Generate patch)

Comparing trunk/src/math/Polynomial.hpp (file contents):
Revision 876 by tim, Mon Jan 30 22:25:27 2006 UTC vs.
Revision 963 by tim, Wed May 17 21:51:42 2006 UTC

# Line 53 | Line 53
53   #include <list>
54   #include <map>
55   #include <utility>
56 <
56 > #include "config.h"
57   namespace oopse {
58  
59    template<typename ElemType> ElemType pow(ElemType x, int N) {
# Line 204 | Line 204 | namespace oopse {
204          for (i =  p.begin(); i  != p.end(); ++i) {
205            this->addCoefficient(i->first, -i->second);
206          }        
207 +        return *this;
208      }
209  
210      PolynomialType& operator *= (const PolynomialType& p) {
# Line 310 | Line 311 | namespace oopse {
311  
312    /**
313     * Tests if two polynomial have the same exponents
314 <   * @return true if these all of the exponents in these Polynomial are identical
314 >   * @return true if all of the exponents in these Polynomial are identical
315     * @param p1 the first polynomial
316     * @param p2 the second polynomial
317     * @note this function does not compare the coefficient
# Line 334 | Line 335 | namespace oopse {
335      return true;
336    }
337  
338 <  typedef Polynomial<double> DoublePolynomial;
338 >  typedef Polynomial<RealType> DoublePolynomial;
339  
340   } //end namespace oopse
341   #endif //MATH_POLYNOMIAL_HPP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines