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

C interface to fitpack_constrained_curves. More...

Data Types

type  fitpack_constrained_curve_c
 Public Fortran interface. More...
 

Functions/Subroutines

subroutine, public fitpack_constrained_curve_c_get_pointer (this, fptr)
 Get pointer to embedded Fortran object.
 
subroutine, public fitpack_constrained_curve_c_pointer (this, fthis)
 Get embedded Fortran object; allocate it if not done yet.
 
subroutine, public fitpack_constrained_curve_c_allocate (this)
 Instantiate Fortran object.
 
subroutine, public fitpack_constrained_curve_c_destroy (this)
 Deallocate Fortran object.
 
subroutine, public fitpack_constrained_curve_c_copy (this, that)
 Copy contents from another object.
 
subroutine, public fitpack_constrained_curve_c_move_alloc (to, from)
 Move allocation from one object to another.
 
subroutine, public fitpack_constrained_curve_c_new_points (this, ndim, npts, x, y, w)
 Wrapper to new_points.
 
subroutine, public fitpack_constrained_curve_c_set_default_parameters (this)
 
integer(fp_flag) function, public fitpack_constrained_curve_c_new_fit (this, ndim, npts, x, u, w, smoothing, order)
 Wrapper to new_fit.
 
integer(fp_flag) function, public fitpack_constrained_curve_c_fit (this, smoothing, order)
 Wrapper to curve_fit_automatic_knots.
 
integer(fp_flag) function, public fitpack_constrained_curve_c_interpolating (this)
 Wrapper to interpolating_curve.
 
integer(fp_flag) function, public fitpack_constrained_curve_c_eval_one (this, u, y)
 Wrapper to curve_eval_one.
 
integer(fp_flag) function, public fitpack_constrained_curve_c_derivative (this, u, order, ddx)
 Evaluate k-th derivative of the curve at point u.
 
real(fp_real) function, public fitpack_constrained_curve_c_smoothing (this)
 Get smoothing.
 
integer(fp_size) function, public fitpack_constrained_curve_c_idim (this)
 Get dimensions.
 
real(fp_real) function, public fitpack_constrained_curve_c_ubegin (this)
 Get begin endpoint.
 
real(fp_real) function, public fitpack_constrained_curve_c_uend (this)
 Get end endpoint.
 
real(fp_real) function, public fitpack_constrained_curve_c_mse (this)
 Get MSE.
 
integer(fp_size) function, public fitpack_constrained_curve_c_degree (this)
 Get spline degree.
 
subroutine fitpack_constrained_curve_c_clean_constraints (this)
 Reset constraints.
 
integer(fp_flag) function fitpack_constrained_curve_c_set_constraints (this, nbegin, nend, ddx_begin, ddx_end)
 Set constraints and reset all previous ones: a missing "ddx_end" means: no endpoint constraints Begin/end point constraints: (1:idim,0)=function; (1:idim,i)=i-th derivative.
 

Variables

type(fitpack_constrained_curve_c), parameter, public fitpack_constrained_curve_c_null = fitpack_constrained_curve_c(cptr=c_null_ptr)
 Null-initialized object.
 

Detailed Description

C interface to fitpack_constrained_curves.

Author
Federico Perini feder.nosp@m.ico..nosp@m.perin.nosp@m.i@gm.nosp@m.ail.c.nosp@m.om
Since
01/07/2024

Function/Subroutine Documentation

◆ fitpack_constrained_curve_c_allocate()

subroutine, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_allocate ( type(fitpack_constrained_curve_c), intent(inout) this)

Instantiate Fortran object.

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_clean_constraints()

subroutine fitpack_constrained_curves_c::fitpack_constrained_curve_c_clean_constraints ( type(fitpack_constrained_curve_c), intent(inout) this)
private

Reset constraints.

Get object

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_copy()

subroutine, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_copy ( type(fitpack_constrained_curve_c), intent(inout) this,
type(fitpack_constrained_curve_c), intent(inout) that )

Copy contents from another object.

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_degree()

integer(fp_size) function, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_degree ( type(fitpack_constrained_curve_c), intent(inout) this)

Get spline degree.

Get object

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_derivative()

integer(fp_flag) function, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_derivative ( type(fitpack_constrained_curve_c), intent(inout) this,
real (fp_real), intent(in), value u,
integer(fp_size), intent(in), value order,
real (fp_real), dimension(*), intent(out) ddx )

Evaluate k-th derivative of the curve at point u.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_destroy()

