Struct cuba::CubaIntegrator

source ·
pub struct CubaIntegrator<T> { /* private fields */ }
Expand description

A Cuba integrator. It should be created with an integrand function.

Implementations

Create a new Cuba integrator. Use the set_ functions to set integration parameters.

Set the number of cores and the maximum number of points per core. The default is the number of idle cores for cores and 1000 for max_points_per_core.

Integrate using the Vegas integrator.

  • ndim - Dimension of the input
  • ncomp - Dimension (components) of the output
  • verbosity - Verbosity level
  • gridno - Grid number between -10 and 10. If 0, no grid is stored. If it is positive, the grid is storedin the gridnoth slot. With a negative number the grid is cleared.
  • user_data - User data used by the integrand function

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.