vegas 6.2.1__cp312-cp312-macosx_10_13_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of vegas might be problematic. Click here for more details.

Binary file
vegas/_vegas.pxd ADDED
@@ -0,0 +1,78 @@
1
+ # cython: language_level=3
2
+ # Created by G. Peter Lepage (Cornell University) in 12/2013.
3
+ # Copyright (c) 2013-25 G. Peter Lepage.
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # any later version (see <http://www.gnu.org/licenses/>).
9
+ #
10
+ # This program is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+
15
+ cdef class LBatchIntegrand:
16
+ cdef public object fcn
17
+
18
+ cdef class RBatchIntegrand:
19
+ cdef public object fcn
20
+
21
+ cdef class AdaptiveMap:
22
+ # first index is direction, second is increment
23
+ cdef readonly double[:, ::1] grid
24
+ cdef readonly double[:, ::1] inc
25
+ cdef readonly Py_ssize_t[::1] ninc
26
+ cdef public double[:, ::1] sum_f
27
+ cdef public double[:, ::1] n_f
28
+
29
+ cpdef map(self, double[:, ::1] y, double[:, ::1] x, double[::1] J, Py_ssize_t ny=*)
30
+ cpdef invmap(self, double[:, ::1] x, double[:, ::1] y, double[::1] J, Py_ssize_t nx=*)
31
+ cpdef add_training_data(self, double[:, ::1] y, double[::1] f, Py_ssize_t ny=*)
32
+
33
+ cdef class Integrator:
34
+ # inputs
35
+ cdef public Py_ssize_t neval
36
+ cdef public Py_ssize_t[::1] neval_hcube_range
37
+ cdef public Py_ssize_t min_neval_batch
38
+ cdef public Py_ssize_t maxinc_axis
39
+ cdef public Py_ssize_t max_neval_hcube
40
+ cdef public double neval_frac
41
+ cdef public double max_mem
42
+ cdef public Py_ssize_t nitn
43
+ cdef public Py_ssize_t nproc
44
+ cdef public double alpha
45
+ cdef public double rtol
46
+ cdef public double atol
47
+ cdef public bint minimize_mem
48
+ cdef public bint adapt_to_errors
49
+ cdef public double beta
50
+ cdef public bint adapt
51
+ cdef public object analyzer
52
+ cdef public object ran_array_generator
53
+ cdef public bint sync_ran
54
+ cdef public bint mpi
55
+ cdef public bint uniform_nstrat
56
+ cdef public bint uses_jac
57
+ cdef public str save
58
+ cdef public str saveall
59
+ cdef readonly Py_ssize_t[::1] nstrat
60
+ cdef readonly object xsample
61
+ # generated
62
+ cdef readonly AdaptiveMap map
63
+ cdef readonly object pool
64
+ cdef readonly double sum_sigf
65
+ cdef readonly Py_ssize_t dim
66
+ cdef readonly Py_ssize_t last_neval
67
+ cdef readonly Py_ssize_t min_neval_hcube
68
+ cdef readonly Py_ssize_t nhcube
69
+ # internal work areas
70
+ cdef double[:, ::1] y
71
+ cdef double[:, ::1] x
72
+ cdef double[::1] jac
73
+ cdef double[::1] fdv2
74
+ cdef Py_ssize_t[::1] neval_hcube
75
+ # the following depend upon whether minimize_mem is False or True
76
+ cdef readonly object sigf # numpy array or h5py Dataset
77
+ cdef readonly object sigf_h5 # None or h5py file
78
+