passagemath-lcalc 10.6.40__cp314-cp314-musllinux_1_2_aarch64.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.
@@ -0,0 +1,129 @@
1
+ # sage_setup: distribution = sagemath-lcalc
2
+ cdef extern from "lcalc_sage.h":
3
+ ctypedef struct doublevec "std::vector<double>":
4
+ int (*size)()
5
+ double ind "operator[]"(int i)
6
+ void (* clear)()
7
+
8
+ doublevec doublevec_factory "std::vector<double>"(int len)
9
+
10
+ cdef void initialize_globals()
11
+
12
+ ctypedef struct c_Complex "Complex":
13
+ double real()
14
+ double imag()
15
+
16
+ #######################
17
+ #L function with (I)nteger Coefficients
18
+ ######################
19
+
20
+ ctypedef struct c_Lfunction_I "L_function<int>":
21
+ c_Complex (* value) (c_Complex s, int derivative, char *whattype)
22
+ int (* compute_rank) ()
23
+ double (* N) (double T)
24
+ void (* find_zeros_v)(double T1, double T2, double stepsize, doublevec result )
25
+ int (*find_zeros)(long count, long start, double max_refine, int rank, const char* message_stamp, doublevec* result)
26
+ void (*print_data_L)()
27
+
28
+ #Constructor and destructor
29
+ c_Lfunction_I *new_c_Lfunction_I "new L_function<int>"(char *NAME, int what_type, int N, int *coeff, long long Period, double q, c_Complex w, int A, double *g, c_Complex *l, int n_poles, c_Complex *p, c_Complex *r)
30
+ cdef void del_c_Lfunction_I "delete"(c_Lfunction_I *L)
31
+
32
+ ################################
33
+ #L function with (D)ouble Coefficients
34
+ ################################
35
+
36
+ ctypedef struct c_Lfunction_D "L_function<double>":
37
+ c_Complex (* value) (c_Complex s, int derivative, char *whattype)
38
+ int (* compute_rank) ()
39
+ double (* N) (double T)
40
+ double *dirichlet_coefficient
41
+ void (* find_zeros_v)(double T1, double T2, double stepsize, doublevec result )
42
+ int (*find_zeros)(long count, long start, double max_refine, int rank, const char* message_stamp, doublevec* result)
43
+ void (*print_data_L)()
44
+
45
+ #Constructor and destructor
46
+ c_Lfunction_D *new_c_Lfunction_D "new L_function<double>"(char *NAME, int what_type, int N, double *coeff, long long Period, double q, c_Complex w, int A, double *g, c_Complex *l, int n_poles, c_Complex *p, c_Complex *r)
47
+ cdef void del_c_Lfunction_D "delete"(c_Lfunction_D *L)
48
+
49
+ #######################
50
+ #L function with (C)omplex Coefficients
51
+ ######################
52
+
53
+ ctypedef struct c_Lfunction_C "L_function<Complex>":
54
+ c_Complex (* value) (c_Complex s, int derivative, char *whattype)
55
+ int (* compute_rank) ()
56
+ double (* N) (double T)
57
+ void (* find_zeros_v)(double T1, double T2, double stepsize, doublevec result )
58
+ int (*find_zeros)(long count, long start, double max_refine, int rank, const char* message_stamp, doublevec* result)
59
+ void (*print_data_L)()
60
+
61
+ #Constructor and destructor
62
+ c_Lfunction_C *new_c_Lfunction_C "new L_function<Complex>"(char *NAME, int what_type, int N, c_Complex *coeff, long long Period, double q, c_Complex w, int A, double *g, c_Complex *l, int n_poles, c_Complex *p, c_Complex *r)
63
+ cdef void del_c_Lfunction_C "delete"(c_Lfunction_C *L)
64
+
65
+ #######################
66
+ #Zeta function
67
+ ######################
68
+
69
+ ctypedef struct c_Lfunction_Zeta "L_function<int>":
70
+ c_Complex (* value) (c_Complex s, int derivative, char *whattype)
71
+ int (* compute_rank) ()
72
+ double (* N) (double T)
73
+ void (* find_zeros_v)(double T1, double T2, double stepsize, doublevec result )
74
+ int (*find_zeros)(long count, long start, double max_refine, int rank, const char* message_stamp, doublevec* result)
75
+ void (*find_zeros_via_N)(long count,int do_negative,double max_refine, int rank, int test_explicit_formula, char *filename) #puts result in filename
76
+
77
+ #Constructor and destructor
78
+ c_Lfunction_Zeta *new_c_Lfunction_Zeta "new L_function<int>"()
79
+ cdef void del_c_Lfunction_Zeta "delete"(c_Lfunction_Zeta *L)
80
+
81
+ #######################
82
+ # Below are helper functions
83
+ ######################
84
+
85
+ cdef int *new_ints(int l)
86
+ cdef void del_ints(int *)
87
+ cdef double *new_doubles(int l)
88
+ cdef void del_doubles(double *)
89
+ cdef c_Complex *new_Complexes(int l)
90
+ cdef void del_Complexes(c_Complex *)
91
+ cdef c_Complex new_Complex(double r, double i)
92
+ void delete "delete "(void *ptr)
93
+ cdef void testL(c_Lfunction_C *ptr)
94
+
95
+ ################
96
+ #
97
+ #Below are definition of Lfunction classes with
98
+ # (I)nteger (D)ouble or (C)omplex coefficients
99
+ #
100
+ ################
101
+
102
+ # strange bug, I can't compile without this trick ???
103
+ # it's only used in _typedN
104
+ ctypedef double Double
105
+
106
+ cdef class Lfunction:
107
+ cdef void *thisptr
108
+ cdef void _init_fun(self, char *NAME, int what_type, dirichlet_coeff, long long Period, double q, c_Complex w, int A, double *g, c_Complex *l, int n_poles, c_Complex *p, c_Complex *r) noexcept
109
+ cdef c_Complex _value(self, c_Complex s, int derivative) noexcept
110
+ cdef c_Complex _hardy_z_function(self, c_Complex s) noexcept
111
+ cdef int _compute_rank(self) noexcept
112
+ #strange bug, replacing Double with double gives me a compile error
113
+ cdef Double _typedN(self, double T) noexcept
114
+ cdef void _find_zeros_v(self, double T1, double T2, double stepsize, doublevec *result) noexcept
115
+ cdef int _find_zeros(self, long count, long start, double max_refine, int rank, const char* message_stamp, doublevec* result) noexcept
116
+
117
+ cdef str _repr
118
+
119
+ cdef class Lfunction_I(Lfunction):
120
+ pass
121
+
122
+ cdef class Lfunction_D(Lfunction):
123
+ pass
124
+
125
+ cdef class Lfunction_C(Lfunction):
126
+ pass
127
+
128
+ cdef class Lfunction_Zeta(Lfunction):
129
+ pass