Levmar.xs

filter: Statementstmt 51.2% 83 / 162 Branchbran 20.1% 126 / 626 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 26.5% 209 / 788 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« pp-levmar_diff_ub.c ↑ Summary pp-levmar_diff_lb_ub.c »
1  
2 #line 453 "lib/PDL/PP.pm"
3 /*
4 * THIS FILE WAS GENERATED BY PDL::PP from levmar.pd! Do not modify!
5 */
6  
7 #define PDL_FREE_CODE(trans, destroy, comp_free_code, ntpriv_free_code) \
8 if (destroy) { \
9 comp_free_code \
10 } \
11 if ((trans)->dims_redone) { \
12 ntpriv_free_code \
13 }
14  
15 #include "EXTERN.h"
16 #include "perl.h"
17 #include "XSUB.h"
18 #include "pdl.h"
19 #include "pdlcore.h"
20 #define PDL PDL_Fit_Levmar
21 extern Core* PDL; /* Structure hold core C functions */
22 #line 23 "Levmar.xs"
23  
24 #include <stdio.h>
25 #include <stdlib.h>
26 #include <math.h>
27 #include <float.h>
28 #include "pdlperlfunc.h"
29 #include "levmar.h"
30 pdl_error pdl_run_levmar_der_ub(pdl *p,pdl *x,pdl *t,pdl *ub,pdl *iopts,pdl *opts,pdl *covar,pdl *returnval,pdl *pout,pdl *info,IV funcn,IV sfuncn,IV jacn,IV sjacn,IV indat,int want_covar);
31 pdl_error pdl_run_levmar_der_lb_ub(pdl *p,pdl *x,pdl *t,pdl *lb,pdl *ub,pdl *iopts,pdl *opts,pdl *covar,pdl *returnval,pdl *pout,pdl *info,IV funcn,IV sfuncn,IV jacn,IV sjacn,IV indat,int want_covar);
32 pdl_error pdl_run_levmar_der_lb(pdl *p,pdl *x,pdl *t,pdl *lb,pdl *iopts,pdl *opts,pdl *covar,pdl *returnval,pdl *pout,pdl *info,IV funcn,IV sfuncn,IV jacn,IV sjacn,IV indat,int want_covar);
33 pdl_error pdl_run_levmar_der_(pdl *p,pdl *x,pdl *t,pdl *iopts,pdl *opts,pdl *covar,pdl *returnval,pdl *pout,pdl *info,IV funcn,IV sfuncn,IV jacn,IV sjacn,IV indat,int want_covar);
34 pdl_error pdl_run_levmar_diff_ub(pdl *p,pdl *x,pdl *t,pdl *ub,pdl *iopts,pdl *opts,pdl *covar,pdl *returnval,pdl *pout,pdl *info,IV funcn,IV sfuncn,IV indat,int want_covar);
35 pdl_error pdl_run_levmar_diff_lb_ub(pdl *p,pdl *x,pdl *t,pdl *lb,pdl *ub,pdl *iopts,pdl *opts,pdl *covar,pdl *returnval,pdl *pout,pdl *info,IV funcn,IV sfuncn,IV indat,int want_covar);
36 pdl_error pdl_run_levmar_diff_lb(pdl *p,pdl *x,pdl *t,pdl *lb,pdl *iopts,pdl *opts,pdl *covar,pdl *returnval,pdl *pout,pdl *info,IV funcn,IV sfuncn,IV indat,int want_covar);
37 pdl_error pdl_run_levmar_diff_(pdl *p,pdl *x,pdl *t,pdl *iopts,pdl *opts,pdl *covar,pdl *returnval,pdl *pout,pdl *info,IV funcn,IV sfuncn,IV indat,int want_covar);
38 pdl_error pdl_run__levmar_chkjac(pdl *p,pdl *t,pdl *err,IV func,IV sfunc,IV jac,IV sjac,IV indat);
39 pdl_error pdl_run__levmar_chkjac_no_t(pdl *p,pdl *err,IV func,IV sfunc,IV jac,IV sjac,int N,IV indat);
40  
41 #line 449 "lib/PDL/PP.pm"
42 #include "pdlperl.h"
43 #line 44 "Levmar.xs"
44  
45 Core* PDL = NULL; /* Structure hold core C functions */
46  
47 MODULE = PDL::Fit::Levmar PACKAGE = PDL PREFIX=pdl_run_
48  
49 PROTOTYPES: DISABLE
50  
51  
52 void
53 pdl_run_levmar_der_ub(p, x, t, ub, iopts, opts, covar=covar, returnval=returnval, pout=pout, info=info, funcn=funcn, sfuncn=sfuncn, jacn=jacn, sjacn=sjacn, indat=indat, want_covar=want_covar)
54 SV *covar_SV = (items == 16) ? ST(6) : NULL;
55 SV *returnval_SV = (items == 16) ? ST(7) : NULL;
56 SV *pout_SV = (items == 16) ? ST(8) : NULL;
57 SV *info_SV = (items == 16) ? ST(9) : NULL;
58 SV *funcn_SV = (items == 16) ? ST(10) : ST(6);
59 SV *sfuncn_SV = (items == 16) ? ST(11) : ST(7);
60 SV *jacn_SV = (items == 16) ? ST(12) : ST(8);
61 SV *sjacn_SV = (items == 16) ? ST(13) : ST(9);
62 SV *indat_SV = (items == 16) ? ST(14) : ST(10);
63 SV *want_covar_SV = (items == 16) ? ST(15) : ST(11);
64 PREINIT:
65 0 ▶ PDL_XS_PREAMBLE((items == 16) ? 0 : 4);
Branch: 11 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
66 0 ▶ if (!((items == 12) || (items == 16)))
Branch: 2 branches
BranchTrueFalseTotal
if (!((items == 12) || (items == 16))) 0 0 0
if (!((items == 12) || (items == 16))) 0 0 0
67 0 croak("Usage: PDL::levmar_der_ub(p,x,t,ub,iopts,opts,[covar],[returnval],[pout],[info],funcn,sfuncn,jacn,sjacn,indat,want_covar) (you may leave [outputs] and values with =defaults out of list)");
68 INPUT:
69 pdl *p
70 pdl *x
71 pdl *t
72 pdl *ub
73 pdl *iopts
74 pdl *opts
75 pdl *covar=NO_INIT
76 pdl *returnval=NO_INIT
77 pdl *pout=NO_INIT
78 pdl *info=NO_INIT
79 IV funcn; { funcn = (IV)SvIV(funcn_SV); }
80 IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); }
81 IV jacn; { jacn = (IV)SvIV(jacn_SV); }
82 IV sjacn; { sjacn = (IV)SvIV(sjacn_SV); }
83 IV indat; { indat = (IV)SvIV(indat_SV); }
84 int want_covar; { want_covar = (int)SvIV(want_covar_SV); }
85 PPCODE:
86 0 ▶ if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 0 0 0
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 0 0 0
87 0 ▶ if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 0 0 0
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 0 0 0
88 0 ▶ if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 0 0 0
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 0 0 0
89 0 ▶ if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 0 0 0
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 0 0 0
90 0 ▶ if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_ub: p->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_ub: p->inplace but not supported"); 0 0 0
91 0 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_ub: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_ub: x->inplace but not supported"); 0 0 0
92 0 ▶ if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_ub: t->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_ub: t->inplace but not supported"); 0 0 0
93 0 ▶ if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_der_ub: ub->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_der_ub: ub->inplace but not supported"); 0 0 0
94 0 ▶ if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_ub: iopts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_ub: iopts->inplace but not supported"); 0 0 0
95 0 ▶ if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_ub: opts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_ub: opts->inplace but not supported"); 0 0 0
96 0 PDL->barf_if_error(pdl_run_levmar_der_ub(p,x,t,ub,iopts,opts,covar,returnval,pout,info,funcn,sfuncn,jacn,sjacn,indat,want_covar));
97 0 ▶ PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
98  
99 void
100 pdl_run_levmar_der_lb_ub(p, x, t, lb, ub, iopts, opts, covar=covar, returnval=returnval, pout=pout, info=info, funcn=funcn, sfuncn=sfuncn, jacn=jacn, sjacn=sjacn, indat=indat, want_covar=want_covar)
101 SV *covar_SV = (items == 17) ? ST(7) : NULL;
102 SV *returnval_SV = (items == 17) ? ST(8) : NULL;
103 SV *pout_SV = (items == 17) ? ST(9) : NULL;
104 SV *info_SV = (items == 17) ? ST(10) : NULL;
105 SV *funcn_SV = (items == 17) ? ST(11) : ST(7);
106 SV *sfuncn_SV = (items == 17) ? ST(12) : ST(8);
107 SV *jacn_SV = (items == 17) ? ST(13) : ST(9);
108 SV *sjacn_SV = (items == 17) ? ST(14) : ST(10);
109 SV *indat_SV = (items == 17) ? ST(15) : ST(11);
110 SV *want_covar_SV = (items == 17) ? ST(16) : ST(12);
111 PREINIT:
112 10 ▶ PDL_XS_PREAMBLE((items == 17) ? 0 : 4);
Branch: 11 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 17) ? 0 : 4); 10 0 10
PDL_XS_PREAMBLE((items == 17) ? 0 : 4); 10 0 10
PDL_XS_PREAMBLE((items == 17) ? 0 : 4); 0 10 10
PDL_XS_PREAMBLE((items == 17) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 17) ? 0 : 4); 10 0 10
PDL_XS_PREAMBLE((items == 17) ? 0 : 4); 10 0 10
PDL_XS_PREAMBLE((items == 17) ? 0 : 4); 10 0 10
PDL_XS_PREAMBLE((items == 17) ? 0 : 4); 0 10 10
PDL_XS_PREAMBLE((items == 17) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 17) ? 0 : 4); 10 0 10
PDL_XS_PREAMBLE((items == 17) ? 0 : 4); 0 10 10
113 10 ▶ if (!((items == 13) || (items == 17)))
Branch: 2 branches
BranchTrueFalseTotal
if (!((items == 13) || (items == 17))) 10 0 10
if (!((items == 13) || (items == 17))) 0 10 10
114 0 croak("Usage: PDL::levmar_der_lb_ub(p,x,t,lb,ub,iopts,opts,[covar],[returnval],[pout],[info],funcn,sfuncn,jacn,sjacn,indat,want_covar) (you may leave [outputs] and values with =defaults out of list)");
115 INPUT:
116 pdl *p
117 pdl *x
118 pdl *t
119 pdl *lb
120 pdl *ub
121 pdl *iopts
122 pdl *opts
123 pdl *covar=NO_INIT
124 pdl *returnval=NO_INIT
125 pdl *pout=NO_INIT
126 pdl *info=NO_INIT
127 IV funcn; { funcn = (IV)SvIV(funcn_SV); }
128 IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); }
129 IV jacn; { jacn = (IV)SvIV(jacn_SV); }
130 IV sjacn; { sjacn = (IV)SvIV(sjacn_SV); }
131 IV indat; { indat = (IV)SvIV(indat_SV); }
132 int want_covar; { want_covar = (int)SvIV(want_covar_SV); }
133 PPCODE:
134 10 ▶ if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 10 0 10
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 0 0 0
135 10 ▶ if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 10 0 10
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 0 0 0
136 10 ▶ if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 10 0 10
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 0 0 0
137 10 ▶ if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 10 0 10
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 0 0 0
138 10 ▶ if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_lb_ub: p->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_lb_ub: p->inplace but not supported"); 0 10 10
139 10 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_lb_ub: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_lb_ub: x->inplace but not supported"); 0 10 10
140 10 ▶ if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_lb_ub: t->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_lb_ub: t->inplace but not supported"); 0 10 10
141 10 ▶ if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_der_lb_ub: lb->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_der_lb_ub: lb->inplace but not supported"); 0 10 10
142 10 ▶ if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_der_lb_ub: ub->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_der_lb_ub: ub->inplace but not supported"); 0 10 10
143 10 ▶ if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_lb_ub: iopts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_lb_ub: iopts->inplace but not supported"); 0 10 10
144 10 ▶ if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_lb_ub: opts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_lb_ub: opts->inplace but not supported"); 0 10 10
145 10 PDL->barf_if_error(pdl_run_levmar_der_lb_ub(p,x,t,lb,ub,iopts,opts,covar,returnval,pout,info,funcn,sfuncn,jacn,sjacn,indat,want_covar));
146 10 ▶ PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 10 10
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 10 10
147  
148 void
149 pdl_run_levmar_der_lb(p, x, t, lb, iopts, opts, covar=covar, returnval=returnval, pout=pout, info=info, funcn=funcn, sfuncn=sfuncn, jacn=jacn, sjacn=sjacn, indat=indat, want_covar=want_covar)
150 SV *covar_SV = (items == 16) ? ST(6) : NULL;
151 SV *returnval_SV = (items == 16) ? ST(7) : NULL;
152 SV *pout_SV = (items == 16) ? ST(8) : NULL;
153 SV *info_SV = (items == 16) ? ST(9) : NULL;
154 SV *funcn_SV = (items == 16) ? ST(10) : ST(6);
155 SV *sfuncn_SV = (items == 16) ? ST(11) : ST(7);
156 SV *jacn_SV = (items == 16) ? ST(12) : ST(8);
157 SV *sjacn_SV = (items == 16) ? ST(13) : ST(9);
158 SV *indat_SV = (items == 16) ? ST(14) : ST(10);
159 SV *want_covar_SV = (items == 16) ? ST(15) : ST(11);
160 PREINIT:
161 0 ▶ PDL_XS_PREAMBLE((items == 16) ? 0 : 4);
Branch: 11 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 16) ? 0 : 4); 0 0 0
162 0 ▶ if (!((items == 12) || (items == 16)))
Branch: 2 branches
BranchTrueFalseTotal
if (!((items == 12) || (items == 16))) 0 0 0
if (!((items == 12) || (items == 16))) 0 0 0
163 0 croak("Usage: PDL::levmar_der_lb(p,x,t,lb,iopts,opts,[covar],[returnval],[pout],[info],funcn,sfuncn,jacn,sjacn,indat,want_covar) (you may leave [outputs] and values with =defaults out of list)");
164 INPUT:
165 pdl *p
166 pdl *x
167 pdl *t
168 pdl *lb
169 pdl *iopts
170 pdl *opts
171 pdl *covar=NO_INIT
172 pdl *returnval=NO_INIT
173 pdl *pout=NO_INIT
174 pdl *info=NO_INIT
175 IV funcn; { funcn = (IV)SvIV(funcn_SV); }
176 IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); }
177 IV jacn; { jacn = (IV)SvIV(jacn_SV); }
178 IV sjacn; { sjacn = (IV)SvIV(sjacn_SV); }
179 IV indat; { indat = (IV)SvIV(indat_SV); }
180 int want_covar; { want_covar = (int)SvIV(want_covar_SV); }
181 PPCODE:
182 0 ▶ if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 0 0 0
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 0 0 0
183 0 ▶ if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 0 0 0
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 0 0 0
184 0 ▶ if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 0 0 0
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 0 0 0
185 0 ▶ if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 0 0 0
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 0 0 0
186 0 ▶ if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_lb: p->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_lb: p->inplace but not supported"); 0 0 0
187 0 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_lb: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_lb: x->inplace but not supported"); 0 0 0
188 0 ▶ if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_lb: t->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_lb: t->inplace but not supported"); 0 0 0
189 0 ▶ if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_der_lb: lb->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_der_lb: lb->inplace but not supported"); 0 0 0
190 0 ▶ if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_lb: iopts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_lb: iopts->inplace but not supported"); 0 0 0
191 0 ▶ if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_lb: opts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_lb: opts->inplace but not supported"); 0 0 0
192 0 PDL->barf_if_error(pdl_run_levmar_der_lb(p,x,t,lb,iopts,opts,covar,returnval,pout,info,funcn,sfuncn,jacn,sjacn,indat,want_covar));
193 0 ▶ PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
194  
195 void
196 pdl_run_levmar_der_(p, x, t, iopts, opts, covar=covar, returnval=returnval, pout=pout, info=info, funcn=funcn, sfuncn=sfuncn, jacn=jacn, sjacn=sjacn, indat=indat, want_covar=want_covar)
197 SV *covar_SV = (items == 15) ? ST(5) : NULL;
198 SV *returnval_SV = (items == 15) ? ST(6) : NULL;
199 SV *pout_SV = (items == 15) ? ST(7) : NULL;
200 SV *info_SV = (items == 15) ? ST(8) : NULL;
201 SV *funcn_SV = (items == 15) ? ST(9) : ST(5);
202 SV *sfuncn_SV = (items == 15) ? ST(10) : ST(6);
203 SV *jacn_SV = (items == 15) ? ST(11) : ST(7);
204 SV *sjacn_SV = (items == 15) ? ST(12) : ST(8);
205 SV *indat_SV = (items == 15) ? ST(13) : ST(9);
206 SV *want_covar_SV = (items == 15) ? ST(14) : ST(10);
207 PREINIT:
208 60 ▶ PDL_XS_PREAMBLE((items == 15) ? 0 : 4);
Branch: 11 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 60 0 60
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 60 0 60
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 0 60 60
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 60 0 60
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 60 0 60
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 60 0 60
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 0 60 60
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 60 0 60
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 0 60 60
209 60 ▶ if (!((items == 11) || (items == 15)))
Branch: 2 branches
BranchTrueFalseTotal
if (!((items == 11) || (items == 15))) 60 0 60
if (!((items == 11) || (items == 15))) 0 60 60
210 0 croak("Usage: PDL::levmar_der_(p,x,t,iopts,opts,[covar],[returnval],[pout],[info],funcn,sfuncn,jacn,sjacn,indat,want_covar) (you may leave [outputs] and values with =defaults out of list)");
211 INPUT:
212 pdl *p
213 pdl *x
214 pdl *t
215 pdl *iopts
216 pdl *opts
217 pdl *covar=NO_INIT
218 pdl *returnval=NO_INIT
219 pdl *pout=NO_INIT
220 pdl *info=NO_INIT
221 IV funcn; { funcn = (IV)SvIV(funcn_SV); }
222 IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); }
223 IV jacn; { jacn = (IV)SvIV(jacn_SV); }
224 IV sjacn; { sjacn = (IV)SvIV(sjacn_SV); }
225 IV indat; { indat = (IV)SvIV(indat_SV); }
226 int want_covar; { want_covar = (int)SvIV(want_covar_SV); }
227 PPCODE:
228 60 ▶ if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 60 0 60
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 0 0 0
229 60 ▶ if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 60 0 60
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 0 0 0
230 60 ▶ if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 60 0 60
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 0 0 0
231 60 ▶ if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 60 0 60
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 0 0 0
232 60 ▶ if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_: p->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_: p->inplace but not supported"); 0 60 60
233 60 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_: x->inplace but not supported"); 0 60 60
234 60 ▶ if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_: t->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_: t->inplace but not supported"); 0 60 60
235 60 ▶ if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_: iopts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_: iopts->inplace but not supported"); 0 60 60
236 60 ▶ if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_: opts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_: opts->inplace but not supported"); 0 60 60
237 60 PDL->barf_if_error(pdl_run_levmar_der_(p,x,t,iopts,opts,covar,returnval,pout,info,funcn,sfuncn,jacn,sjacn,indat,want_covar));
238 60 ▶ PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 60 60
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 60 60
239  
240 void
241 pdl_run_levmar_diff_ub(p, x, t, ub, iopts, opts, covar=covar, returnval=returnval, pout=pout, info=info, funcn=funcn, sfuncn=sfuncn, indat=indat, want_covar=want_covar)
242 SV *covar_SV = (items == 14) ? ST(6) : NULL;
243 SV *returnval_SV = (items == 14) ? ST(7) : NULL;
244 SV *pout_SV = (items == 14) ? ST(8) : NULL;
245 SV *info_SV = (items == 14) ? ST(9) : NULL;
246 SV *funcn_SV = (items == 14) ? ST(10) : ST(6);
247 SV *sfuncn_SV = (items == 14) ? ST(11) : ST(7);
248 SV *indat_SV = (items == 14) ? ST(12) : ST(8);
249 SV *want_covar_SV = (items == 14) ? ST(13) : ST(9);
250 PREINIT:
251 0 ▶ PDL_XS_PREAMBLE((items == 14) ? 0 : 4);
Branch: 11 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
252 0 ▶ if (!((items == 10) || (items == 14)))
Branch: 2 branches
BranchTrueFalseTotal
if (!((items == 10) || (items == 14))) 0 0 0
if (!((items == 10) || (items == 14))) 0 0 0
253 0 croak("Usage: PDL::levmar_diff_ub(p,x,t,ub,iopts,opts,[covar],[returnval],[pout],[info],funcn,sfuncn,indat,want_covar) (you may leave [outputs] and values with =defaults out of list)");
254 INPUT:
255 pdl *p
256 pdl *x
257 pdl *t
258 pdl *ub
259 pdl *iopts
260 pdl *opts
261 pdl *covar=NO_INIT
262 pdl *returnval=NO_INIT
263 pdl *pout=NO_INIT
264 pdl *info=NO_INIT
265 IV funcn; { funcn = (IV)SvIV(funcn_SV); }
266 IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); }
267 IV indat; { indat = (IV)SvIV(indat_SV); }
268 int want_covar; { want_covar = (int)SvIV(want_covar_SV); }
269 PPCODE:
270 0 ▶ if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 0 0 0
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 0 0 0
271 0 ▶ if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 0 0 0
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 0 0 0
272 0 ▶ if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 0 0 0
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 0 0 0
273 0 ▶ if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 0 0 0
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 0 0 0
274 0 ▶ if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_ub: p->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_ub: p->inplace but not supported"); 0 0 0
275 0 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_ub: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_ub: x->inplace but not supported"); 0 0 0
276 0 ▶ if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_ub: t->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_ub: t->inplace but not supported"); 0 0 0
277 0 ▶ if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_diff_ub: ub->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_diff_ub: ub->inplace but not supported"); 0 0 0
278 0 ▶ if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_ub: iopts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_ub: iopts->inplace but not supported"); 0 0 0
279 0 ▶ if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_ub: opts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_ub: opts->inplace but not supported"); 0 0 0
280 0 PDL->barf_if_error(pdl_run_levmar_diff_ub(p,x,t,ub,iopts,opts,covar,returnval,pout,info,funcn,sfuncn,indat,want_covar));
281 0 ▶ PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
282  
283 void
284 pdl_run_levmar_diff_lb_ub(p, x, t, lb, ub, iopts, opts, covar=covar, returnval=returnval, pout=pout, info=info, funcn=funcn, sfuncn=sfuncn, indat=indat, want_covar=want_covar)
285 SV *covar_SV = (items == 15) ? ST(7) : NULL;
286 SV *returnval_SV = (items == 15) ? ST(8) : NULL;
287 SV *pout_SV = (items == 15) ? ST(9) : NULL;
288 SV *info_SV = (items == 15) ? ST(10) : NULL;
289 SV *funcn_SV = (items == 15) ? ST(11) : ST(7);
290 SV *sfuncn_SV = (items == 15) ? ST(12) : ST(8);
291 SV *indat_SV = (items == 15) ? ST(13) : ST(9);
292 SV *want_covar_SV = (items == 15) ? ST(14) : ST(10);
293 PREINIT:
294 5 ▶ PDL_XS_PREAMBLE((items == 15) ? 0 : 4);
Branch: 11 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 5 0 5
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 5 0 5
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 0 5 5
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 5 0 5
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 5 0 5
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 5 0 5
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 0 5 5
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 5 0 5
PDL_XS_PREAMBLE((items == 15) ? 0 : 4); 0 5 5
295 5 ▶ if (!((items == 11) || (items == 15)))
Branch: 2 branches
BranchTrueFalseTotal
if (!((items == 11) || (items == 15))) 5 0 5
if (!((items == 11) || (items == 15))) 0 5 5
296 0 croak("Usage: PDL::levmar_diff_lb_ub(p,x,t,lb,ub,iopts,opts,[covar],[returnval],[pout],[info],funcn,sfuncn,indat,want_covar) (you may leave [outputs] and values with =defaults out of list)");
297 INPUT:
298 pdl *p
299 pdl *x
300 pdl *t
301 pdl *lb
302 pdl *ub
303 pdl *iopts
304 pdl *opts
305 pdl *covar=NO_INIT
306 pdl *returnval=NO_INIT
307 pdl *pout=NO_INIT
308 pdl *info=NO_INIT
309 IV funcn; { funcn = (IV)SvIV(funcn_SV); }
310 IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); }
311 IV indat; { indat = (IV)SvIV(indat_SV); }
312 int want_covar; { want_covar = (int)SvIV(want_covar_SV); }
313 PPCODE:
314 5 ▶ if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 5 0 5
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 0 0 0
315 5 ▶ if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 5 0 5
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 0 0 0
316 5 ▶ if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 5 0 5
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 0 0 0
317 5 ▶ if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 5 0 5
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 0 0 0
318 5 ▶ if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_lb_ub: p->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_lb_ub: p->inplace but not supported"); 0 5 5
319 5 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_lb_ub: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_lb_ub: x->inplace but not supported"); 0 5 5
320 5 ▶ if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_lb_ub: t->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_lb_ub: t->inplace but not supported"); 0 5 5
321 5 ▶ if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_diff_lb_ub: lb->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_diff_lb_ub: lb->inplace but not supported"); 0 5 5
322 5 ▶ if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_diff_lb_ub: ub->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_diff_lb_ub: ub->inplace but not supported"); 0 5 5
323 5 ▶ if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_lb_ub: iopts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_lb_ub: iopts->inplace but not supported"); 0 5 5
324 5 ▶ if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_lb_ub: opts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_lb_ub: opts->inplace but not supported"); 0 5 5
325 5 PDL->barf_if_error(pdl_run_levmar_diff_lb_ub(p,x,t,lb,ub,iopts,opts,covar,returnval,pout,info,funcn,sfuncn,indat,want_covar));
326 5 ▶ PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 5 5
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 5 5
327  
328 void
329 pdl_run_levmar_diff_lb(p, x, t, lb, iopts, opts, covar=covar, returnval=returnval, pout=pout, info=info, funcn=funcn, sfuncn=sfuncn, indat=indat, want_covar=want_covar)
330 SV *covar_SV = (items == 14) ? ST(6) : NULL;
331 SV *returnval_SV = (items == 14) ? ST(7) : NULL;
332 SV *pout_SV = (items == 14) ? ST(8) : NULL;
333 SV *info_SV = (items == 14) ? ST(9) : NULL;
334 SV *funcn_SV = (items == 14) ? ST(10) : ST(6);
335 SV *sfuncn_SV = (items == 14) ? ST(11) : ST(7);
336 SV *indat_SV = (items == 14) ? ST(12) : ST(8);
337 SV *want_covar_SV = (items == 14) ? ST(13) : ST(9);
338 PREINIT:
339 0 ▶ PDL_XS_PREAMBLE((items == 14) ? 0 : 4);
Branch: 11 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 14) ? 0 : 4); 0 0 0
340 0 ▶ if (!((items == 10) || (items == 14)))
Branch: 2 branches
BranchTrueFalseTotal
if (!((items == 10) || (items == 14))) 0 0 0
if (!((items == 10) || (items == 14))) 0 0 0
341 0 croak("Usage: PDL::levmar_diff_lb(p,x,t,lb,iopts,opts,[covar],[returnval],[pout],[info],funcn,sfuncn,indat,want_covar) (you may leave [outputs] and values with =defaults out of list)");
342 INPUT:
343 pdl *p
344 pdl *x
345 pdl *t
346 pdl *lb
347 pdl *iopts
348 pdl *opts
349 pdl *covar=NO_INIT
350 pdl *returnval=NO_INIT
351 pdl *pout=NO_INIT
352 pdl *info=NO_INIT
353 IV funcn; { funcn = (IV)SvIV(funcn_SV); }
354 IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); }
355 IV indat; { indat = (IV)SvIV(indat_SV); }
356 int want_covar; { want_covar = (int)SvIV(want_covar_SV); }
357 PPCODE:
358 0 ▶ if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 0 0 0
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 0 0 0
359 0 ▶ if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 0 0 0
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 0 0 0
360 0 ▶ if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 0 0 0
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 0 0 0
361 0 ▶ if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 0 0 0
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 0 0 0
362 0 ▶ if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_lb: p->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_lb: p->inplace but not supported"); 0 0 0
363 0 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_lb: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_lb: x->inplace but not supported"); 0 0 0
364 0 ▶ if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_lb: t->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_lb: t->inplace but not supported"); 0 0 0
365 0 ▶ if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_diff_lb: lb->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_diff_lb: lb->inplace but not supported"); 0 0 0
366 0 ▶ if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_lb: iopts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_lb: iopts->inplace but not supported"); 0 0 0
367 0 ▶ if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_lb: opts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_lb: opts->inplace but not supported"); 0 0 0
368 0 PDL->barf_if_error(pdl_run_levmar_diff_lb(p,x,t,lb,iopts,opts,covar,returnval,pout,info,funcn,sfuncn,indat,want_covar));
369 0 ▶ PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
370  
371 void
372 pdl_run_levmar_diff_(p, x, t, iopts, opts, covar=covar, returnval=returnval, pout=pout, info=info, funcn=funcn, sfuncn=sfuncn, indat=indat, want_covar=want_covar)
373 SV *covar_SV = (items == 13) ? ST(5) : NULL;
374 SV *returnval_SV = (items == 13) ? ST(6) : NULL;
375 SV *pout_SV = (items == 13) ? ST(7) : NULL;
376 SV *info_SV = (items == 13) ? ST(8) : NULL;
377 SV *funcn_SV = (items == 13) ? ST(9) : ST(5);
378 SV *sfuncn_SV = (items == 13) ? ST(10) : ST(6);
379 SV *indat_SV = (items == 13) ? ST(11) : ST(7);
380 SV *want_covar_SV = (items == 13) ? ST(12) : ST(8);
381 PREINIT:
382 15 ▶ PDL_XS_PREAMBLE((items == 13) ? 0 : 4);
Branch: 11 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 13) ? 0 : 4); 15 0 15
PDL_XS_PREAMBLE((items == 13) ? 0 : 4); 15 0 15
PDL_XS_PREAMBLE((items == 13) ? 0 : 4); 0 15 15
PDL_XS_PREAMBLE((items == 13) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 13) ? 0 : 4); 15 0 15
PDL_XS_PREAMBLE((items == 13) ? 0 : 4); 15 0 15
PDL_XS_PREAMBLE((items == 13) ? 0 : 4); 15 0 15
PDL_XS_PREAMBLE((items == 13) ? 0 : 4); 0 15 15
PDL_XS_PREAMBLE((items == 13) ? 0 : 4); 0 0 0
PDL_XS_PREAMBLE((items == 13) ? 0 : 4); 15 0 15
PDL_XS_PREAMBLE((items == 13) ? 0 : 4); 0 15 15
383 15 ▶ if (!((items == 13) || (items == 9)))
Branch: 2 branches
BranchTrueFalseTotal
if (!((items == 13) || (items == 9))) 0 15 15
if (!((items == 13) || (items == 9))) 0 0 0
384 0 croak("Usage: PDL::levmar_diff_(p,x,t,iopts,opts,[covar],[returnval],[pout],[info],funcn,sfuncn,indat,want_covar) (you may leave [outputs] and values with =defaults out of list)");
385 INPUT:
386 pdl *p
387 pdl *x
388 pdl *t
389 pdl *iopts
390 pdl *opts
391 pdl *covar=NO_INIT
392 pdl *returnval=NO_INIT
393 pdl *pout=NO_INIT
394 pdl *info=NO_INIT
395 IV funcn; { funcn = (IV)SvIV(funcn_SV); }
396 IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); }
397 IV indat; { indat = (IV)SvIV(indat_SV); }
398 int want_covar; { want_covar = (int)SvIV(want_covar_SV); }
399 PPCODE:
400 15 ▶ if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 15 0 15
if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); 0 0 0
401 15 ▶ if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 15 0 15
if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); 0 0 0
402 15 ▶ if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 15 0 15
if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); 0 0 0
403 15 ▶ if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 15 0 15
if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); 0 0 0
404 15 ▶ if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_: p->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_: p->inplace but not supported"); 0 15 15
405 15 ▶ if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_: x->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_: x->inplace but not supported"); 0 15 15
406 15 ▶ if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_: t->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_: t->inplace but not supported"); 0 15 15
407 15 ▶ if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_: iopts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_: iopts->inplace but not supported"); 0 15 15
408 15 ▶ if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_: opts->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_: opts->inplace but not supported"); 0 15 15
409 15 PDL->barf_if_error(pdl_run_levmar_diff_(p,x,t,iopts,opts,covar,returnval,pout,info,funcn,sfuncn,indat,want_covar));
410 15 ▶ PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 15 15
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 0 0
PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) 0 15 15
411  
412 void
413 pdl_run__levmar_chkjac(p, t, err=err, func=func, sfunc=sfunc, jac=jac, sjac=sjac, indat=indat)
414 SV *err_SV = (items == 8) ? ST(2) : NULL;
415 SV *func_SV = (items == 8) ? ST(3) : ST(2);
416 SV *sfunc_SV = (items == 8) ? ST(4) : ST(3);
417 SV *jac_SV = (items == 8) ? ST(5) : ST(4);
418 SV *sjac_SV = (items == 8) ? ST(6) : ST(5);
419 SV *indat_SV = (items == 8) ? ST(7) : ST(6);
420 PREINIT:
421 4 ▶ PDL_XS_PREAMBLE((items == 8) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 4 4
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 4 4
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 4 0 4
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 4 4
422 4 ▶ if (!((items == 7) || (items == 8)))
Branch: 2 branches
BranchTrueFalseTotal
if (!((items == 7) || (items == 8))) 0 4 4
if (!((items == 7) || (items == 8))) 0 0 0
423 0 croak("Usage: PDL::_levmar_chkjac(p,t,[err],func,sfunc,jac,sjac,indat) (you may leave [outputs] and values with =defaults out of list)");
424 INPUT:
425 pdl *p
426 pdl *t
427 pdl *err=NO_INIT
428 IV func; { func = (IV)SvIV(func_SV); }
429 IV sfunc; { sfunc = (IV)SvIV(sfunc_SV); }
430 IV jac; { jac = (IV)SvIV(jac_SV); }
431 IV sjac; { sjac = (IV)SvIV(sjac_SV); }
432 IV indat; { indat = (IV)SvIV(indat_SV); }
433 PPCODE:
434 4 ▶ if (err_SV) { err = PDL_CORE_(SvPDLV)(err_SV); } else err = PDL_XS_PERLINIT_initsv(err_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (err_SV) { err = PDL_CORE_(SvPDLV)(err_SV); } else err = PDL_XS_PERLINIT_initsv(err_SV); 0 4 4
if (err_SV) { err = PDL_CORE_(SvPDLV)(err_SV); } else err = PDL_XS_PERLINIT_initsv(err_SV); 0 4 4
435 4 ▶ if (PDL_IS_INPLACE(p)) PDL->pdl_barf("_levmar_chkjac: p->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(p)) PDL->pdl_barf("_levmar_chkjac: p->inplace but not supported"); 0 4 4
436 4 ▶ if (PDL_IS_INPLACE(t)) PDL->pdl_barf("_levmar_chkjac: t->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(t)) PDL->pdl_barf("_levmar_chkjac: t->inplace but not supported"); 0 4 4
437 4 PDL->barf_if_error(pdl_run__levmar_chkjac(p,t,err,func,sfunc,jac,sjac,indat));
438 4 ▶ PDL_XS_RETURN(ST(0) = err_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = err_SV) 4 0 4
PDL_XS_RETURN(ST(0) = err_SV) 4 0 4
PDL_XS_RETURN(ST(0) = err_SV) 4 0 4
PDL_XS_RETURN(ST(0) = err_SV) 0 4 4
PDL_XS_RETURN(ST(0) = err_SV) 0 0 0
439  
440 void
441 pdl_run__levmar_chkjac_no_t(p, err=err, func=func, sfunc=sfunc, jac=jac, sjac=sjac, N=N, indat=indat)
442 SV *err_SV = (items == 8) ? ST(1) : NULL;
443 SV *func_SV = (items == 8) ? ST(2) : ST(1);
444 SV *sfunc_SV = (items == 8) ? ST(3) : ST(2);
445 SV *jac_SV = (items == 8) ? ST(4) : ST(3);
446 SV *sjac_SV = (items == 8) ? ST(5) : ST(4);
447 SV *N_SV = (items == 8) ? ST(6) : ST(5);
448 SV *indat_SV = (items == 8) ? ST(7) : ST(6);
449 PREINIT:
450 0 ▶ PDL_XS_PREAMBLE((items == 8) ? 0 : 1);
Branch: 10 branches
BranchTrueFalseTotal
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 0 0
PDL_XS_PREAMBLE((items == 8) ? 0 : 1); 0 0 0
451 0 ▶ if (!((items == 7) || (items == 8)))
Branch: 2 branches
BranchTrueFalseTotal
if (!((items == 7) || (items == 8))) 0 0 0
if (!((items == 7) || (items == 8))) 0 0 0
452 0 croak("Usage: PDL::_levmar_chkjac_no_t(p,[err],func,sfunc,jac,sjac,N,indat) (you may leave [outputs] and values with =defaults out of list)");
453 INPUT:
454 pdl *p
455 pdl *err=NO_INIT
456 IV func; { func = (IV)SvIV(func_SV); }
457 IV sfunc; { sfunc = (IV)SvIV(sfunc_SV); }
458 IV jac; { jac = (IV)SvIV(jac_SV); }
459 IV sjac; { sjac = (IV)SvIV(sjac_SV); }
460 int N; { N = (int)SvIV(N_SV); }
461 IV indat; { indat = (IV)SvIV(indat_SV); }
462 PPCODE:
463 0 ▶ if (err_SV) { err = PDL_CORE_(SvPDLV)(err_SV); } else err = PDL_XS_PERLINIT_initsv(err_SV);
Branch: 2 branches
BranchTrueFalseTotal
if (err_SV) { err = PDL_CORE_(SvPDLV)(err_SV); } else err = PDL_XS_PERLINIT_initsv(err_SV); 0 0 0
if (err_SV) { err = PDL_CORE_(SvPDLV)(err_SV); } else err = PDL_XS_PERLINIT_initsv(err_SV); 0 0 0
464 0 ▶ if (PDL_IS_INPLACE(p)) PDL->pdl_barf("_levmar_chkjac_no_t: p->inplace but not supported");
Branch: 1 branch
BranchTrueFalseTotal
if (PDL_IS_INPLACE(p)) PDL->pdl_barf("_levmar_chkjac_no_t: p->inplace but not supported"); 0 0 0
465 0 PDL->barf_if_error(pdl_run__levmar_chkjac_no_t(p,err,func,sfunc,jac,sjac,N,indat));
466 0 ▶ PDL_XS_RETURN(ST(0) = err_SV)
Branch: 5 branches
BranchTrueFalseTotal
PDL_XS_RETURN(ST(0) = err_SV) 0 0 0
PDL_XS_RETURN(ST(0) = err_SV) 0 0 0
PDL_XS_RETURN(ST(0) = err_SV) 0 0 0
PDL_XS_RETURN(ST(0) = err_SV) 0 0 0
PDL_XS_RETURN(ST(0) = err_SV) 0 0 0
467  
468 MODULE = PDL::Fit::Levmar PACKAGE = PDL::Fit::Levmar
469  
470  
471  
472  
473 void *
474 DFP_create()
475  
476 CODE:
477 DFP * dat;
478 10 dat = (DFP *)malloc(sizeof( DFP ));
479 10 ▶ if ( NULL == dat ) {
Branch: 1 branch
BranchTrueFalseTotal
if ( NULL == dat ) { 0 10 10
480 0 fprintf(stderr, "Can't allocate storage for dat in DFP_create\n");
481 0 exit(1);
482 }
483 10 ▶ RETVAL = dat;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = dat; 7 3 10
484 OUTPUT:
485 RETVAL
486  
487 void
488 DFP_free( dat )
489 IV dat
490
491 CODE:
492 12 ▶ if ( (DFP *) dat) free( (DFP *) dat);
Branch: 1 branch
BranchTrueFalseTotal
if ( (DFP *) dat) free( (DFP *) dat); 10 2 12
493  
494  
495 void
496 DFP_set_perl_funcs ( data, perl_fit_func, perl_jac_func )
497 IV data
498 SV* perl_fit_func
499 SV* perl_jac_func
500  
501 CODE:
502 10 DFP *dat = (DFP *) data;
503 10 ▶ if ( dat == NULL ) {
Branch: 1 branch
BranchTrueFalseTotal
if ( dat == NULL ) { 0 10 10
504 0 fprintf(stderr, "DFP_set_perl_funcs got null struct\n");
505 0 exit(1);
506 }
507 10 dat->perl_fit_func = perl_fit_func;
508 10 dat->perl_jac_func = perl_jac_func;
509  
510  
511 double
512 get_dbl_max( )
513 CODE:
514 11 ▶ RETVAL = DBL_MAX;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = DBL_MAX; 1 10 11
515 OUTPUT:
516 RETVAL
517  
518 double
519 LM_INIT_MU( )
520 CODE:
521 9 ▶ RETVAL = LM_INIT_MU;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = LM_INIT_MU; 0 9 9
522 OUTPUT:
523 RETVAL
524  
525 double
526 LM_STOP_THRESH( )
527 CODE:
528 27 ▶ RETVAL = LM_STOP_THRESH;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = LM_STOP_THRESH; 0 27 27
529 OUTPUT:
530 RETVAL
531  
532 double
533 LM_DIFF_DELTA( )
534 CODE:
535 9 ▶ RETVAL = LM_DIFF_DELTA;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = LM_DIFF_DELTA; 0 9 9
536 OUTPUT:
537 RETVAL
538  
539  
540 =pod
541  
542  
543 =begin comment
544  
545 The next two routines just get pointers to functions from
546 the C code and return them as SVs to perl. The functions
547 are the C wrappers to the users _perl_ fit and jacobian
548 functions. LEVFUNC and JLEVFUNC should be re-entrant so
549 the following two routines can called once when the
550 Levmar::Func module is loaded and can be shared by all
551 object instances.
552  
553 =end comment
554  
555 =cut
556  
557 void *
558 get_perl_func_wrapper( )
559  
560 CODE:
561 9 ▶ RETVAL = &LEVFUNC;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = &LEVFUNC; 0 9 9
562 OUTPUT:
563 RETVAL
564  
565 void *
566 get_perl_jac_wrapper( )
567  
568 CODE:
569 9 ▶ RETVAL = &JLEVFUNC;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = &JLEVFUNC; 0 9 9
570 OUTPUT:
571 RETVAL
572  
573  
574  
575  
576 MODULE = PDL::Fit::Levmar PACKAGE = PDL PREFIX=pdl_run_
577  
578  
579  
580 #line 483 "lib/PDL/PP.pm"
581 BOOT:
582 /* Get pointer to structure of core shared C routines */
583 /* make sure PDL::Core is loaded */
584 #line 585 "Levmar.xs"
585 9 perl_require_pv ("PDL/Core.pm"); /* make sure PDL::Core is loaded */
586 #ifndef aTHX_
587 #define aTHX_
588 #endif
589 9 ▶ if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV));
Branch: 3 branches
BranchTrueFalseTotal
if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); 9 0 9
if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); 0 9 9
if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); 0 0 0
590 9 SV* CoreSV = perl_get_sv("PDL::SHARE",FALSE); /* var with core structure */
591 9 ▶ if (!CoreSV)
Branch: 1 branch
BranchTrueFalseTotal
if (!CoreSV) 0 9 9
592 0 Perl_croak(aTHX_ "We require the PDL::Core module, which was not found");
593 9 ▶ if (!(PDL = INT2PTR(Core*,SvIV( CoreSV )))) /* Core* value */
Branch: 1 branch
BranchTrueFalseTotal
if (!(PDL = INT2PTR(Core*,SvIV( CoreSV )))) /* Core* value */ 0 9 9
594 0 Perl_croak(aTHX_ "Got NULL pointer for PDL");
595 9 ▶ if (PDL->Version != PDL_CORE_VERSION)
Branch: 1 branch
BranchTrueFalseTotal
if (PDL->Version != PDL_CORE_VERSION) 0 9 9
596 0 Perl_croak(aTHX_ "[PDL->Version: %ld PDL_CORE_VERSION: %ld XS_VERSION: %s] PDL::Fit::Levmar needs to be recompiled against the newly installed PDL", (long int)PDL->Version, (long int)PDL_CORE_VERSION, XS_VERSION);
« pp-levmar_diff_ub.c ↑ Summary pp-levmar_diff_lb_ub.c »