Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:19:19

0001 // -*- C++ -*-
0002 //
0003 // This file is part of LHAPDF
0004 // Copyright (C) 2012-2024 The LHAPDF collaboration (see AUTHORS for details)
0005 //
0006 #pragma once
0007 #ifndef LHAPDF_BicubicInterpolator_H
0008 #define LHAPDF_BicubicInterpolator_H
0009 
0010 #include "LHAPDF/Interpolator.h"
0011 
0012 namespace LHAPDF {
0013 
0014 
0015   /// @brief Implementation of bicubic interpolation
0016   ///
0017   /// This class will interpolate in 2D using a bicubic hermite spline.
0018   class BicubicInterpolator : public Interpolator {
0019   public:
0020     BicubicInterpolator(){ setType("cubic"); }
0021     double _interpolateXQ2(const KnotArray& subgrid, double x, size_t ix, double q2, size_t iq2, int id) const;
0022     void _interpolateXQ2(const KnotArray& subgrid, double x, size_t ix, double q2, size_t iq2, std::vector<double>& ret) const;
0023   };
0024 
0025 
0026 }
0027 #endif