blib/lib/Math/GSL/Siman.pm untested

filter: Statementstmt 0.0% 0 / 107 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 14 Podpod 0.0% 0 / 11 totaltotal 0.0% 0 / 140 CC 5 SCAR 18.6
CC
5
Cov
0%
DESTROY
20.0
new
6.0
TIEHASH
2.0
CRAP 6.4
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::Siman;
8 use base qw(Exporter);
9 use base qw(DynaLoader);
10 package Math::GSL::Simanc;
11 bootstrap Math::GSL::Siman;
12 package Math::GSL::Siman;
13 @EXPORT = qw();
14  
15 # ---------- BASE METHODS -------------
16  
17 package Math::GSL::Siman;
18  
19 sub TIEHASH {
20 my ($classname,$obj) = @_;
21 return bless $obj, $classname;
22 }
23  
24 sub CLEAR { }
25  
26 sub FIRSTKEY { }
27  
28 sub NEXTKEY { }
29  
30 sub FETCH {
31 my ($self,$field) = @_;
32 my $member_func = "swig_${field}_get";
33 $self->$member_func();
34 }
35  
36 sub STORE {
37 my ($self,$field,$newval) = @_;
38 my $member_func = "swig_${field}_set";
39 $self->$member_func($newval);
40 }
41  
42 sub this {
43 my $ptr = shift;
44 return tied(%$ptr);
45 }
46  
47  
48 # ------- FUNCTION WRAPPERS --------
49  
50 package Math::GSL::Siman;
51  
52 *gsl_error = *Math::GSL::Simanc::gsl_error;
53 *gsl_stream_printf = *Math::GSL::Simanc::gsl_stream_printf;
54 *gsl_strerror = *Math::GSL::Simanc::gsl_strerror;
55 *gsl_set_error_handler = *Math::GSL::Simanc::gsl_set_error_handler;
56 *gsl_set_error_handler_off = *Math::GSL::Simanc::gsl_set_error_handler_off;
57 *gsl_set_stream_handler = *Math::GSL::Simanc::gsl_set_stream_handler;
58 *gsl_set_stream = *Math::GSL::Simanc::gsl_set_stream;
59 *gsl_siman_solve = *Math::GSL::Simanc::gsl_siman_solve;
60 *gsl_siman_solve_many = *Math::GSL::Simanc::gsl_siman_solve_many;
61  
62 ############# Class : Math::GSL::Siman::gsl_siman_params_t ##############
63  
64 package Math::GSL::Siman::gsl_siman_params_t;
65 use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
66 @ISA = qw( Math::GSL::Siman );
67 %OWNER = ();
68 %ITERATORS = ();
69 *swig_n_tries_get = *Math::GSL::Simanc::gsl_siman_params_t_n_tries_get;
70 *swig_n_tries_set = *Math::GSL::Simanc::gsl_siman_params_t_n_tries_set;
71 *swig_iters_fixed_T_get = *Math::GSL::Simanc::gsl_siman_params_t_iters_fixed_T_get;
72 *swig_iters_fixed_T_set = *Math::GSL::Simanc::gsl_siman_params_t_iters_fixed_T_set;
73 *swig_step_size_get = *Math::GSL::Simanc::gsl_siman_params_t_step_size_get;
74 *swig_step_size_set = *Math::GSL::Simanc::gsl_siman_params_t_step_size_set;
75 *swig_k_get = *Math::GSL::Simanc::gsl_siman_params_t_k_get;
76 *swig_k_set = *Math::GSL::Simanc::gsl_siman_params_t_k_set;
77 *swig_t_initial_get = *Math::GSL::Simanc::gsl_siman_params_t_t_initial_get;
78 *swig_t_initial_set = *Math::GSL::Simanc::gsl_siman_params_t_t_initial_set;
79 *swig_mu_t_get = *Math::GSL::Simanc::gsl_siman_params_t_mu_t_get;
80 *swig_mu_t_set = *Math::GSL::Simanc::gsl_siman_params_t_mu_t_set;
81 *swig_t_min_get = *Math::GSL::Simanc::gsl_siman_params_t_t_min_get;
82 *swig_t_min_set = *Math::GSL::Simanc::gsl_siman_params_t_t_min_set;
83 sub new {
84 my $pkg = shift;
85 my $self = Math::GSL::Simanc::new_gsl_siman_params_t(@_);
86 bless $self, $pkg if defined($self);
87 }
88  
89 sub DESTROY {
90 return unless $_[0]->isa('HASH');
91 my $self = tied(%{$_[0]});
92 return unless defined $self;
93 delete $ITERATORS{$self};
94 if (exists $OWNER{$self}) {
95 Math::GSL::Simanc::delete_gsl_siman_params_t($self);
96 delete $OWNER{$self};
97 }
98 }
99  
100 sub DISOWN {
101 my $self = shift;
102 my $ptr = tied(%$self);
103 delete $OWNER{$ptr};
104 }
105  
106 sub ACQUIRE {
107 my $self = shift;
108 my $ptr = tied(%$self);
109 $OWNER{$ptr} = 1;
110 }
111  
112  
113 # ------- VARIABLE STUBS --------
114  
115 package Math::GSL::Siman;
116  
117 *GSL_VERSION = *Math::GSL::Simanc::GSL_VERSION;
118 *GSL_MAJOR_VERSION = *Math::GSL::Simanc::GSL_MAJOR_VERSION;
119 *GSL_MINOR_VERSION = *Math::GSL::Simanc::GSL_MINOR_VERSION;
120 *GSL_POSZERO = *Math::GSL::Simanc::GSL_POSZERO;
121 *GSL_NEGZERO = *Math::GSL::Simanc::GSL_NEGZERO;
122 *GSL_SUCCESS = *Math::GSL::Simanc::GSL_SUCCESS;
123 *GSL_FAILURE = *Math::GSL::Simanc::GSL_FAILURE;
124 *GSL_CONTINUE = *Math::GSL::Simanc::GSL_CONTINUE;
125 *GSL_EDOM = *Math::GSL::Simanc::GSL_EDOM;
126 *GSL_ERANGE = *Math::GSL::Simanc::GSL_ERANGE;
127 *GSL_EFAULT = *Math::GSL::Simanc::GSL_EFAULT;
128 *GSL_EINVAL = *Math::GSL::Simanc::GSL_EINVAL;
129 *GSL_EFAILED = *Math::GSL::Simanc::GSL_EFAILED;
130 *GSL_EFACTOR = *Math::GSL::Simanc::GSL_EFACTOR;
131 *GSL_ESANITY = *Math::GSL::Simanc::GSL_ESANITY;
132 *GSL_ENOMEM = *Math::GSL::Simanc::GSL_ENOMEM;
133 *GSL_EBADFUNC = *Math::GSL::Simanc::GSL_EBADFUNC;
134 *GSL_ERUNAWAY = *Math::GSL::Simanc::GSL_ERUNAWAY;
135 *GSL_EMAXITER = *Math::GSL::Simanc::GSL_EMAXITER;
136 *GSL_EZERODIV = *Math::GSL::Simanc::GSL_EZERODIV;
137 *GSL_EBADTOL = *Math::GSL::Simanc::GSL_EBADTOL;
138 *GSL_ETOL = *Math::GSL::Simanc::GSL_ETOL;
139 *GSL_EUNDRFLW = *Math::GSL::Simanc::GSL_EUNDRFLW;
140 *GSL_EOVRFLW = *Math::GSL::Simanc::GSL_EOVRFLW;
141 *GSL_ELOSS = *Math::GSL::Simanc::GSL_ELOSS;
142 *GSL_EROUND = *Math::GSL::Simanc::GSL_EROUND;
143 *GSL_EBADLEN = *Math::GSL::Simanc::GSL_EBADLEN;
144 *GSL_ENOTSQR = *Math::GSL::Simanc::GSL_ENOTSQR;
145 *GSL_ESING = *Math::GSL::Simanc::GSL_ESING;
146 *GSL_EDIVERGE = *Math::GSL::Simanc::GSL_EDIVERGE;
147 *GSL_EUNSUP = *Math::GSL::Simanc::GSL_EUNSUP;
148 *GSL_EUNIMPL = *Math::GSL::Simanc::GSL_EUNIMPL;
149 *GSL_ECACHE = *Math::GSL::Simanc::GSL_ECACHE;
150 *GSL_ETABLE = *Math::GSL::Simanc::GSL_ETABLE;
151 *GSL_ENOPROG = *Math::GSL::Simanc::GSL_ENOPROG;
152 *GSL_ENOPROGJ = *Math::GSL::Simanc::GSL_ENOPROGJ;
153 *GSL_ETOLF = *Math::GSL::Simanc::GSL_ETOLF;
154 *GSL_ETOLX = *Math::GSL::Simanc::GSL_ETOLX;
155 *GSL_ETOLG = *Math::GSL::Simanc::GSL_ETOLG;
156 *GSL_EOF = *Math::GSL::Simanc::GSL_EOF;
157  
158 @EXPORT_OK = qw/
159 gsl_siman_solve
160 gsl_siman_solve_many
161 /;
162 %EXPORT_TAGS = ( all => [ @EXPORT_OK ] );
163  
164 __END__