Changeset 2736 for trunk


Ignore:
Timestamp:
01/18/13 10:53:15 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-4770

Ready for Test: Yes

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Bug fix on reusable_ attribute.


Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/CubicSplineInterpolator1D.h

    r2733 r2736  
    3333  // @see Interpolator1D::setData
    3434  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);
    3539
    3640  // Override Interpolator1D::setY.
  • trunk/src/CubicSplineInterpolator1D.tcc

    r2733 r2736  
    3838{
    3939  Interpolator1D<T, U>::setData(x, y, n);
     40  reusable_ = false;
     41}
     42
     43template <class T, class U>
     44void CubicSplineInterpolator1D<T, U>::setX(T *x, unsigned int n)
     45{
     46  Interpolator1D<T, U>::setX(x, n);
    4047  reusable_ = false;
    4148}
     
    94101
    95102  // 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.
    99107  T a1 = this->x_[1] - this->x_[0];
    100108  T a2, bi;
Note: See TracChangeset for help on using the changeset viewer.