Changeset 2736
- Timestamp:
- 01/18/13 10:53:15 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/CubicSplineInterpolator1D.h
r2733 r2736 33 33 // @see Interpolator1D::setData 34 34 void setData(T *x, U *y, unsigned int n); 35 36 // Override Interpolate1D::setX. 37 // @see Interpolate1D::setX() 38 void setX(T *x, unsigned int n); 35 39 36 40 // Override Interpolator1D::setY. -
trunk/src/CubicSplineInterpolator1D.tcc
r2733 r2736 38 38 { 39 39 Interpolator1D<T, U>::setData(x, y, n); 40 reusable_ = false; 41 } 42 43 template <class T, class U> 44 void CubicSplineInterpolator1D<T, U>::setX(T *x, unsigned int n) 45 { 46 Interpolator1D<T, U>::setX(x, n); 40 47 reusable_ = false; 41 48 } … … 94 101 95 102 // Solve tridiagonal system. 96 // Here, tridiagonal matrix is decomposed to triangular matrix 97 // u stores upper triangular components while y2_ stores 98 // right-hand side vector. 103 // Here, tridiagonal matrix is decomposed to upper triangular 104 // matrix. u stores upper triangular components while y2_ stores 105 // right-hand side vector. The diagonal elements are normalized 106 // to 1. 99 107 T a1 = this->x_[1] - this->x_[0]; 100 108 T a2, bi;
Note:
See TracChangeset
for help on using the changeset viewer.