|
| | fpGridSpline () |
| | Default constructor - allocates new fitpack_gridded_spline.
|
| |
| | ~fpGridSpline () override |
| | Destructor - deallocates if owned.
|
| |
| | fpGridSpline (const fpGridSpline &other) |
| | Copy constructor - deep copy.
|
| |
| fpGridSpline & | operator= (const fpGridSpline &other) |
| | Copy assignment - deep copy.
|
| |
| | fpGridSpline (fpGridSpline &&other) noexcept |
| | Move constructor - transfer ownership.
|
| |
| fpGridSpline & | operator= (fpGridSpline &&other) noexcept |
| | Move assignment - transfer ownership.
|
| |
| | fpGridSpline (fitpack_gridded_spline_c &c_wrapper, bool move=false) |
| | Construct from existing C wrapper (takes ownership if move=true)
|
| |
| | fpGridSpline (fitpack_gridded_spline_c &c_wrapper, ViewTag) |
| | Non-owning view ctor: bit-copy the C handle, mark is_pointer=true. Used by parent classes' polymorphic accessors to wrap a base-class handle as the correct concrete subtype.
|
| |
| bool | is_allocated () const override |
| | Check if object is allocated.
|
| |
| bool | is_pointer () const override |
| | Check if this is a non-owning pointer.
|
| |
| const char * | c_type_name () const override |
| | Return the C wrapper struct name for this class (e.g. "fitpack_gridded_spline_c").
|
| |
| const char * | cpp_type_name () const override |
| | Return the fully-qualified C++ class name for this class. Owned by the C++ layer — does not round-trip through Fortran.
|
| |
| fitpack_gridded_spline_c & | c_handle () |
| | Get underlying C wrapper (for interop)
|
| |
| const fitpack_gridded_spline_c & | c_handle () const |
| | Get underlying C wrapper (const, for interop)
|
| |
| fpFitter & | as_parent () |
| | Upcast to parent type (reference, no copy)
|
| |
| const fpFitter & | as_parent () const |
| |
| virtual void | new_points (int32_t n, int32_t xg_n1, int32_t xg_n2, std::vector< double > &xg, std::vector< double > &z, int32_t *m=nullptr, bool *row_major=nullptr, int32_t *order=nullptr) |
| | new_points
|
| |
| virtual int32_t | new_fit (int32_t n, int32_t xg_n1, int32_t xg_n2, std::vector< double > &xg, std::vector< double > &z, int32_t *m=nullptr, bool *row_major=nullptr, int32_t *order=nullptr, double *smoothing=nullptr) |
| | new_fit
|
| |
| virtual int32_t | fit (double *smoothing=nullptr, int32_t *order=nullptr) |
| |
| virtual int32_t | least_squares (double *smoothing=nullptr, bool *reset_knots=nullptr) |
| |
| virtual int32_t | interpolate () |
| |
| virtual std::vector< double > | eval_ongrid (int32_t xg_n1, int32_t xg_n2, std::vector< double > &xg, std::vector< int32_t > &m, int32_t n_result, int32_t *ierr=nullptr) |
| | eval_ongrid
|
| |
| virtual double | eval (std::vector< double > &x, int32_t *ierr=nullptr) const |
| | eval
|
| |
| virtual std::vector< double > | eval (int32_t xp_n1, int32_t xp_n2, std::vector< double > &xp, int32_t *ierr=nullptr) |
| | eval
|
| |
| virtual std::vector< double > | dfdx_ongrid (int32_t xg_n1, int32_t xg_n2, std::vector< double > &xg, std::vector< int32_t > &m, std::vector< int32_t > &nu, int32_t n_result, int32_t *ierr=nullptr) |
| | dfdx_ongrid
|
| |
| virtual double | dfdx (std::vector< double > &x, std::vector< int32_t > &nu, int32_t *ierr=nullptr) |
| | dfdx
|
| |
| virtual std::vector< double > | dfdx (int32_t xp_n1, int32_t xp_n2, std::vector< double > &xp, std::vector< int32_t > &nu, int32_t *ierr=nullptr) |
| | dfdx
|
| |
| virtual double | integral (std::vector< double > &lower, std::vector< double > &upper) const |
| | integral
|
| |
| virtual fpGridSpline | cross_section (int32_t ax, double u, int32_t *ierr=nullptr) |
| |
| virtual fpGridSpline | derivative_spline (std::vector< int32_t > &nu, int32_t *ierr=nullptr) |
| | derivative_spline
|
| |
| int32_t | comm_size () const override |
| |
| void | comm_pack (std::vector< double > &buffer) const override |
| | comm_pack
|
| |
| void | comm_expand (std::vector< double > &buffer) override |
| | comm_expand
|
| |
| double | mse () const override |
| |
| int32_t | core_comm_size () const override |
| |
| void | core_comm_pack (std::vector< double > &buffer) const override |
| | core_comm_pack
|
| |
| void | core_comm_expand (std::vector< double > &buffer) override |
| | core_comm_expand
|
| |
| void | destroy_base () override |
| |
| std::vector< double > | t_vector () const |
| | Deep copy of component 't' as a std::vector.
|
| |
| std::array< int64_t, 2 > | t_shape () const |
| | Extents of component 't', leading dimension first.
|
| |
| fxArray< double > | t () const |
| | Zero-copy fxArray view of component 't'.
|
| |
| std::vector< double > | xg_vector () const |
| | Deep copy of component 'xg' as a std::vector.
|
| |
| std::array< int64_t, 2 > | xg_shape () const |
| | Extents of component 'xg', leading dimension first.
|
| |
| fxArray< double > | xg () const |
| | Zero-copy fxArray view of component 'xg'.
|
| |
| std::vector< double > | z_vector () const |
| | Deep copy of component 'z' as a std::vector.
|
| |
| fxArray< double > | z () const |
| | Zero-copy fxArray view of component 'z'.
|
| |
| int32_t & | dims () |
| |
| const int32_t & | dims () const |
| |
| template<FP_SIZE dim> |
| FP_REAL | eval (const fpPoint< dim > &x, FP_FLAG *ierr=nullptr) const |
| | Evaluate the spline at one scattered point.
|
| |
| template<FP_SIZE dim> |
| std::vector< FP_REAL > | eval (const std::vector< fpPoint< dim > > &xp, FP_FLAG *ierr=nullptr) |
| | Evaluate the spline at every scattered point.
|
| |
| template<FP_SIZE dim> |
| FP_REAL | dfdx (const fpPoint< dim > &x, const std::vector< FP_SIZE > &nu, FP_FLAG *ierr=nullptr) |
| | Partial derivative of orders nu(1..dim) at one scattered point.
|
| |
| template<FP_SIZE dim> |
| std::vector< FP_REAL > | dfdx (const std::vector< fpPoint< dim > > &xp, const std::vector< FP_SIZE > &nu, FP_FLAG *ierr=nullptr) |
| | Partial derivative of orders nu(1..dim) at every scattered point.
|
| |
| template<FP_SIZE dim> |
| FP_REAL | integral (const fpPoint< dim > &lower, const fpPoint< dim > &upper) const |
| | Integral of the spline over the box [lower, upper].
|
| |
| virtual | ~fpFitter ()=default |
| |
| const char * | fortran_type_name () const |
| | Return the dynamic Fortran type name of the underlying object.
|
| |
| fitpack_fitter_c & | c_handle () |
| | Get underlying C wrapper (for interop)
|
| |
| const fitpack_fitter_c & | c_handle () const |
| | Get underlying C wrapper (const, for interop)
|
| |
| std::vector< double > | c_vector () const |
| | Deep copy of component 'c' as a std::vector.
|
| |
| fxArray< double > | c () const |
| | Zero-copy fxArray view of component 'c'.
|
| |
| std::vector< double > | wrk_vector () const |
| | Deep copy of component 'wrk' as a std::vector.
|
| |
| fxArray< double > | wrk () const |
| | Zero-copy fxArray view of component 'wrk'.
|
| |
| std::vector< int32_t > | iwrk_vector () const |
| | Deep copy of component 'iwrk' as a std::vector.
|
| |
| fxArray< int32_t > | iwrk () const |
| | Zero-copy fxArray view of component 'iwrk'.
|
| |
| int32_t & | iopt () |
| |
| const int32_t & | iopt () const |
| |
| double & | smoothing () |
| |
| const double & | smoothing () const |
| |
| double & | fp () |
| |
| const double & | fp () const |
| |
| int32_t & | lwrk () |
| |
| const int32_t & | lwrk () const |
| |
| int32_t & | liwrk () |
| |
| const int32_t & | liwrk () const |
| |
Standalone C++ RAII wrapper for Fortran fitpack_gridded_spline.
This class provides automatic memory management (RAII) and a natural C++ API for the underlying Fortran fitpack_gridded_spline, without requiring the fortran-arrays library. Array arguments use std::vector<T> for standalone operation. Extends fpFitter (Fortran: extends(fitpack_fitter))