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

filter: Statementstmt 0.0% 0 / 158 Branchbran 0.0% 0 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 19 Podpod 0.0% 0 / 15 totaltotal 0.0% 0 / 208 CC 9 SCAR 20.7
CC
9
Cov
0%
DESTROY
20.0
DESTROY
20.0
new
6.0
CRAP 7.9
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::IEEEUtils;
8 use base qw(Exporter);
9 use base qw(DynaLoader);
10 package Math::GSL::IEEEUtilsc;
11 bootstrap Math::GSL::IEEEUtils;
12 package Math::GSL::IEEEUtils;
13 @EXPORT = qw();
14  
15 # ---------- BASE METHODS -------------
16  
17 package Math::GSL::IEEEUtils;
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::IEEEUtils;
51  
52 *gsl_error = *Math::GSL::IEEEUtilsc::gsl_error;
53 *gsl_stream_printf = *Math::GSL::IEEEUtilsc::gsl_stream_printf;
54 *gsl_strerror = *Math::GSL::IEEEUtilsc::gsl_strerror;
55 *gsl_set_error_handler = *Math::GSL::IEEEUtilsc::gsl_set_error_handler;
56 *gsl_set_error_handler_off = *Math::GSL::IEEEUtilsc::gsl_set_error_handler_off;
57 *gsl_set_stream_handler = *Math::GSL::IEEEUtilsc::gsl_set_stream_handler;
58 *gsl_set_stream = *Math::GSL::IEEEUtilsc::gsl_set_stream;
59 *gsl_ieee_printf_float = *Math::GSL::IEEEUtilsc::gsl_ieee_printf_float;
60 *gsl_ieee_printf_double = *Math::GSL::IEEEUtilsc::gsl_ieee_printf_double;
61 *gsl_ieee_fprintf_float = *Math::GSL::IEEEUtilsc::gsl_ieee_fprintf_float;
62 *gsl_ieee_fprintf_double = *Math::GSL::IEEEUtilsc::gsl_ieee_fprintf_double;
63 *gsl_ieee_float_to_rep = *Math::GSL::IEEEUtilsc::gsl_ieee_float_to_rep;
64 *gsl_ieee_double_to_rep = *Math::GSL::IEEEUtilsc::gsl_ieee_double_to_rep;
65 *gsl_ieee_env_setup = *Math::GSL::IEEEUtilsc::gsl_ieee_env_setup;
66 *gsl_ieee_read_mode_string = *Math::GSL::IEEEUtilsc::gsl_ieee_read_mode_string;
67 *gsl_ieee_set_mode = *Math::GSL::IEEEUtilsc::gsl_ieee_set_mode;
68  
69 ############# Class : Math::GSL::IEEEUtils::gsl_ieee_float_rep ##############
70  
71 package Math::GSL::IEEEUtils::gsl_ieee_float_rep;
72 use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
73 @ISA = qw( Math::GSL::IEEEUtils );
74 %OWNER = ();
75 %ITERATORS = ();
76 *swig_sign_get = *Math::GSL::IEEEUtilsc::gsl_ieee_float_rep_sign_get;
77 *swig_sign_set = *Math::GSL::IEEEUtilsc::gsl_ieee_float_rep_sign_set;
78 *swig_mantissa_get = *Math::GSL::IEEEUtilsc::gsl_ieee_float_rep_mantissa_get;
79 *swig_mantissa_set = *Math::GSL::IEEEUtilsc::gsl_ieee_float_rep_mantissa_set;
80 *swig_exponent_get = *Math::GSL::IEEEUtilsc::gsl_ieee_float_rep_exponent_get;
81 *swig_exponent_set = *Math::GSL::IEEEUtilsc::gsl_ieee_float_rep_exponent_set;
82 *swig_type_get = *Math::GSL::IEEEUtilsc::gsl_ieee_float_rep_type_get;
83 *swig_type_set = *Math::GSL::IEEEUtilsc::gsl_ieee_float_rep_type_set;
84 sub new {
85 my $pkg = shift;
86 my $self = Math::GSL::IEEEUtilsc::new_gsl_ieee_float_rep(@_);
87 bless $self, $pkg if defined($self);
88 }
89  
90 sub DESTROY {
91 return unless $_[0]->isa('HASH');
92 my $self = tied(%{$_[0]});
93 return unless defined $self;
94 delete $ITERATORS{$self};
95 if (exists $OWNER{$self}) {
96 Math::GSL::IEEEUtilsc::delete_gsl_ieee_float_rep($self);
97 delete $OWNER{$self};
98 }
99 }
100  
101 sub DISOWN {
102 my $self = shift;
103 my $ptr = tied(%$self);
104 delete $OWNER{$ptr};
105 }
106  
107 sub ACQUIRE {
108 my $self = shift;
109 my $ptr = tied(%$self);
110 $OWNER{$ptr} = 1;
111 }
112  
113  
114 ############# Class : Math::GSL::IEEEUtils::gsl_ieee_double_rep ##############
115  
116 package Math::GSL::IEEEUtils::gsl_ieee_double_rep;
117 use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
118 @ISA = qw( Math::GSL::IEEEUtils );
119 %OWNER = ();
120 %ITERATORS = ();
121 *swig_sign_get = *Math::GSL::IEEEUtilsc::gsl_ieee_double_rep_sign_get;
122 *swig_sign_set = *Math::GSL::IEEEUtilsc::gsl_ieee_double_rep_sign_set;
123 *swig_mantissa_get = *Math::GSL::IEEEUtilsc::gsl_ieee_double_rep_mantissa_get;
124 *swig_mantissa_set = *Math::GSL::IEEEUtilsc::gsl_ieee_double_rep_mantissa_set;
125 *swig_exponent_get = *Math::GSL::IEEEUtilsc::gsl_ieee_double_rep_exponent_get;
126 *swig_exponent_set = *Math::GSL::IEEEUtilsc::gsl_ieee_double_rep_exponent_set;
127 *swig_type_get = *Math::GSL::IEEEUtilsc::gsl_ieee_double_rep_type_get;
128 *swig_type_set = *Math::GSL::IEEEUtilsc::gsl_ieee_double_rep_type_set;
129 sub new {
130 my $pkg = shift;
131 my $self = Math::GSL::IEEEUtilsc::new_gsl_ieee_double_rep(@_);
132 bless $self, $pkg if defined($self);
133 }
134  
135 sub DESTROY {
136 return unless $_[0]->isa('HASH');
137 my $self = tied(%{$_[0]});
138 return unless defined $self;
139 delete $ITERATORS{$self};
140 if (exists $OWNER{$self}) {
141 Math::GSL::IEEEUtilsc::delete_gsl_ieee_double_rep($self);
142 delete $OWNER{$self};
143 }
144 }
145  
146 sub DISOWN {
147 my $self = shift;
148 my $ptr = tied(%$self);
149 delete $OWNER{$ptr};
150 }
151  
152 sub ACQUIRE {
153 my $self = shift;
154 my $ptr = tied(%$self);
155 $OWNER{$ptr} = 1;
156 }
157  
158  
159 # ------- VARIABLE STUBS --------
160  
161 package Math::GSL::IEEEUtils;
162  
163 *GSL_VERSION = *Math::GSL::IEEEUtilsc::GSL_VERSION;
164 *GSL_MAJOR_VERSION = *Math::GSL::IEEEUtilsc::GSL_MAJOR_VERSION;
165 *GSL_MINOR_VERSION = *Math::GSL::IEEEUtilsc::GSL_MINOR_VERSION;
166 *GSL_POSZERO = *Math::GSL::IEEEUtilsc::GSL_POSZERO;
167 *GSL_NEGZERO = *Math::GSL::IEEEUtilsc::GSL_NEGZERO;
168 *GSL_SUCCESS = *Math::GSL::IEEEUtilsc::GSL_SUCCESS;
169 *GSL_FAILURE = *Math::GSL::IEEEUtilsc::GSL_FAILURE;
170 *GSL_CONTINUE = *Math::GSL::IEEEUtilsc::GSL_CONTINUE;
171 *GSL_EDOM = *Math::GSL::IEEEUtilsc::GSL_EDOM;
172 *GSL_ERANGE = *Math::GSL::IEEEUtilsc::GSL_ERANGE;
173 *GSL_EFAULT = *Math::GSL::IEEEUtilsc::GSL_EFAULT;
174 *GSL_EINVAL = *Math::GSL::IEEEUtilsc::GSL_EINVAL;
175 *GSL_EFAILED = *Math::GSL::IEEEUtilsc::GSL_EFAILED;
176 *GSL_EFACTOR = *Math::GSL::IEEEUtilsc::GSL_EFACTOR;
177 *GSL_ESANITY = *Math::GSL::IEEEUtilsc::GSL_ESANITY;
178 *GSL_ENOMEM = *Math::GSL::IEEEUtilsc::GSL_ENOMEM;
179 *GSL_EBADFUNC = *Math::GSL::IEEEUtilsc::GSL_EBADFUNC;
180 *GSL_ERUNAWAY = *Math::GSL::IEEEUtilsc::GSL_ERUNAWAY;
181 *GSL_EMAXITER = *Math::GSL::IEEEUtilsc::GSL_EMAXITER;
182 *GSL_EZERODIV = *Math::GSL::IEEEUtilsc::GSL_EZERODIV;
183 *GSL_EBADTOL = *Math::GSL::IEEEUtilsc::GSL_EBADTOL;
184 *GSL_ETOL = *Math::GSL::IEEEUtilsc::GSL_ETOL;
185 *GSL_EUNDRFLW = *Math::GSL::IEEEUtilsc::GSL_EUNDRFLW;
186 *GSL_EOVRFLW = *Math::GSL::IEEEUtilsc::GSL_EOVRFLW;
187 *GSL_ELOSS = *Math::GSL::IEEEUtilsc::GSL_ELOSS;
188 *GSL_EROUND = *Math::GSL::IEEEUtilsc::GSL_EROUND;
189 *GSL_EBADLEN = *Math::GSL::IEEEUtilsc::GSL_EBADLEN;
190 *GSL_ENOTSQR = *Math::GSL::IEEEUtilsc::GSL_ENOTSQR;
191 *GSL_ESING = *Math::GSL::IEEEUtilsc::GSL_ESING;
192 *GSL_EDIVERGE = *Math::GSL::IEEEUtilsc::GSL_EDIVERGE;
193 *GSL_EUNSUP = *Math::GSL::IEEEUtilsc::GSL_EUNSUP;
194 *GSL_EUNIMPL = *Math::GSL::IEEEUtilsc::GSL_EUNIMPL;
195 *GSL_ECACHE = *Math::GSL::IEEEUtilsc::GSL_ECACHE;
196 *GSL_ETABLE = *Math::GSL::IEEEUtilsc::GSL_ETABLE;
197 *GSL_ENOPROG = *Math::GSL::IEEEUtilsc::GSL_ENOPROG;
198 *GSL_ENOPROGJ = *Math::GSL::IEEEUtilsc::GSL_ENOPROGJ;
199 *GSL_ETOLF = *Math::GSL::IEEEUtilsc::GSL_ETOLF;
200 *GSL_ETOLX = *Math::GSL::IEEEUtilsc::GSL_ETOLX;
201 *GSL_ETOLG = *Math::GSL::IEEEUtilsc::GSL_ETOLG;
202 *GSL_EOF = *Math::GSL::IEEEUtilsc::GSL_EOF;
203 *GSL_IEEE_TYPE_NAN = *Math::GSL::IEEEUtilsc::GSL_IEEE_TYPE_NAN;
204 *GSL_IEEE_TYPE_INF = *Math::GSL::IEEEUtilsc::GSL_IEEE_TYPE_INF;
205 *GSL_IEEE_TYPE_NORMAL = *Math::GSL::IEEEUtilsc::GSL_IEEE_TYPE_NORMAL;
206 *GSL_IEEE_TYPE_DENORMAL = *Math::GSL::IEEEUtilsc::GSL_IEEE_TYPE_DENORMAL;
207 *GSL_IEEE_TYPE_ZERO = *Math::GSL::IEEEUtilsc::GSL_IEEE_TYPE_ZERO;
208 *GSL_IEEE_SINGLE_PRECISION = *Math::GSL::IEEEUtilsc::GSL_IEEE_SINGLE_PRECISION;
209 *GSL_IEEE_DOUBLE_PRECISION = *Math::GSL::IEEEUtilsc::GSL_IEEE_DOUBLE_PRECISION;
210 *GSL_IEEE_EXTENDED_PRECISION = *Math::GSL::IEEEUtilsc::GSL_IEEE_EXTENDED_PRECISION;
211 *GSL_IEEE_ROUND_TO_NEAREST = *Math::GSL::IEEEUtilsc::GSL_IEEE_ROUND_TO_NEAREST;
212 *GSL_IEEE_ROUND_DOWN = *Math::GSL::IEEEUtilsc::GSL_IEEE_ROUND_DOWN;
213 *GSL_IEEE_ROUND_UP = *Math::GSL::IEEEUtilsc::GSL_IEEE_ROUND_UP;
214 *GSL_IEEE_ROUND_TO_ZERO = *Math::GSL::IEEEUtilsc::GSL_IEEE_ROUND_TO_ZERO;
215 *GSL_IEEE_MASK_INVALID = *Math::GSL::IEEEUtilsc::GSL_IEEE_MASK_INVALID;
216 *GSL_IEEE_MASK_DENORMALIZED = *Math::GSL::IEEEUtilsc::GSL_IEEE_MASK_DENORMALIZED;
217 *GSL_IEEE_MASK_DIVISION_BY_ZERO = *Math::GSL::IEEEUtilsc::GSL_IEEE_MASK_DIVISION_BY_ZERO;
218 *GSL_IEEE_MASK_OVERFLOW = *Math::GSL::IEEEUtilsc::GSL_IEEE_MASK_OVERFLOW;
219 *GSL_IEEE_MASK_UNDERFLOW = *Math::GSL::IEEEUtilsc::GSL_IEEE_MASK_UNDERFLOW;
220 *GSL_IEEE_MASK_ALL = *Math::GSL::IEEEUtilsc::GSL_IEEE_MASK_ALL;
221 *GSL_IEEE_TRAP_INEXACT = *Math::GSL::IEEEUtilsc::GSL_IEEE_TRAP_INEXACT;
222  
223 @EXPORT_OK = qw/
224 gsl_ieee_printf_float
225 gsl_ieee_printf_double
226 gsl_ieee_fprintf_float
227 gsl_ieee_fprintf_double
228 gsl_ieee_float_to_rep
229 gsl_ieee_double_to_rep
230 gsl_ieee_env_setup
231 gsl_ieee_read_mode_string
232 gsl_ieee_set_mode
233 $GSL_IEEE_TYPE_NAN
234 $GSL_IEEE_TYPE_INF
235 $GSL_IEEE_TYPE_NORMAL
236 $GSL_IEEE_TYPE_DENORMAL
237 $GSL_IEEE_TYPE_ZERO
238 $GSL_IEEE_SINGLE_PRECISION
239 $GSL_IEEE_DOUBLE_PRECISION
240 $GSL_IEEE_EXTENDED_PRECISION
241 $GSL_IEEE_ROUND_TO_NEAREST
242 $GSL_IEEE_ROUND_DOWN
243 $GSL_IEEE_ROUND_UP
244 $GSL_IEEE_ROUND_TO_ZERO
245 $GSL_IEEE_MASK_INVALID
246 $GSL_IEEE_MASK_DENORMALIZED
247 $GSL_IEEE_MASK_DIVISION_BY_ZERO
248 $GSL_IEEE_MASK_OVERFLOW
249 $GSL_IEEE_MASK_UNDERFLOW
250 $GSL_IEEE_MASK_ALL
251 $GSL_IEEE_TRAP_INEXACT
252 /;
253 %EXPORT_TAGS = ( all => [ @EXPORT_OK ] );
254  
255 =head1 NAME
256  
257 Math::GSL::IEEEUtils - IEEE Utility Functions
258  
259 =encoding utf8
260  
261 1;