subroutine, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_destroy ( type(fitpack_constrained_curve_c), intent(inout) this)

Deallocate Fortran object.

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_eval_one()

integer(fp_flag) function, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_eval_one ( type(fitpack_constrained_curve_c), intent(inout) this,
real(fp_real), intent(in), value u,
real(fp_real), dimension(*), intent(out) y )

Wrapper to curve_eval_one.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_fit()

integer(fp_flag) function, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_fit ( type(fitpack_constrained_curve_c), intent(inout) this,
real (fp_real), intent(in), optional smoothing,
integer(fp_size), intent(in), optional order )

Wrapper to curve_fit_automatic_knots.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_get_pointer()

subroutine, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_get_pointer ( type(fitpack_constrained_curve_c), intent(in) this,
type(fitpack_constrained_curve), intent(inout), pointer fptr )

Get pointer to embedded Fortran object.

◆ fitpack_constrained_curve_c_idim()

integer(fp_size) function, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_idim ( type(fitpack_constrained_curve_c), intent(inout) this)

Get dimensions.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_interpolating()

integer(fp_flag) function, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_interpolating ( type(fitpack_constrained_curve_c), intent(inout) this)

Wrapper to interpolating_curve.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_move_alloc()

subroutine, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_move_alloc ( type(fitpack_constrained_curve_c), intent(inout) to,
type(fitpack_constrained_curve_c), intent(inout) from )

Move allocation from one object to another.

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_mse()

real(fp_real) function, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_mse ( type(fitpack_constrained_curve_c), intent(inout) this)

Get MSE.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_new_fit()

integer(fp_flag) function, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_new_fit ( type(fitpack_constrained_curve_c), intent(inout) this,
integer(fp_size), intent(in), value ndim,
integer(fp_size), intent(in), value npts,
real (fp_real), dimension(ndim,npts), intent(in) x,
real (fp_real), dimension(npts), intent(in), optional u,
real (fp_real), dimension(npts), intent(in), optional w,
real (fp_real), intent(in), optional smoothing,
integer(fp_size), intent(in), optional order )

Wrapper to new_fit.

Local variables

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_new_points()

subroutine, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_new_points ( type(fitpack_constrained_curve_c), intent(inout) this,
integer(fp_size), intent(in), value ndim,
integer(fp_size), intent(in), value npts,
real(fp_real), dimension(ndim,npts), intent(in) x,
real(fp_real), dimension(ndim,npts), intent(in) y,
real(fp_real), dimension(ndim,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_constrained_curve_c_pointer()

subroutine, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_pointer ( type(fitpack_constrained_curve_c), intent(inout) this,
type(fitpack_constrained_curve), intent(inout), pointer fthis )

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

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_set_constraints()

integer(fp_flag) function fitpack_constrained_curves_c::fitpack_constrained_curve_c_set_constraints ( type(fitpack_constrained_curve_c), intent(inout) this,
integer(fp_size), intent(in), value nbegin,
integer(fp_size), intent(in), value nend,
real(fp_real), dimension(*), intent(in), optional ddx_begin,
real(fp_real), dimension (*), intent(in), optional ddx_end )
private

Set constraints and reset all previous ones: a missing "ddx_end" means: no endpoint constraints Begin/end point constraints: (1:idim,0)=function; (1:idim,i)=i-th derivative.

Get dimensions

Get object

Use allocatable copies for optional arguments

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_set_default_parameters()

subroutine, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_set_default_parameters ( type(fitpack_constrained_curve_c), intent(inout) this)
Here is the call graph for this function:

◆ fitpack_constrained_curve_c_smoothing()

real(fp_real) function, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_smoothing ( type(fitpack_constrained_curve_c), intent(inout) this)

Get smoothing.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_ubegin()

real(fp_real) function, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_ubegin ( type(fitpack_constrained_curve_c), intent(inout) this)

Get begin endpoint.

Get object; allocate it in case

Here is the call graph for this function:

◆ fitpack_constrained_curve_c_uend()

real(fp_real) function, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_uend ( type(fitpack_constrained_curve_c), intent(inout) this)

Get end endpoint.

Get object; allocate it in case

Here is the call graph for this function:

Variable Documentation

◆ fitpack_constrained_curve_c_null

type(fitpack_constrained_curve_c), parameter, public fitpack_constrained_curves_c::fitpack_constrained_curve_c_null = fitpack_constrained_curve_c(cptr=c_null_ptr)

Null-initialized object.