Changeset 2736 for trunk/src/CubicSplineInterpolator1D.tcc
- Timestamp:
- 01/18/13 10:53:15 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.