fitpack
Modern Fortran library for curve and surface fitting with splines
Loading...
Searching...
No Matches
fitpack_periodic_curves_c Module Reference

C interface to fitpack_curves. More...

Data Types

type  fitpack_periodic_curve_c
 Public Fortran interface. More...
 

Functions/Subroutines

subroutine, public fitpack_periodic_curve_c_get_pointer (this, fptr)
 Get pointer to embedded Fortran object.
 
subroutine, public fitpack_periodic_curve_c_pointer (this, fthis)
 Get embedded Fortran object; allocate it if not done yet.
 
subroutine, public fitpack_periodic_curve_c_allocate (this)
 Instantiate Fortran object.
 
subroutine, public fitpack_periodic_curve_c_destroy (this)
 Deallocate Fortran object.
 
subroutine, public fitpack_periodic_curve_c_copy (this, that)
 Copy contents from another object.
 
subroutine fitpack_periodic_curve_c_move_alloc (to, from)
 Move allocation from one object to another.
 
subroutine, public fitpack_periodic_curve_c_new_points (this, npts, x, y, w)
 Wrapper to new_points.
 
integer(fp_flag) function, public fitpack_periodic_curve_c_new_fit (this, npts, x, y, w, smoothing)
 Wrapper to new_fit.
 
integer(fp_flag) function, public fitpack_periodic_curve_c_fit (this, smoothing)
 Wrapper to curve_fit_automatic_knots.
 
integer(fp_flag) function, public fitpack_periodic_curve_c_interpolating (this)
 Wrapper to interpolating_curve.
 
real(fp_real) function, public fitpack_periodic_curve_c_eval_one (this, x, ierr)
 Wrapper to curve_eval_one.
 
subroutine, public fitpack_periodic_curve_c_eval_many (this, npts, x, y, ierr)
 Wrapper to curve_eval_many.
 
real(fp_real) function, public fitpack_periodic_curve_c_integral (this, from, to)
 Wrapper to integral.
 
subroutine, public fitpack_periodic_curve_c_fourier (this, nparm, alpha, a, b, ierr)
 Wrapper to fourier_coefficients.
 
real(fp_real) function, public fitpack_periodic_curve_c_derivative (this, x, order, ierr)
 Wrapper to curve_derivative.
 
integer(fp_flag) function, public fitpack_periodic_curve_c_all_derivatives (this, x, ddx)
 Wrapper to curve_all_derivatives.
 
real(fp_real) function, public fitpack_periodic_curve_c_smoothing (this)
 Get smoothing.
 
real(fp_real) function, public fitpack_periodic_curve_c_mse (this)
 Get MSE.
 
integer(fp_size) function, public fitpack_periodic_curve_c_degree (this)
 Get spline degree.
 

Variables

type(fitpack_periodic_curve_c), parameter, public fitpack_periodic_curve_c_null = fitpack_periodic_curve_c(cptr=c_null_ptr)
 Null-initialized object.
 

Detailed Description

C interface to fitpack_curves.

Author
Federico Perini feder.nosp@m.ico..nosp@m.perin.nosp@m.i@gm.nosp@m.ail.c.nosp@m.om
Since
12/09/2023

Function/Subroutine Documentation

◆ fitpack_periodic_curve_c_all_derivatives()

integer(fp_flag) function, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_all_derivatives ( type(fitpack_periodic_curve_c), intent(inout) this,
real(fp_real), intent(in), value x,
real(fp_real), dimension(*), intent(out) ddx )

Wrapper to curve_all_derivatives.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_allocate()

subroutine, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_allocate ( type(fitpack_periodic_curve_c), intent(inout) this)

Instantiate Fortran object.

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_copy()

subroutine, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_copy ( type(fitpack_periodic_curve_c), intent(inout) this,
type(fitpack_periodic_curve_c), intent(inout) that )

Copy contents from another object.

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_degree()

integer(fp_size) function, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_degree ( type(fitpack_periodic_curve_c), intent(inout) this)

Get spline degree.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_derivative()

real(fp_real) function, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_derivative ( type(fitpack_periodic_curve_c), intent(inout) this,
real(fp_real), intent(in), value x,
integer(fp_size), intent(in), value order,
integer(fp_size), intent(out), optional ierr )

