|
fitpack
Modern Fortran library for curve and surface fitting with splines
|
C interface to fitpack_gridded_spline. More...
Data Types | |
| interface | f_associated |
| Pointer-identity check (Fortran-side wrapper of the bind(C) function). More... | |
| interface | f_pointer |
| Get pointer to embedded Fortran object. More... | |
| interface | fitpack_gridded_spline_c |
| Construct from Fortran object. More... | |
Functions/Subroutines | |
| logical(c_bool) function, public | fitpack_gridded_spline_c_is_same (this, that) |
| Pointer-identity check: true iff both wrappers point to the same underlying Fortran object (and that object is allocated). | |
| type(fitpack_gridded_spline) function, pointer | fitpack_gridded_spline_c_get_pointer (this) |
| Get pointer to embedded Fortran object (non-allocating) | |
| logical function | fitpack_gridded_spline_c_pointer (this, fthis) |
| Get/allocate embedded Fortran object (internal, not bind(C)) Returns .true. on success, .false. on allocation failure. | |
| subroutine, public | fitpack_gridded_spline_c_allocate (this, status) |
| [bind(C)] Allocate new object | |
| subroutine, public | fitpack_gridded_spline_c_destroy (this, status) |
| [bind(C)] Deallocate object | |
| subroutine, public | fitpack_gridded_spline_c_copy (this, that, deep_copy, status) |
| [bind(C)] Copy. By default, mirrors source ownership: a view source yields a view (shallow handle copy); an owned source yields a deep copy via Fortran intrinsic assignment. Pass deep_copy=.true. to force a deep copy regardless of the source's ownership. | |
| subroutine, public | fitpack_gridded_spline_c_associate (this, that, status) |
| [bind(C)] Shallow copy (pointer semantics — Fortran "associate" construct) | |
| subroutine, public | fitpack_gridded_spline_c_move_alloc (to, from, status) |
| [bind(C)] Move allocation (transfer ownership) | |
| type(fitpack_gridded_spline_c) function | fitpack_gridded_spline_c_f2c (f) |
| Create from Fortran object (owns copy) | |
| type(fitpack_gridded_spline_c) function | fitpack_gridded_spline_c_fptr2c (f, want_pointer) |
| Create from Fortran object (optionally as pointer) | |
| integer(c_int32_t) function, public | fitpack_gridded_spline_c_fit (this, smoothing, order) |
| fit | |
| integer(c_int32_t) function, public | fitpack_gridded_spline_c_least_squares (this, smoothing, reset_knots) |
| least_squares | |
| integer(c_int32_t) function, public | fitpack_gridded_spline_c_interpolate (this) |
| interpolate | |
| subroutine, public | fitpack_gridded_spline_c_cross_section (this, ax, u, ierr, result) |
| cross_section | |
| integer(c_int32_t) function, public | fitpack_gridded_spline_c_comm_size (this) |
| comm_size | |
| real(c_double) function, public | fitpack_gridded_spline_c_mse (this) |
| mse | |
| integer(c_int32_t) function, public | fitpack_gridded_spline_c_core_comm_size (this) |
| core_comm_size | |
| subroutine, public | fitpack_gridded_spline_c_destroy_base (this) |
| destroy_base | |
| subroutine, public | fitpack_gridded_spline_c_new_points (this, xg_n1, xg_n2, xg, n_z, z, n, m, row_major, order) |
| new_points | |
| integer(c_int32_t) function, public | fitpack_gridded_spline_c_new_fit (this, xg_n1, xg_n2, xg, n_z, z, n, m, row_major, order, smoothing) |
| new_fit | |
| subroutine, public | fitpack_gridded_spline_c_eval_ongrid (this, xg_n1, xg_n2, xg, n, m, ierr, result, n_result) |
| eval_ongrid | |
| real(c_double) function, public | fitpack_gridded_spline_c_grid_eval_one (this, n, x, ierr) |
| grid_eval_one | |
| subroutine, public | fitpack_gridded_spline_c_grid_eval_many (this, xp_n1, xp_n2, xp, ierr, result, n_result, max_size) |
| grid_eval_many | |
| subroutine, public | fitpack_gridded_spline_c_dfdx_ongrid (this, xg_n1, xg_n2, xg, n, m, nu, ierr, result, n_result) |
| dfdx_ongrid | |
| real(c_double) function, public | fitpack_gridded_spline_c_grid_derivatives_one (this, n, x, nu, ierr) |
| grid_derivatives_one | |
| subroutine, public | fitpack_gridded_spline_c_grid_derivatives_many (this, xp_n1, xp_n2, xp, n, nu, ierr, result, n_result, max_size) |
| grid_derivatives_many | |
| real(c_double) function, public | fitpack_gridded_spline_c_integral (this, n, lower, upper) |
| integral | |
| subroutine, public | fitpack_gridded_spline_c_derivative_spline (this, n, nu, ierr, result) |
| derivative_spline | |
| subroutine, public | fitpack_gridded_spline_c_comm_pack (this, n, buffer) |
| comm_pack | |
| subroutine, public | fitpack_gridded_spline_c_comm_expand (this, n, buffer) |
| comm_expand | |
| subroutine, public | fitpack_gridded_spline_c_core_comm_pack (this, n, buffer) |
| core_comm_pack | |
| subroutine, public | fitpack_gridded_spline_c_core_comm_expand (this, n, buffer) |
| core_comm_expand | |
| subroutine, public | fitpack_gridded_spline_c_getcomp_t (this, ptr, extents) |
Raw view of component 't': address of the first element, plus the component's 2 extent(s). Null pointer and zero extents when the object or the component is unallocated; an allocated but zero-sized component still reports its true shape, but has no representable address. Symbol uses the getcomp_ infix (not get_) so it can never collide with a type-bound procedure named get_<component>. | |
| subroutine, public | fitpack_gridded_spline_c_getcomp_xg (this, ptr, extents) |
Raw view of component 'xg': address of the first element, plus the component's 2 extent(s). Null pointer and zero extents when the object or the component is unallocated; an allocated but zero-sized component still reports its true shape, but has no representable address. Symbol uses the getcomp_ infix (not get_) so it can never collide with a type-bound procedure named get_<component>. | |
| subroutine, public | fitpack_gridded_spline_c_getcomp_z (this, ptr, extents) |
Raw view of component 'z': address of the first element, plus the component's 1 extent(s). Null pointer and zero extents when the object or the component is unallocated; an allocated but zero-sized component still reports its true shape, but has no representable address. Symbol uses the getcomp_ infix (not get_) so it can never collide with a type-bound procedure named get_<component>. | |
| type(c_ptr) function, public | fitpack_gridded_spline_c_ref_dims (this) |
| Get pointer to scalar property 'dims'. | |
C interface to fitpack_gridded_spline.
| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_allocate | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| type(fx_status), intent(out), optional | status ) |
[bind(C)] Allocate new object
| status | Optional. If absent, allocation failure triggers error stop. |

| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_associate | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| type(fitpack_gridded_spline_c), intent(in) | that, | ||
| type(fx_status), intent(out), optional | status ) |
[bind(C)] Shallow copy (pointer semantics — Fortran "associate" construct)
| status | Optional. If absent, errors trigger error stop. |

| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_comm_expand | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| integer(c_int32_t), intent(in), value | n, | ||
| real(c_double), dimension(n), intent(in) | buffer ) |
comm_expand
| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_comm_pack | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| integer(c_int32_t), intent(in), value | n, | ||
| real(c_double), dimension(n), intent(inout) | buffer ) |
comm_pack
| integer(c_int32_t) function, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_comm_size | ( | type(fitpack_gridded_spline_c), intent(in) | this | ) |
comm_size

| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_copy | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| type(fitpack_gridded_spline_c), intent(in) | that, | ||
| logical(c_bool), intent(in), value | deep_copy, | ||
| type(fx_status), intent(out), optional | status ) |
[bind(C)] Copy. By default, mirrors source ownership: a view source yields a view (shallow handle copy); an owned source yields a deep copy via Fortran intrinsic assignment. Pass deep_copy=.true. to force a deep copy regardless of the source's ownership.
| deep_copy | When .true., always allocate a fresh Fortran object and deep-copy data, even if the source is a view. |
| status | Optional. If absent, errors trigger error stop. |

| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_core_comm_expand | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| integer(c_int32_t), intent(in), value | n, | ||
| real(c_double), dimension(n), intent(in) | buffer ) |
core_comm_expand
| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_core_comm_pack | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| integer(c_int32_t), intent(in), value | n, | ||
| real(c_double), dimension(n), intent(inout) | buffer ) |
core_comm_pack
| integer(c_int32_t) function, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_core_comm_size | ( | type(fitpack_gridded_spline_c), intent(in) | this | ) |
core_comm_size

| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_cross_section | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| integer(c_int32_t), intent(in), value | ax, | ||
| real(c_double), intent(in), value | u, | ||
| integer(c_int32_t), intent(out), optional | ierr, | ||
| type(fitpack_gridded_spline_c), intent(out) | result ) |
cross_section
| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_derivative_spline | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| integer(c_int32_t), intent(in), value | n, | ||
| integer(c_int32_t), dimension(n), intent(in) | nu, | ||
| integer(c_int32_t), intent(out), optional | ierr, | ||
| type(fitpack_gridded_spline_c), intent(out) | result ) |
derivative_spline
| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_destroy | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| type(fx_status), intent(out), optional | status ) |
[bind(C)] Deallocate object
| status | Optional. If absent, deallocation failure triggers error stop. |

| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_destroy_base | ( | type(fitpack_gridded_spline_c), intent(inout) | this | ) |
destroy_base
| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_dfdx_ongrid | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| integer(c_int32_t), intent(in), value | xg_n1, | ||
| integer(c_int32_t), intent(in), value | xg_n2, | ||
| real(c_double), dimension(xg_n1, xg_n2), intent(in) | xg, | ||
| integer(c_int32_t), intent(in), value | n, | ||
| integer(c_int32_t), dimension(n), intent(in) | m, | ||
| integer(c_int32_t), dimension(n), intent(in) | nu, | ||
| integer(c_int32_t), intent(out), optional | ierr, | ||
| real(c_double), dimension(*), intent(inout) | result, | ||
| integer(c_int32_t), intent(in), value | n_result ) |
dfdx_ongrid
| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_eval_ongrid | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| integer(c_int32_t), intent(in), value | xg_n1, | ||
| integer(c_int32_t), intent(in), value | xg_n2, | ||
| real(c_double), dimension(xg_n1, xg_n2), intent(in) | xg, | ||
| integer(c_int32_t), intent(in), value | n, | ||
| integer(c_int32_t), dimension(n), intent(in) | m, | ||
| integer(c_int32_t), intent(out), optional | ierr, | ||
| real(c_double), dimension(*), intent(inout) | result, | ||
| integer(c_int32_t), intent(in), value | n_result ) |
eval_ongrid
|
private |
Create from Fortran object (owns copy)
| integer(c_int32_t) function, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_fit | ( | type(fitpack_gridded_spline_c), intent(in) | this, |
| real(c_double), intent(in), optional | smoothing, | ||
| integer(c_int32_t), intent(in), optional | order ) |
fit

|
private |
Create from Fortran object (optionally as pointer)
|
private |
Get pointer to embedded Fortran object (non-allocating)
| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_getcomp_t | ( | type(fitpack_gridded_spline_c), intent(in) | this, |
| type(c_ptr), intent(out) | ptr, | ||
| integer(c_int64_t), dimension(2), intent(out) | extents ) |
Raw view of component 't': address of the first element, plus the component's 2 extent(s). Null pointer and zero extents when the object or the component is unallocated; an allocated but zero-sized component still reports its true shape, but has no representable address. Symbol uses the getcomp_ infix (not get_) so it can never collide with a type-bound procedure named get_<component>.
| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_getcomp_xg | ( | type(fitpack_gridded_spline_c), intent(in) | this, |
| type(c_ptr), intent(out) | ptr, | ||
| integer(c_int64_t), dimension(2), intent(out) | extents ) |
Raw view of component 'xg': address of the first element, plus the component's 2 extent(s). Null pointer and zero extents when the object or the component is unallocated; an allocated but zero-sized component still reports its true shape, but has no representable address. Symbol uses the getcomp_ infix (not get_) so it can never collide with a type-bound procedure named get_<component>.
| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_getcomp_z | ( | type(fitpack_gridded_spline_c), intent(in) | this, |
| type(c_ptr), intent(out) | ptr, | ||
| integer(c_int64_t), dimension(1), intent(out) | extents ) |
Raw view of component 'z': address of the first element, plus the component's 1 extent(s). Null pointer and zero extents when the object or the component is unallocated; an allocated but zero-sized component still reports its true shape, but has no representable address. Symbol uses the getcomp_ infix (not get_) so it can never collide with a type-bound procedure named get_<component>.
| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_grid_derivatives_many | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| integer(c_int32_t), intent(in), value | xp_n1, | ||
| integer(c_int32_t), intent(in), value | xp_n2, | ||
| real(c_double), dimension(xp_n1, xp_n2), intent(in) | xp, | ||
| integer(c_int32_t), intent(in), value | n, | ||
| integer(c_int32_t), dimension(n), intent(in) | nu, | ||
| integer(c_int32_t), intent(out), optional | ierr, | ||
| real(c_double), dimension(*), intent(inout) | result, | ||
| integer(c_int32_t), intent(out) | n_result, | ||
| integer(c_int32_t), intent(in), value | max_size ) |
grid_derivatives_many
| real(c_double) function, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_grid_derivatives_one | ( | type(fitpack_gridded_spline_c), intent(in) | this, |
| integer(c_int32_t), intent(in), value | n, | ||
| real(c_double), dimension(n), intent(in) | x, | ||
| integer(c_int32_t), dimension(n), intent(in) | nu, | ||
| integer(c_int32_t), intent(out), optional | ierr ) |
grid_derivatives_one

| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_grid_eval_many | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| integer(c_int32_t), intent(in), value | xp_n1, | ||
| integer(c_int32_t), intent(in), value | xp_n2, | ||
| real(c_double), dimension(xp_n1, xp_n2), intent(in) | xp, | ||
| integer(c_int32_t), intent(out), optional | ierr, | ||
| real(c_double), dimension(*), intent(inout) | result, | ||
| integer(c_int32_t), intent(out) | n_result, | ||
| integer(c_int32_t), intent(in), value | max_size ) |
grid_eval_many
| real(c_double) function, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_grid_eval_one | ( | type(fitpack_gridded_spline_c), intent(in) | this, |
| integer(c_int32_t), intent(in), value | n, | ||
| real(c_double), dimension(n), intent(in) | x, | ||
| integer(c_int32_t), intent(out), optional | ierr ) |
grid_eval_one

| real(c_double) function, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_integral | ( | type(fitpack_gridded_spline_c), intent(in) | this, |
| integer(c_int32_t), intent(in), value | n, | ||
| real(c_double), dimension(n), intent(in) | lower, | ||
| real(c_double), dimension(n), intent(in) | upper ) |
integral

| integer(c_int32_t) function, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_interpolate | ( | type(fitpack_gridded_spline_c), intent(in) | this | ) |
interpolate

| logical(c_bool) function, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_is_same | ( | type(fitpack_gridded_spline_c), intent(in) | this, |
| type(fitpack_gridded_spline_c), intent(in) | that ) |
Pointer-identity check: true iff both wrappers point to the same underlying Fortran object (and that object is allocated).
| integer(c_int32_t) function, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_least_squares | ( | type(fitpack_gridded_spline_c), intent(in) | this, |
| real(c_double), intent(in), optional | smoothing, | ||
| logical(c_bool), intent(in), optional | reset_knots ) |
least_squares

| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_move_alloc | ( | type(fitpack_gridded_spline_c), intent(inout) | to, |
| type(fitpack_gridded_spline_c), intent(inout) | from, | ||
| type(fx_status), intent(out), optional | status ) |
[bind(C)] Move allocation (transfer ownership)
| status | Optional. If absent, errors trigger error stop. |

| real(c_double) function, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_mse | ( | type(fitpack_gridded_spline_c), intent(in) | this | ) |
mse

| integer(c_int32_t) function, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_new_fit | ( | type(fitpack_gridded_spline_c), intent(in) | this, |
| integer(c_int32_t), intent(in), value | xg_n1, | ||
| integer(c_int32_t), intent(in), value | xg_n2, | ||
| real(c_double), dimension(xg_n1, xg_n2), intent(in) | xg, | ||
| integer(c_int32_t), intent(in), value | n_z, | ||
| real(c_double), dimension(n_z), intent(in) | z, | ||
| integer(c_int32_t), intent(in), value | n, | ||
| integer(c_int32_t), dimension(n), intent(in), optional | m, | ||
| logical(c_bool), intent(in), optional | row_major, | ||
| integer(c_int32_t), intent(in), optional | order, | ||
| real(c_double), intent(in), optional | smoothing ) |
new_fit

| subroutine, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_new_points | ( | type(fitpack_gridded_spline_c), intent(inout) | this, |
| integer(c_int32_t), intent(in), value | xg_n1, | ||
| integer(c_int32_t), intent(in), value | xg_n2, | ||
| real(c_double), dimension(xg_n1, xg_n2), intent(in) | xg, | ||
| integer(c_int32_t), intent(in), value | n_z, | ||
| real(c_double), dimension(n_z), intent(in) | z, | ||
| integer(c_int32_t), intent(in), value | n, | ||
| integer(c_int32_t), dimension(n), intent(in), optional | m, | ||
| logical(c_bool), intent(in), optional | row_major, | ||
| integer(c_int32_t), intent(in), optional | order ) |
new_points
|
private |
Get/allocate embedded Fortran object (internal, not bind(C)) Returns .true. on success, .false. on allocation failure.
| type(c_ptr) function, public fitpack_gridded_splines_c::fitpack_gridded_spline_c_ref_dims | ( | type(fitpack_gridded_spline_c), intent(in) | this | ) |
Get pointer to scalar property 'dims'.
