lagrange-interp.hpp 551 B

1234567891011121314151617181920212223
  1. #ifndef _SCTL_LAGRANGE_INTERP_HPP_
  2. #define _SCTL_LAGRANGE_INTERP_HPP_
  3. #include <sctl/common.hpp>
  4. namespace SCTL_NAMESPACE {
  5. template <class ValueType> class Vector;
  6. template <class Real> class LagrangeInterp {
  7. public:
  8. static void Interpolate(Vector<Real>& wts, const Vector<Real>& src_nds, const Vector<Real>& trg_nds);
  9. static void Derivative(Vector<Real>& df, const Vector<Real>& f, const Vector<Real>& nds);
  10. static void test();
  11. };
  12. }
  13. #include SCTL_INCLUDE(lagrange-interp.txx)
  14. #endif //_SCTL_LAGRANGE_INTERP_HPP_