blib/lib/Math/GSL/Chebyshev.pm

filter: Statementstmt 18.7% 18 / 96 Branchbran 0.0% 0 / 32 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 20.6% 6 / 29 Podpod n/a totaltotal 15.2% 24 / 157 CC 17 SCAR 21.9
CC
17
Cov
14%
DESTROY
20.0
DESTROY
20.0
DESTROY
20.0
CRAP 8.9
« blib/lib/Math/GSL/MatrixComplex.pm ↑ Summary blib/lib/Math/GSL/NTuple.pm »
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.2.0
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6  
7 package Math::GSL::Chebyshev;
8 1 ▶use base qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use base qw(DynaLoader);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 package Math::GSL::Chebyshevc;
11 bootstrap Math::GSL::Chebyshev;
12 package Math::GSL::Chebyshev;
13 @EXPORT = qw();
14  
15 # ---------- BASE METHODS -------------
16  
17 package Math::GSL::Chebyshev;
18  
19 0 ▶sub TIEHASH {
Subroutine TIEHASH: not called CC=1 SCAR=6.9
20 0 my ($classname,$obj) = @_;
21 0 return bless $obj, $classname;
22 }
23  
24 0 ▶sub CLEAR { }
Subroutine CLEAR: not called CC=1 SCAR=0.0
25  
26 0 ▶sub FIRSTKEY { }
Subroutine FIRSTKEY: not called CC=1 SCAR=0.0
27  
28 0 ▶sub NEXTKEY { }
Subroutine NEXTKEY: not called CC=1 SCAR=0.0
29  
30 0 ▶sub FETCH {
Subroutine FETCH: not called CC=1 SCAR=6.9
31 0 my ($self,$field) = @_;
32 0 my $member_func = "swig_${field}_get";
33 0 $self->$member_func();
34 }
35  
36 0 ▶sub STORE {
Subroutine STORE: not called CC=1 SCAR=6.9
37 0 my ($self,$field,$newval) = @_;
38 0 my $member_func = "swig_${field}_set";
39 0 $self->$member_func($newval);
40 }
41  
42 0 ▶sub this {
Subroutine this: not called CC=1 SCAR=6.9
43 0 my $ptr = shift;
44 0 return tied(%$ptr);
45 }
46  
47  
48 # ------- FUNCTION WRAPPERS --------
49  
50 package Math::GSL::Chebyshev;
51  
52 *gsl_error = *Math::GSL::Chebyshevc::gsl_error;
53 *gsl_stream_printf = *Math::GSL::Chebyshevc::gsl_stream_printf;
54 *gsl_strerror = *Math::GSL::Chebyshevc::gsl_strerror;
55 *gsl_set_error_handler = *Math::GSL::Chebyshevc::gsl_set_error_handler;
56 *gsl_set_error_handler_off = *Math::GSL::Chebyshevc::gsl_set_error_handler_off;
57 *gsl_set_stream_handler = *Math::GSL::Chebyshevc::gsl_set_stream_handler;
58 *gsl_set_stream = *Math::GSL::Chebyshevc::gsl_set_stream;
59 *gsl_cheb_alloc = *Math::GSL::Chebyshevc::gsl_cheb_alloc;
60 *gsl_cheb_free = *Math::GSL::Chebyshevc::gsl_cheb_free;
61 *gsl_cheb_init = *Math::GSL::Chebyshevc::gsl_cheb_init;
62 *gsl_cheb_order = *Math::GSL::Chebyshevc::gsl_cheb_order;
63 *gsl_cheb_size = *Math::GSL::Chebyshevc::gsl_cheb_size;
64 *gsl_cheb_coeffs = *Math::GSL::Chebyshevc::gsl_cheb_coeffs;
65 *gsl_cheb_eval = *Math::GSL::Chebyshevc::gsl_cheb_eval;
66 *gsl_cheb_eval_err = *Math::GSL::Chebyshevc::gsl_cheb_eval_err;
67 *gsl_cheb_eval_n = *Math::GSL::Chebyshevc::gsl_cheb_eval_n;
68 *gsl_cheb_eval_n_err = *Math::GSL::Chebyshevc::gsl_cheb_eval_n_err;
69 *gsl_cheb_eval_mode = *Math::GSL::Chebyshevc::gsl_cheb_eval_mode;
70 *gsl_cheb_eval_mode_e = *Math::GSL::Chebyshevc::gsl_cheb_eval_mode_e;
71 *gsl_cheb_calc_deriv = *Math::GSL::Chebyshevc::gsl_cheb_calc_deriv;
72 *gsl_cheb_calc_integ = *Math::GSL::Chebyshevc::gsl_cheb_calc_integ;
73  
74 ############# Class : Math::GSL::Chebyshev::gsl_cheb_series_struct ##############
75  
76 package Math::GSL::Chebyshev::gsl_cheb_series_struct;
77 1 ▶use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
Subroutine BEGIN: called CC=1 SCAR=0.0
78 @ISA = qw( Math::GSL::Chebyshev );
79 %OWNER = ();
80 %ITERATORS = ();
81 *swig_c_get = *Math::GSL::Chebyshevc::gsl_cheb_series_struct_c_get;
82 *swig_c_set = *Math::GSL::Chebyshevc::gsl_cheb_series_struct_c_set;
83 *swig_order_get = *Math::GSL::Chebyshevc::gsl_cheb_series_struct_order_get;
84 *swig_order_set = *Math::GSL::Chebyshevc::gsl_cheb_series_struct_order_set;
85 *swig_a_get = *Math::GSL::Chebyshevc::gsl_cheb_series_struct_a_get;
86 *swig_a_set = *Math::GSL::Chebyshevc::gsl_cheb_series_struct_a_set;
87 *swig_b_get = *Math::GSL::Chebyshevc::gsl_cheb_series_struct_b_get;
88 *swig_b_set = *Math::GSL::Chebyshevc::gsl_cheb_series_struct_b_set;
89 *swig_order_sp_get = *Math::GSL::Chebyshevc::gsl_cheb_series_struct_order_sp_get;
90 *swig_order_sp_set = *Math::GSL::Chebyshevc::gsl_cheb_series_struct_order_sp_set;
91 *swig_f_get = *Math::GSL::Chebyshevc::gsl_cheb_series_struct_f_get;
92 *swig_f_set = *Math::GSL::Chebyshevc::gsl_cheb_series_struct_f_set;
93 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
94 0 my $pkg = shift;
95 0 my $self = Math::GSL::Chebyshevc::new_gsl_cheb_series_struct(@_);
96 0 ▶ bless $self, $pkg if defined($self);
Branch: 1 branch
BranchTrueFalseTotal
if defined $self 0 0 0
97 }
98  
99 0 ▶sub DESTROY {
Subroutine DESTROY: not called CC=4 SCAR=30.0
100 0 ▶ return unless $_[0]->isa('HASH');
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]->isa("HASH") 0 0 0
101 0 my $self = tied(%{$_[0]});
102 0 ▶ return unless defined $self;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self 0 0 0
103 0 delete $ITERATORS{$self};
104 0 ▶ if (exists $OWNER{$self}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $OWNER{$self}) 0 0 0
105 0 Math::GSL::Chebyshevc::delete_gsl_cheb_series_struct($self);
106 0 delete $OWNER{$self};
107 }
108 }
109  
110 0 ▶sub DISOWN {
Subroutine DISOWN: not called CC=1 SCAR=6.9
111 0 my $self = shift;
112 0 my $ptr = tied(%$self);
113 0 delete $OWNER{$ptr};
114 }
115  
116 0 ▶sub ACQUIRE {
Subroutine ACQUIRE: not called CC=1 SCAR=6.9
117 0 my $self = shift;
118 0 my $ptr = tied(%$self);
119 0 $OWNER{$ptr} = 1;
120 }
121  
122  
123 ############# Class : Math::GSL::Chebyshev::gsl_function_struct ##############
124  
125 package Math::GSL::Chebyshev::gsl_function_struct;
126 1 ▶use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
Subroutine BEGIN: called CC=1 SCAR=0.0
127 @ISA = qw( Math::GSL::Chebyshev );
128 %OWNER = ();
129 %ITERATORS = ();
130 *swig_function_get = *Math::GSL::Chebyshevc::gsl_function_struct_function_get;
131 *swig_function_set = *Math::GSL::Chebyshevc::gsl_function_struct_function_set;
132 *swig_params_get = *Math::GSL::Chebyshevc::gsl_function_struct_params_get;
133 *swig_params_set = *Math::GSL::Chebyshevc::gsl_function_struct_params_set;
134 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
135 0 my $pkg = shift;
136 0 my $self = Math::GSL::Chebyshevc::new_gsl_function_struct(@_);
137 0 ▶ bless $self, $pkg if defined($self);
Branch: 1 branch
BranchTrueFalseTotal
if defined $self 0 0 0
138 }
139  
140 0 ▶sub DESTROY {
Subroutine DESTROY: not called CC=4 SCAR=30.0
141 0 ▶ return unless $_[0]->isa('HASH');
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]->isa("HASH") 0 0 0
142 0 my $self = tied(%{$_[0]});
143 0 ▶ return unless defined $self;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self 0 0 0
144 0 delete $ITERATORS{$self};
145 0 ▶ if (exists $OWNER{$self}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $OWNER{$self}) 0 0 0
146 0 Math::GSL::Chebyshevc::delete_gsl_function_struct($self);
147 0 delete $OWNER{$self};
148 }
149 }
150  
151 0 ▶sub DISOWN {
Subroutine DISOWN: not called CC=1 SCAR=6.9
152 0 my $self = shift;
153 0 my $ptr = tied(%$self);
154 0 delete $OWNER{$ptr};
155 }
156  
157 0 ▶sub ACQUIRE {
Subroutine ACQUIRE: not called CC=1 SCAR=6.9
158 0 my $self = shift;
159 0 my $ptr = tied(%$self);
160 0 $OWNER{$ptr} = 1;
161 }
162  
163  
164 ############# Class : Math::GSL::Chebyshev::gsl_function_fdf_struct ##############
165  
166 package Math::GSL::Chebyshev::gsl_function_fdf_struct;
167 1 ▶use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
Subroutine BEGIN: called CC=1 SCAR=0.0
168 @ISA = qw( Math::GSL::Chebyshev );
169 %OWNER = ();
170 %ITERATORS = ();
171 *swig_f_get = *Math::GSL::Chebyshevc::gsl_function_fdf_struct_f_get;
172 *swig_f_set = *Math::GSL::Chebyshevc::gsl_function_fdf_struct_f_set;
173 *swig_df_get = *Math::GSL::Chebyshevc::gsl_function_fdf_struct_df_get;
174 *swig_df_set = *Math::GSL::Chebyshevc::gsl_function_fdf_struct_df_set;
175 *swig_fdf_get = *Math::GSL::Chebyshevc::gsl_function_fdf_struct_fdf_get;
176 *swig_fdf_set = *Math::GSL::Chebyshevc::gsl_function_fdf_struct_fdf_set;
177 *swig_params_get = *Math::GSL::Chebyshevc::gsl_function_fdf_struct_params_get;
178 *swig_params_set = *Math::GSL::Chebyshevc::gsl_function_fdf_struct_params_set;
179 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
180 0 my $pkg = shift;
181 0 my $self = Math::GSL::Chebyshevc::new_gsl_function_fdf_struct(@_);
182 0 ▶ bless $self, $pkg if defined($self);
Branch: 1 branch
BranchTrueFalseTotal
if defined $self 0 0 0
183 }
184  
185 0 ▶sub DESTROY {
Subroutine DESTROY: not called CC=4 SCAR=30.0
186 0 ▶ return unless $_[0]->isa('HASH');
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]->isa("HASH") 0 0 0
187 0 my $self = tied(%{$_[0]});
188 0 ▶ return unless defined $self;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self 0 0 0
189 0 delete $ITERATORS{$self};
190 0 ▶ if (exists $OWNER{$self}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $OWNER{$self}) 0 0 0
191 0 Math::GSL::Chebyshevc::delete_gsl_function_fdf_struct($self);
192 0 delete $OWNER{$self};
193 }
194 }
195  
196 0 ▶sub DISOWN {
Subroutine DISOWN: not called CC=1 SCAR=6.9
197 0 my $self = shift;
198 0 my $ptr = tied(%$self);
199 0 delete $OWNER{$ptr};
200 }
201  
202 0 ▶sub ACQUIRE {
Subroutine ACQUIRE: not called CC=1 SCAR=6.9
203 0 my $self = shift;
204 0 my $ptr = tied(%$self);
205 0 $OWNER{$ptr} = 1;
206 }
207  
208  
209 ############# Class : Math::GSL::Chebyshev::gsl_function_vec_struct ##############
210  
211 package Math::GSL::Chebyshev::gsl_function_vec_struct;
212 1 ▶use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
Subroutine BEGIN: called CC=1 SCAR=0.0
213 @ISA = qw( Math::GSL::Chebyshev );
214 %OWNER = ();
215 %ITERATORS = ();
216 *swig_function_get = *Math::GSL::Chebyshevc::gsl_function_vec_struct_function_get;
217 *swig_function_set = *Math::GSL::Chebyshevc::gsl_function_vec_struct_function_set;
218 *swig_params_get = *Math::GSL::Chebyshevc::gsl_function_vec_struct_params_get;
219 *swig_params_set = *Math::GSL::Chebyshevc::gsl_function_vec_struct_params_set;
220 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
221 0 my $pkg = shift;
222 0 my $self = Math::GSL::Chebyshevc::new_gsl_function_vec_struct(@_);
223 0 ▶ bless $self, $pkg if defined($self);
Branch: 1 branch
BranchTrueFalseTotal
if defined $self 0 0 0
224 }
225  
226 0 ▶sub DESTROY {
Subroutine DESTROY: not called CC=4 SCAR=30.0
227 0 ▶ return unless $_[0]->isa('HASH');
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]->isa("HASH") 0 0 0
228 0 my $self = tied(%{$_[0]});
229 0 ▶ return unless defined $self;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self 0 0 0
230 0 delete $ITERATORS{$self};
231 0 ▶ if (exists $OWNER{$self}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $OWNER{$self}) 0 0 0
232 0 Math::GSL::Chebyshevc::delete_gsl_function_vec_struct($self);
233 0 delete $OWNER{$self};
234 }
235 }
236  
237 0 ▶sub DISOWN {
Subroutine DISOWN: not called CC=1 SCAR=6.9
238 0 my $self = shift;
239 0 my $ptr = tied(%$self);
240 0 delete $OWNER{$ptr};
241 }
242  
243 0 ▶sub ACQUIRE {
Subroutine ACQUIRE: not called CC=1 SCAR=6.9
244 0 my $self = shift;
245 0 my $ptr = tied(%$self);
246 0 $OWNER{$ptr} = 1;
247 }
248  
249  
250 # ------- VARIABLE STUBS --------
251  
252 package Math::GSL::Chebyshev;
253  
254 *GSL_VERSION = *Math::GSL::Chebyshevc::GSL_VERSION;
255 *GSL_MAJOR_VERSION = *Math::GSL::Chebyshevc::GSL_MAJOR_VERSION;
256 *GSL_MINOR_VERSION = *Math::GSL::Chebyshevc::GSL_MINOR_VERSION;
257 *GSL_POSZERO = *Math::GSL::Chebyshevc::GSL_POSZERO;
258 *GSL_NEGZERO = *Math::GSL::Chebyshevc::GSL_NEGZERO;
259 *GSL_SUCCESS = *Math::GSL::Chebyshevc::GSL_SUCCESS;
260 *GSL_FAILURE = *Math::GSL::Chebyshevc::GSL_FAILURE;
261 *GSL_CONTINUE = *Math::GSL::Chebyshevc::GSL_CONTINUE;
262 *GSL_EDOM = *Math::GSL::Chebyshevc::GSL_EDOM;
263 *GSL_ERANGE = *Math::GSL::Chebyshevc::GSL_ERANGE;
264 *GSL_EFAULT = *Math::GSL::Chebyshevc::GSL_EFAULT;
265 *GSL_EINVAL = *Math::GSL::Chebyshevc::GSL_EINVAL;
266 *GSL_EFAILED = *Math::GSL::Chebyshevc::GSL_EFAILED;
267 *GSL_EFACTOR = *Math::GSL::Chebyshevc::GSL_EFACTOR;
268 *GSL_ESANITY = *Math::GSL::Chebyshevc::GSL_ESANITY;
269 *GSL_ENOMEM = *Math::GSL::Chebyshevc::GSL_ENOMEM;
270 *GSL_EBADFUNC = *Math::GSL::Chebyshevc::GSL_EBADFUNC;
271 *GSL_ERUNAWAY = *Math::GSL::Chebyshevc::GSL_ERUNAWAY;
272 *GSL_EMAXITER = *Math::GSL::Chebyshevc::GSL_EMAXITER;
273 *GSL_EZERODIV = *Math::GSL::Chebyshevc::GSL_EZERODIV;
274 *GSL_EBADTOL = *Math::GSL::Chebyshevc::GSL_EBADTOL;
275 *GSL_ETOL = *Math::GSL::Chebyshevc::GSL_ETOL;
276 *GSL_EUNDRFLW = *Math::GSL::Chebyshevc::GSL_EUNDRFLW;
277 *GSL_EOVRFLW = *Math::GSL::Chebyshevc::GSL_EOVRFLW;
278 *GSL_ELOSS = *Math::GSL::Chebyshevc::GSL_ELOSS;
279 *GSL_EROUND = *Math::GSL::Chebyshevc::GSL_EROUND;
280 *GSL_EBADLEN = *Math::GSL::Chebyshevc::GSL_EBADLEN;
281 *GSL_ENOTSQR = *Math::GSL::Chebyshevc::GSL_ENOTSQR;
282 *GSL_ESING = *Math::GSL::Chebyshevc::GSL_ESING;
283 *GSL_EDIVERGE = *Math::GSL::Chebyshevc::GSL_EDIVERGE;
284 *GSL_EUNSUP = *Math::GSL::Chebyshevc::GSL_EUNSUP;
285 *GSL_EUNIMPL = *Math::GSL::Chebyshevc::GSL_EUNIMPL;
286 *GSL_ECACHE = *Math::GSL::Chebyshevc::GSL_ECACHE;
287 *GSL_ETABLE = *Math::GSL::Chebyshevc::GSL_ETABLE;
288 *GSL_ENOPROG = *Math::GSL::Chebyshevc::GSL_ENOPROG;
289 *GSL_ENOPROGJ = *Math::GSL::Chebyshevc::GSL_ENOPROGJ;
290 *GSL_ETOLF = *Math::GSL::Chebyshevc::GSL_ETOLF;
291 *GSL_ETOLX = *Math::GSL::Chebyshevc::GSL_ETOLX;
292 *GSL_ETOLG = *Math::GSL::Chebyshevc::GSL_ETOLG;
293 *GSL_EOF = *Math::GSL::Chebyshevc::GSL_EOF;
294 *M_E = *Math::GSL::Chebyshevc::M_E;
295 *M_LOG2E = *Math::GSL::Chebyshevc::M_LOG2E;
296 *M_LOG10E = *Math::GSL::Chebyshevc::M_LOG10E;
297 *M_SQRT2 = *Math::GSL::Chebyshevc::M_SQRT2;
298 *M_SQRT1_2 = *Math::GSL::Chebyshevc::M_SQRT1_2;
299 *M_SQRT3 = *Math::GSL::Chebyshevc::M_SQRT3;
300 *M_PI = *Math::GSL::Chebyshevc::M_PI;
301 *M_PI_2 = *Math::GSL::Chebyshevc::M_PI_2;
302 *M_PI_4 = *Math::GSL::Chebyshevc::M_PI_4;
303 *M_SQRTPI = *Math::GSL::Chebyshevc::M_SQRTPI;
304 *M_2_SQRTPI = *Math::GSL::Chebyshevc::M_2_SQRTPI;
305 *M_1_PI = *Math::GSL::Chebyshevc::M_1_PI;
306 *M_2_PI = *Math::GSL::Chebyshevc::M_2_PI;
307 *M_LN10 = *Math::GSL::Chebyshevc::M_LN10;
308 *M_LN2 = *Math::GSL::Chebyshevc::M_LN2;
309 *M_LNPI = *Math::GSL::Chebyshevc::M_LNPI;
310 *M_EULER = *Math::GSL::Chebyshevc::M_EULER;
311 *GSL_PREC_DOUBLE = *Math::GSL::Chebyshevc::GSL_PREC_DOUBLE;
312 *GSL_PREC_SINGLE = *Math::GSL::Chebyshevc::GSL_PREC_SINGLE;
313 *GSL_PREC_APPROX = *Math::GSL::Chebyshevc::GSL_PREC_APPROX;
314 *GSL_MODE_DEFAULT = *Math::GSL::Chebyshevc::GSL_MODE_DEFAULT;
315  
316 @EXPORT_OK = qw/
317 gsl_cheb_alloc
318 gsl_cheb_free
319 gsl_cheb_init
320 gsl_cheb_eval
321 gsl_cheb_eval_err
322 gsl_cheb_eval_n
323 gsl_cheb_eval_n_err
324 gsl_cheb_eval_mode
325 gsl_cheb_eval_mode_e
326 gsl_cheb_calc_deriv
327 gsl_cheb_calc_integ
328 /;
329 %EXPORT_TAGS = ( all => [ @EXPORT_OK ] );
330  
331 __END__
« blib/lib/Math/GSL/MatrixComplex.pm ↑ Summary blib/lib/Math/GSL/NTuple.pm »