Top |
gdouble | (*NcmIntegral1dPtrF) () |
NcmIntegral1dPtr * | ncm_integral1d_ptr_new () |
NcmIntegral1dPtr * | ncm_integral1d_ptr_new_full () |
NcmIntegral1dPtr * | ncm_integral1d_ptr_ref () |
void | ncm_integral1d_ptr_free () |
void | ncm_integral1d_ptr_clear () |
void | ncm_integral1d_ptr_set_userdata () |
This object facilitates one-dimensional integration by employing a function pointer to evaluate the integrand. It's worth mentioning that this object is not well suited for serialization or for integration with GObject introspection bindings, as it relies on raw function pointers.
gdouble (*NcmIntegral1dPtrF) (gpointer userdata
,const gdouble x
,const gdouble w
);
NcmIntegral1dPtr * ncm_integral1d_ptr_new (NcmIntegral1dPtrF F
,GDestroyNotify userfree
);
Creates a new NcmIntegral1dPtr object for the integrand F
.
NcmIntegral1dPtr * ncm_integral1d_ptr_new_full (NcmIntegral1dPtrF F
,GDestroyNotify userfree
,const gdouble reltol
,const gdouble abstol
,const guint partition
,const guint rule
);
Creates a new NcmIntegral1dPtr object for the integrand F
.
NcmIntegral1dPtr *
ncm_integral1d_ptr_ref (NcmIntegral1dPtr *int1d_ptr
);
Increases the reference count of int1d
by one.
void
ncm_integral1d_ptr_free (NcmIntegral1dPtr *int1d_ptr
);
Decreases the reference count of int1d
by one.
void
ncm_integral1d_ptr_clear (NcmIntegral1dPtr **int1d_ptr
);
If *int1d
is different from NULL, decreases the reference
count of *int1d
by one and sets *int1d
to NULL.
void ncm_integral1d_ptr_set_userdata (NcmIntegral1dPtr *int1d_ptr
,gpointer userdata
);
Sets user data to userdata
.