tardis.montecarlo.montecarlo_numba.formal_integral_cuda module

exception tardis.montecarlo.montecarlo_numba.formal_integral_cuda.BoundsError[source]

Bases: IndexError

Used to check bounds in reverse binary search

class tardis.montecarlo.montecarlo_numba.formal_integral_cuda.CudaFormalIntegrator(model, plasma, points=1000)[source]

Bases: object

Helper class for performing the formal integral with CUDA.

formal_integral(iT, inu, inu_size, att_S_ul, Jred_lu, Jblue_lu, tau_sobolev, electron_density, N)[source]

Simple wrapper for the CUDA implementation of the formal integral

tardis.montecarlo.montecarlo_numba.formal_integral_cuda.calculate_p_values(R_max, N)[source]

Calculates the p values of N

Parameters
R_maxfloat64
Nint64
Returns
float64