Wrapper to curve_derivative.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_destroy()

subroutine, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_destroy ( type(fitpack_periodic_curve_c), intent(inout) this)

Deallocate Fortran object.

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_eval_many()

subroutine, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_eval_many ( type(fitpack_periodic_curve_c), intent(inout) this,
integer(fp_size), intent(in), value npts,
real(fp_real), dimension(npts), intent(in) x,
real(fp_real), dimension(npts), intent(out) y,
integer(fp_flag), intent(out), optional ierr )

Wrapper to curve_eval_many.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_eval_one()

real(fp_real) function, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_eval_one ( type(fitpack_periodic_curve_c), intent(inout) this,
real(fp_real), intent(in), value x,
integer(fp_flag), intent(out), optional ierr )

Wrapper to curve_eval_one.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_fit()

integer(fp_flag) function, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_fit ( type(fitpack_periodic_curve_c), intent(inout) this,
real(fp_real), intent(in), optional smoothing )

Wrapper to curve_fit_automatic_knots.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_fourier()

subroutine, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_fourier ( type(fitpack_periodic_curve_c), intent(inout) this,
integer(fp_size), intent(in), value nparm,
real(fp_real), dimension(nparm), intent(in) alpha,
real(fp_real), dimension(nparm), intent(out) a,
real(fp_real), dimension(nparm), intent(out) b,
integer(fp_flag), intent(out), optional ierr )

Wrapper to fourier_coefficients.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_get_pointer()

subroutine, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_get_pointer ( type(fitpack_periodic_curve_c), intent(in) this,
type(fitpack_periodic_curve), intent(inout), pointer fptr )

Get pointer to embedded Fortran object.

◆ fitpack_periodic_curve_c_integral()

real(fp_real) function, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_integral ( type(fitpack_periodic_curve_c), intent(inout) this,
real(fp_real), intent(in), value from,
real(fp_real), intent(in), value to )

Wrapper to integral.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_interpolating()

integer(fp_flag) function, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_interpolating ( type(fitpack_periodic_curve_c), intent(inout) this)

Wrapper to interpolating_curve.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_move_alloc()

subroutine fitpack_periodic_curves_c::fitpack_periodic_curve_c_move_alloc ( type(fitpack_periodic_curve_c), intent(inout) to,
type(fitpack_periodic_curve_c), intent(inout) from )
private

Move allocation from one object to another.

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_mse()

real(fp_real) function, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_mse ( type(fitpack_periodic_curve_c), intent(inout) this)

Get MSE.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_new_fit()

integer(fp_flag) function, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_new_fit ( type(fitpack_periodic_curve_c), intent(inout) this,
integer(fp_size), intent(in), value npts,
real(fp_real), dimension(npts), intent(in) x,
real(fp_real), dimension(npts), intent(in) y,
real(fp_real), dimension(npts), intent(in), optional w,
real(fp_real), intent(in), optional smoothing )

Wrapper to new_fit.

Local variables

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_new_points()

subroutine, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_new_points ( type(fitpack_periodic_curve_c), intent(inout) this,
integer(fp_size), intent(in), value npts,
real(fp_real), dimension(npts), intent(in) x,
real(fp_real), dimension(npts), intent(in) y,
real(fp_real), dimension(npts), intent(in), optional w )

Wrapper to new_points.

Local variables

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_pointer()

subroutine, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_pointer ( type(fitpack_periodic_curve_c), intent(inout) this,
type(fitpack_periodic_curve), intent(inout), pointer fthis )

Get embedded Fortran object; allocate it if not done yet.

Here is the call graph for this function:

◆ fitpack_periodic_curve_c_smoothing()

real(fp_real) function, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_smoothing ( type(fitpack_periodic_curve_c), intent(inout) this)

Get smoothing.

Get object; allocate it in case

Here is the call graph for this function:

Variable Documentation

◆ fitpack_periodic_curve_c_null

type(fitpack_periodic_curve_c), parameter, public fitpack_periodic_curves_c::fitpack_periodic_curve_c_null = fitpack_periodic_curve_c(cptr=c_null_ptr)

Null-initialized object.