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

Comparing branches/development/src/math/CubicSpline.cpp (file contents):
Revision 1475 by gezelter, Wed Jul 21 17:51:22 2010 UTC vs.
Revision 1479 by gezelter, Mon Jul 26 19:00:48 2010 UTC

# Line 86 | Line 86 | void CubicSpline::generate() {
86    // make sure the sizes match
87    
88    n = data.size();  
89  x.resize(n);
90  y.resize(n);
89    b.resize(n);
90    c.resize(n);
91    d.resize(n);
# Line 104 | Line 102 | void CubicSpline::generate() {
102    
103    if (!sorted) sort(data.begin(), data.end());  
104    
107  // Copy spline data out to separate arrays:
108  
109  for (int i = 0; i < n; i++) {
110    x[i] = data[i].first;
111    y[i] = data[i].second;
112  }
113  
105    // Calculate coefficients for the tridiagonal system: store
106    // sub-diagonal in B, diagonal in D, difference quotient in C.  
107    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines