SVD.c

filter: Statementstmt 0.0% 0 / 186 Branchbran 0.0% 0 / 88 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 274 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« blib/lib/Math/GSL/Linalg/SVD.pm ↑ Summary
1 /*
2 * This file was generated automatically by ExtUtils::ParseXS version 2.19 from the
3 * contents of SVD.xs. Do not edit this file, edit SVD.xs instead.
4 *
5 * ANY CHANGES MADE HERE WILL BE LOST!
6 *
7 */
8  
9 #line 1 "SVD.xs"
10 #include "EXTERN.h"
11 #include "perl.h"
12 #include "XSUB.h"
13 #include "gsl.h"
14  
15 typedef gsl_vector* Math__GSL__Linalg__SVD__Vector;
16 typedef gsl_vector* Math__GSL__Linalg__SVD__Matrix;
17 typedef gsl_eigen_symmv_workspace* Math__GSL__Linalg__SVD__Eigen;
18  
19 #ifndef PERL_UNUSED_VAR
20 # define PERL_UNUSED_VAR(var) if (0) var = var
21 #endif
22  
23 #line 24 "SVD.c"
24  
25 XS(XS_Math__GSL__Linalg__SVD__Eigen_new); /* prototype to pass -Wmissing-prototypes */
26 0 XS(XS_Math__GSL__Linalg__SVD__Eigen_new)
27 {
28 #ifdef dVAR
29 0 dVAR; dXSARGS;
30 #else
31 dXSARGS;
32 #endif
33 0 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 0 0
34 0 Perl_croak(aTHX_ "Usage: %s(%s)", "Math::GSL::Linalg::SVD::Eigen::new", "package, n1");
35 PERL_UNUSED_VAR(cv); /* -W */
36 {
37 0 char * package = (char *)SvPV_nolen(ST(0));
38 0 size_t n1 = (size_t)SvUV(ST(1));
39 Math__GSL__Linalg__SVD__Eigen RETVAL;
40 #line 19 "SVD.xs"
41 RETVAL = gsl_eigen_symmv_alloc(n1);
42 #line 43 "SVD.c"
43 0 ST(0) = sv_newmortal();
44 0 sv_setref_pv(ST(0), "Math::GSL::Linalg::SVD::Eigen", (void*)RETVAL);
45 }
46 0 XSRETURN(1);
47 }
48  
49  
50 XS(XS_Math__GSL__Linalg__SVD__Vector_new); /* prototype to pass -Wmissing-prototypes */
51 0 XS(XS_Math__GSL__Linalg__SVD__Vector_new)
52 {
53 #ifdef dVAR
54 0 dVAR; dXSARGS;
55 #else
56 dXSARGS;
57 #endif
58 0 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 0 0
59 0 Perl_croak(aTHX_ "Usage: %s(%s)", "Math::GSL::Linalg::SVD::Vector::new", "package, n1");
60 PERL_UNUSED_VAR(cv); /* -W */
61 {
62 0 char * package = (char *)SvPV_nolen(ST(0));
63 0 size_t n1 = (size_t)SvUV(ST(1));
64 Math__GSL__Linalg__SVD__Vector RETVAL;
65 #line 32 "SVD.xs"
66 RETVAL = gsl_vector_alloc(n1);
67 #line 68 "SVD.c"
68 0 ST(0) = sv_newmortal();
69 0 sv_setref_pv(ST(0), "Math::GSL::Linalg::SVD::Vector", (void*)RETVAL);
70 }
71 0 XSRETURN(1);
72 }
73  
74  
75 XS(XS_Math__GSL__Linalg__SVD__Vector_vector_set); /* prototype to pass -Wmissing-prototypes */
76 0 XS(XS_Math__GSL__Linalg__SVD__Vector_vector_set)
77 {
78 #ifdef dVAR
79 0 dVAR; dXSARGS;
80 #else
81 dXSARGS;
82 #endif
83 0 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 0 0
84 0 Perl_croak(aTHX_ "Usage: %s(%s)", "Math::GSL::Linalg::SVD::Vector::vector_set", "v, i, x");
85 PERL_UNUSED_VAR(cv); /* -W */
86 {
87 Math__GSL__Linalg__SVD__Vector v;
88 0 size_t i = (size_t)SvUV(ST(1));
89 0 double x = (double)SvNV(ST(2));
90  
91 0 ▶ if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Vector")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Vector")) { 0 0 0
92 0 IV tmp = SvIV((SV*)SvRV(ST(0)));
93 0 v = INT2PTR(Math__GSL__Linalg__SVD__Vector,tmp);
94 }
95 else
96 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
97 "Math::GSL::Linalg::SVD::Vector::vector_set",
98 "v", "Math::GSL::Linalg::SVD::Vector");
99 #line 42 "SVD.xs"
100 gsl_vector_set( v, i, x);
101 #line 102 "SVD.c"
102 }
103 0 XSRETURN_EMPTY;
104 }
105  
106  
107 XS(XS_Math__GSL__Linalg__SVD__Vector_vector_get); /* prototype to pass -Wmissing-prototypes */
108 0 XS(XS_Math__GSL__Linalg__SVD__Vector_vector_get)
109 {
110 #ifdef dVAR
111 0 dVAR; dXSARGS;
112 #else
113 dXSARGS;
114 #endif
115 0 ▶ if (items != 2)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) 0 0 0
116 0 Perl_croak(aTHX_ "Usage: %s(%s)", "Math::GSL::Linalg::SVD::Vector::vector_get", "v, i");
117 PERL_UNUSED_VAR(cv); /* -W */
118 {
119 Math__GSL__Linalg__SVD__Vector v;
120 0 size_t i = (size_t)SvUV(ST(1));
121 double RETVAL;
122 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
123  
124 0 ▶ if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Vector")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Vector")) { 0 0 0
125 0 IV tmp = SvIV((SV*)SvRV(ST(0)));
126 0 v = INT2PTR(Math__GSL__Linalg__SVD__Vector,tmp);
127 }
128 else
129 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
130 "Math::GSL::Linalg::SVD::Vector::vector_get",
131 "v", "Math::GSL::Linalg::SVD::Vector");
132 #line 49 "SVD.xs"
133 RETVAL = gsl_vector_get(v, i);
134 #line 135 "SVD.c"
135 0 ▶ XSprePUSH; PUSHn((double)RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
XSprePUSH; PUSHn((double)RETVAL); 0 0 0
136 }
137 0 XSRETURN(1);
138 }
139  
140  
141 XS(XS_Math__GSL__Linalg__SVD__Matrix_new); /* prototype to pass -Wmissing-prototypes */
142 0 XS(XS_Math__GSL__Linalg__SVD__Matrix_new)
143 {
144 #ifdef dVAR
145 0 dVAR; dXSARGS;
146 #else
147 dXSARGS;
148 #endif
149 0 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 0 0
150 0 Perl_croak(aTHX_ "Usage: %s(%s)", "Math::GSL::Linalg::SVD::Matrix::new", "package, n1, n2");
151 PERL_UNUSED_VAR(cv); /* -W */
152 {
153 0 char * package = (char *)SvPV_nolen(ST(0));
154 0 size_t n1 = (size_t)SvUV(ST(1));
155 0 size_t n2 = (size_t)SvUV(ST(2));
156 Math__GSL__Linalg__SVD__Matrix RETVAL;
157 #line 64 "SVD.xs"
158 RETVAL = gsl_matrix_alloc(n1 , n2);
159 #line 160 "SVD.c"
160 0 ST(0) = sv_newmortal();
161 0 sv_setref_pv(ST(0), "Math::GSL::Linalg::SVD::Matrix", (void*)RETVAL);
162 }
163 0 XSRETURN(1);
164 }
165  
166  
167 XS(XS_Math__GSL__Linalg__SVD__Matrix_matrix_set); /* prototype to pass -Wmissing-prototypes */
168 0 XS(XS_Math__GSL__Linalg__SVD__Matrix_matrix_set)
169 {
170 #ifdef dVAR
171 0 dVAR; dXSARGS;
172 #else
173 dXSARGS;
174 #endif
175 0 ▶ if (items != 4)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 4) 0 0 0
176 0 Perl_croak(aTHX_ "Usage: %s(%s)", "Math::GSL::Linalg::SVD::Matrix::matrix_set", "m, i, j, x");
177 PERL_UNUSED_VAR(cv); /* -W */
178 {
179 Math__GSL__Linalg__SVD__Matrix m;
180 0 size_t i = (size_t)SvUV(ST(1));
181 0 size_t j = (size_t)SvUV(ST(2));
182 0 double x = (double)SvNV(ST(3));
183  
184 0 ▶ if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Matrix")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Matrix")) { 0 0 0
185 0 IV tmp = SvIV((SV*)SvRV(ST(0)));
186 0 m = INT2PTR(Math__GSL__Linalg__SVD__Matrix,tmp);
187 }
188 else
189 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
190 "Math::GSL::Linalg::SVD::Matrix::matrix_set",
191 "m", "Math::GSL::Linalg::SVD::Matrix");
192 #line 75 "SVD.xs"
193 gsl_matrix_set( m, i, j, x);
194 #line 195 "SVD.c"
195 }
196 0 XSRETURN_EMPTY;
197 }
198  
199  
200 XS(XS_Math__GSL__Linalg__SVD__Matrix_matrix_get); /* prototype to pass -Wmissing-prototypes */
201 0 XS(XS_Math__GSL__Linalg__SVD__Matrix_matrix_get)
202 {
203 #ifdef dVAR
204 0 dVAR; dXSARGS;
205 #else
206 dXSARGS;
207 #endif
208 0 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 0 0
209 0 Perl_croak(aTHX_ "Usage: %s(%s)", "Math::GSL::Linalg::SVD::Matrix::matrix_get", "m, i, j");
210 PERL_UNUSED_VAR(cv); /* -W */
211 {
212 Math__GSL__Linalg__SVD__Matrix m;
213 0 size_t i = (size_t)SvUV(ST(1));
214 0 size_t j = (size_t)SvUV(ST(2));
215 double RETVAL;
216 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
217  
218 0 ▶ if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Matrix")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Matrix")) { 0 0 0
219 0 IV tmp = SvIV((SV*)SvRV(ST(0)));
220 0 m = INT2PTR(Math__GSL__Linalg__SVD__Matrix,tmp);
221 }
222 else
223 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
224 "Math::GSL::Linalg::SVD::Matrix::matrix_get",
225 "m", "Math::GSL::Linalg::SVD::Matrix");
226 #line 83 "SVD.xs"
227 RETVAL = gsl_matrix_get(m, i, j);
228 #line 229 "SVD.c"
229 0 ▶ XSprePUSH; PUSHn((double)RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
XSprePUSH; PUSHn((double)RETVAL); 0 0 0
230 }
231 0 XSRETURN(1);
232 }
233  
234  
235 XS(XS_Math__GSL__Linalg__SVD__Matrix_SV_decomp); /* prototype to pass -Wmissing-prototypes */
236 0 XS(XS_Math__GSL__Linalg__SVD__Matrix_SV_decomp)
237 {
238 #ifdef dVAR
239 0 dVAR; dXSARGS;
240 #else
241 dXSARGS;
242 #endif
243 0 ▶ if (items != 4)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 4) 0 0 0
244 0 Perl_croak(aTHX_ "Usage: %s(%s)", "Math::GSL::Linalg::SVD::Matrix::SV_decomp", "m, M, v1, v2");
245 PERL_UNUSED_VAR(cv); /* -W */
246 {
247 Math__GSL__Linalg__SVD__Matrix m;
248 Math__GSL__Linalg__SVD__Matrix M;
249 Math__GSL__Linalg__SVD__Vector v1;
250 Math__GSL__Linalg__SVD__Vector v2;
251 int RETVAL;
252 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
253  
254 0 ▶ if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Matrix")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Matrix")) { 0 0 0
255 0 IV tmp = SvIV((SV*)SvRV(ST(0)));
256 0 m = INT2PTR(Math__GSL__Linalg__SVD__Matrix,tmp);
257 }
258 else
259 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
260 "Math::GSL::Linalg::SVD::Matrix::SV_decomp",
261 "m", "Math::GSL::Linalg::SVD::Matrix");
262  
263 0 ▶ if (sv_derived_from(ST(1), "Math::GSL::Linalg::SVD::Matrix")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(1), "Math::GSL::Linalg::SVD::Matrix")) { 0 0 0
264 0 IV tmp = SvIV((SV*)SvRV(ST(1)));
265 0 M = INT2PTR(Math__GSL__Linalg__SVD__Matrix,tmp);
266 }
267 else
268 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
269 "Math::GSL::Linalg::SVD::Matrix::SV_decomp",
270 "M", "Math::GSL::Linalg::SVD::Matrix");
271  
272 0 ▶ if (sv_derived_from(ST(2), "Math::GSL::Linalg::SVD::Vector")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(2), "Math::GSL::Linalg::SVD::Vector")) { 0 0 0
273 0 IV tmp = SvIV((SV*)SvRV(ST(2)));
274 0 v1 = INT2PTR(Math__GSL__Linalg__SVD__Vector,tmp);
275 }
276 else
277 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
278 "Math::GSL::Linalg::SVD::Matrix::SV_decomp",
279 "v1", "Math::GSL::Linalg::SVD::Vector");
280  
281 0 ▶ if (sv_derived_from(ST(3), "Math::GSL::Linalg::SVD::Vector")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(3), "Math::GSL::Linalg::SVD::Vector")) { 0 0 0
282 0 IV tmp = SvIV((SV*)SvRV(ST(3)));
283 0 v2 = INT2PTR(Math__GSL__Linalg__SVD__Vector,tmp);
284 }
285 else
286 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
287 "Math::GSL::Linalg::SVD::Matrix::SV_decomp",
288 "v2", "Math::GSL::Linalg::SVD::Vector");
289 #line 95 "SVD.xs"
290 RETVAL = gsl_linalg_SV_decomp ( m, M, v1, v2);
291 #line 292 "SVD.c"
292 0 ▶ XSprePUSH; PUSHi((IV)RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
XSprePUSH; PUSHi((IV)RETVAL); 0 0 0
293 }
294 0 XSRETURN(1);
295 }
296  
297  
298 XS(XS_Math__GSL__Linalg__SVD__Matrix_SV_decomp_mod); /* prototype to pass -Wmissing-prototypes */
299 0 XS(XS_Math__GSL__Linalg__SVD__Matrix_SV_decomp_mod)
300 {
301 #ifdef dVAR
302 0 dVAR; dXSARGS;
303 #else
304 dXSARGS;
305 #endif
306 0 ▶ if (items != 5)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 5) 0 0 0
307 0 Perl_croak(aTHX_ "Usage: %s(%s)", "Math::GSL::Linalg::SVD::Matrix::SV_decomp_mod", "m, X, M, v1, v2");
308 PERL_UNUSED_VAR(cv); /* -W */
309 {
310 Math__GSL__Linalg__SVD__Matrix m;
311 Math__GSL__Linalg__SVD__Matrix X;
312 Math__GSL__Linalg__SVD__Matrix M;
313 Math__GSL__Linalg__SVD__Vector v1;
314 Math__GSL__Linalg__SVD__Vector v2;
315 int RETVAL;
316 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
317  
318 0 ▶ if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Matrix")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Matrix")) { 0 0 0
319 0 IV tmp = SvIV((SV*)SvRV(ST(0)));
320 0 m = INT2PTR(Math__GSL__Linalg__SVD__Matrix,tmp);
321 }
322 else
323 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
324 "Math::GSL::Linalg::SVD::Matrix::SV_decomp_mod",
325 "m", "Math::GSL::Linalg::SVD::Matrix");
326  
327 0 ▶ if (sv_derived_from(ST(1), "Math::GSL::Linalg::SVD::Matrix")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(1), "Math::GSL::Linalg::SVD::Matrix")) { 0 0 0
328 0 IV tmp = SvIV((SV*)SvRV(ST(1)));
329 0 X = INT2PTR(Math__GSL__Linalg__SVD__Matrix,tmp);
330 }
331 else
332 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
333 "Math::GSL::Linalg::SVD::Matrix::SV_decomp_mod",
334 "X", "Math::GSL::Linalg::SVD::Matrix");
335  
336 0 ▶ if (sv_derived_from(ST(2), "Math::GSL::Linalg::SVD::Matrix")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(2), "Math::GSL::Linalg::SVD::Matrix")) { 0 0 0
337 0 IV tmp = SvIV((SV*)SvRV(ST(2)));
338 0 M = INT2PTR(Math__GSL__Linalg__SVD__Matrix,tmp);
339 }
340 else
341 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
342 "Math::GSL::Linalg::SVD::Matrix::SV_decomp_mod",
343 "M", "Math::GSL::Linalg::SVD::Matrix");
344  
345 0 ▶ if (sv_derived_from(ST(3), "Math::GSL::Linalg::SVD::Vector")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(3), "Math::GSL::Linalg::SVD::Vector")) { 0 0 0
346 0 IV tmp = SvIV((SV*)SvRV(ST(3)));
347 0 v1 = INT2PTR(Math__GSL__Linalg__SVD__Vector,tmp);
348 }
349 else
350 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
351 "Math::GSL::Linalg::SVD::Matrix::SV_decomp_mod",
352 "v1", "Math::GSL::Linalg::SVD::Vector");
353  
354 0 ▶ if (sv_derived_from(ST(4), "Math::GSL::Linalg::SVD::Vector")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(4), "Math::GSL::Linalg::SVD::Vector")) { 0 0 0
355 0 IV tmp = SvIV((SV*)SvRV(ST(4)));
356 0 v2 = INT2PTR(Math__GSL__Linalg__SVD__Vector,tmp);
357 }
358 else
359 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
360 "Math::GSL::Linalg::SVD::Matrix::SV_decomp_mod",
361 "v2", "Math::GSL::Linalg::SVD::Vector");
362 #line 107 "SVD.xs"
363 RETVAL = gsl_linalg_SV_decomp_mod ( m, X, M, v1, v2);
364 #line 365 "SVD.c"
365 0 ▶ XSprePUSH; PUSHi((IV)RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
XSprePUSH; PUSHi((IV)RETVAL); 0 0 0
366 }
367 0 XSRETURN(1);
368 }
369  
370  
371 XS(XS_Math__GSL__Linalg__SVD__Matrix_SV_decomp_jacobi); /* prototype to pass -Wmissing-prototypes */
372 0 XS(XS_Math__GSL__Linalg__SVD__Matrix_SV_decomp_jacobi)
373 {
374 #ifdef dVAR
375 0 dVAR; dXSARGS;
376 #else
377 dXSARGS;
378 #endif
379 0 ▶ if (items != 3)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 3) 0 0 0
380 0 Perl_croak(aTHX_ "Usage: %s(%s)", "Math::GSL::Linalg::SVD::Matrix::SV_decomp_jacobi", "m, M, v1");
381 PERL_UNUSED_VAR(cv); /* -W */
382 {
383 Math__GSL__Linalg__SVD__Matrix m;
384 Math__GSL__Linalg__SVD__Matrix M;
385 Math__GSL__Linalg__SVD__Vector v1;
386 int RETVAL;
387 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
388  
389 0 ▶ if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Matrix")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Matrix")) { 0 0 0
390 0 IV tmp = SvIV((SV*)SvRV(ST(0)));
391 0 m = INT2PTR(Math__GSL__Linalg__SVD__Matrix,tmp);
392 }
393 else
394 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
395 "Math::GSL::Linalg::SVD::Matrix::SV_decomp_jacobi",
396 "m", "Math::GSL::Linalg::SVD::Matrix");
397  
398 0 ▶ if (sv_derived_from(ST(1), "Math::GSL::Linalg::SVD::Matrix")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(1), "Math::GSL::Linalg::SVD::Matrix")) { 0 0 0
399 0 IV tmp = SvIV((SV*)SvRV(ST(1)));
400 0 M = INT2PTR(Math__GSL__Linalg__SVD__Matrix,tmp);
401 }
402 else
403 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
404 "Math::GSL::Linalg::SVD::Matrix::SV_decomp_jacobi",
405 "M", "Math::GSL::Linalg::SVD::Matrix");
406  
407 0 ▶ if (sv_derived_from(ST(2), "Math::GSL::Linalg::SVD::Vector")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(2), "Math::GSL::Linalg::SVD::Vector")) { 0 0 0
408 0 IV tmp = SvIV((SV*)SvRV(ST(2)));
409 0 v1 = INT2PTR(Math__GSL__Linalg__SVD__Vector,tmp);
410 }
411 else
412 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
413 "Math::GSL::Linalg::SVD::Matrix::SV_decomp_jacobi",
414 "v1", "Math::GSL::Linalg::SVD::Vector");
415 #line 117 "SVD.xs"
416 RETVAL = gsl_linalg_SV_decomp_jacobi ( m, M, v1);
417 #line 418 "SVD.c"
418 0 ▶ XSprePUSH; PUSHi((IV)RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
XSprePUSH; PUSHi((IV)RETVAL); 0 0 0
419 }
420 0 XSRETURN(1);
421 }
422  
423  
424 XS(XS_Math__GSL__Linalg__SVD__Matrix_Eigen_decomp); /* prototype to pass -Wmissing-prototypes */
425 0 XS(XS_Math__GSL__Linalg__SVD__Matrix_Eigen_decomp)
426 {
427 #ifdef dVAR
428 0 dVAR; dXSARGS;
429 #else
430 dXSARGS;
431 #endif
432 0 ▶ if (items != 4)
Branch: 1 branch
BranchTrueFalseTotal
if (items != 4) 0 0 0
433 0 Perl_croak(aTHX_ "Usage: %s(%s)", "Math::GSL::Linalg::SVD::Matrix::Eigen_decomp", "m, ev, em, ew");
434 PERL_UNUSED_VAR(cv); /* -W */
435 {
436 Math__GSL__Linalg__SVD__Matrix m;
437 Math__GSL__Linalg__SVD__Vector ev;
438 Math__GSL__Linalg__SVD__Matrix em;
439 Math__GSL__Linalg__SVD__Eigen ew;
440 int RETVAL;
441 0 ▶ dXSTARG;
Branch: 1 branch
BranchTrueFalseTotal
dXSTARG; 0 0 0
442  
443 0 ▶ if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Matrix")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(0), "Math::GSL::Linalg::SVD::Matrix")) { 0 0 0
444 0 IV tmp = SvIV((SV*)SvRV(ST(0)));
445 0 m = INT2PTR(Math__GSL__Linalg__SVD__Matrix,tmp);
446 }
447 else
448 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
449 "Math::GSL::Linalg::SVD::Matrix::Eigen_decomp",
450 "m", "Math::GSL::Linalg::SVD::Matrix");
451  
452 0 ▶ if (sv_derived_from(ST(1), "Math::GSL::Linalg::SVD::Vector")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(1), "Math::GSL::Linalg::SVD::Vector")) { 0 0 0
453 0 IV tmp = SvIV((SV*)SvRV(ST(1)));
454 0 ev = INT2PTR(Math__GSL__Linalg__SVD__Vector,tmp);
455 }
456 else
457 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
458 "Math::GSL::Linalg::SVD::Matrix::Eigen_decomp",
459 "ev", "Math::GSL::Linalg::SVD::Vector");
460  
461 0 ▶ if (sv_derived_from(ST(2), "Math::GSL::Linalg::SVD::Matrix")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(2), "Math::GSL::Linalg::SVD::Matrix")) { 0 0 0
462 0 IV tmp = SvIV((SV*)SvRV(ST(2)));
463 0 em = INT2PTR(Math__GSL__Linalg__SVD__Matrix,tmp);
464 }
465 else
466 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
467 "Math::GSL::Linalg::SVD::Matrix::Eigen_decomp",
468 "em", "Math::GSL::Linalg::SVD::Matrix");
469  
470 0 ▶ if (sv_derived_from(ST(3), "Math::GSL::Linalg::SVD::Eigen")) {
Branch: 1 branch
BranchTrueFalseTotal
if (sv_derived_from(ST(3), "Math::GSL::Linalg::SVD::Eigen")) { 0 0 0
471 0 IV tmp = SvIV((SV*)SvRV(ST(3)));
472 0 ew = INT2PTR(Math__GSL__Linalg__SVD__Eigen,tmp);
473 }
474 else
475 0 Perl_croak(aTHX_ "%s: %s is not of type %s",
476 "Math::GSL::Linalg::SVD::Matrix::Eigen_decomp",
477 "ew", "Math::GSL::Linalg::SVD::Eigen");
478 #line 129 "SVD.xs"
479 RETVAL = gsl_eigen_symmv ( m, ev, em, ew);
480 #line 481 "SVD.c"
481 0 ▶ XSprePUSH; PUSHi((IV)RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
XSprePUSH; PUSHi((IV)RETVAL); 0 0 0
482 }
483 0 XSRETURN(1);
484 }
485  
486 #ifdef __cplusplus
487 extern "C"
488 #endif
489 XS(boot_Math__GSL__Linalg__SVD); /* prototype to pass -Wmissing-prototypes */
490 0 XS(boot_Math__GSL__Linalg__SVD)
491 {
492 #ifdef dVAR
493 0 dVAR; dXSARGS;
494 #else
495 dXSARGS;
496 #endif
497 0 char* file = __FILE__;
498  
499 PERL_UNUSED_VAR(cv); /* -W */
500 PERL_UNUSED_VAR(items); /* -W */
501 0 XS_VERSION_BOOTCHECK ;
502  
503 0 newXSproto("Math::GSL::Linalg::SVD::Eigen::new", XS_Math__GSL__Linalg__SVD__Eigen_new, file, "$$");
504 0 newXSproto("Math::GSL::Linalg::SVD::Vector::new", XS_Math__GSL__Linalg__SVD__Vector_new, file, "$$");
505 0 newXSproto("Math::GSL::Linalg::SVD::Vector::vector_set", XS_Math__GSL__Linalg__SVD__Vector_vector_set, file, "$$$");
506 0 newXSproto("Math::GSL::Linalg::SVD::Vector::vector_get", XS_Math__GSL__Linalg__SVD__Vector_vector_get, file, "$$");
507 0 newXSproto("Math::GSL::Linalg::SVD::Matrix::new", XS_Math__GSL__Linalg__SVD__Matrix_new, file, "$$$");
508 0 newXSproto("Math::GSL::Linalg::SVD::Matrix::matrix_set", XS_Math__GSL__Linalg__SVD__Matrix_matrix_set, file, "$$$$");
509 0 newXSproto("Math::GSL::Linalg::SVD::Matrix::matrix_get", XS_Math__GSL__Linalg__SVD__Matrix_matrix_get, file, "$$$");
510 0 newXSproto("Math::GSL::Linalg::SVD::Matrix::SV_decomp", XS_Math__GSL__Linalg__SVD__Matrix_SV_decomp, file, "$$$$");
511 0 newXSproto("Math::GSL::Linalg::SVD::Matrix::SV_decomp_mod", XS_Math__GSL__Linalg__SVD__Matrix_SV_decomp_mod, file, "$$$$$");
512 0 newXSproto("Math::GSL::Linalg::SVD::Matrix::SV_decomp_jacobi", XS_Math__GSL__Linalg__SVD__Matrix_SV_decomp_jacobi, file, "$$$");
513 0 newXSproto("Math::GSL::Linalg::SVD::Matrix::Eigen_decomp", XS_Math__GSL__Linalg__SVD__Matrix_Eigen_decomp, file, "$$$$");
514 0 ▶ if (PL_unitcheckav)
Branch: 1 branch
BranchTrueFalseTotal
if (PL_unitcheckav) 0 0 0
515 0 call_list(PL_scopestack_ix, PL_unitcheckav);
516 0 XSRETURN_YES;
517 }
518  
« blib/lib/Math/GSL/Linalg/SVD.pm ↑ Summary