| 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_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); |
| 31 |
|
| 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); |
| 32 |
|
| 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); |
| 33 |
|
| 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); |
| 34 |
|
| 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); |
| 35 |
|
| 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); |
| 36 |
|
| 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); |
| 37 |
|
| 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); |
| 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_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) |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| if (!((items == 12) || (items == 16))) |
0 |
0 |
0 |
| if (!((items == 12) || (items == 16))) |
0 |
0 |
0 |
|
| 67 |
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)"); |
| 68 |
|
| INPUT: |
| 69 |
|
| pdl *p |
| 70 |
|
| pdl *x |
| 71 |
|
| pdl *t |
| 72 |
|
| pdl *lb |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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_lb: p->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_lb: p->inplace but not supported"); |
0 |
0 |
0 |
|
| 91 |
0 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_lb: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_lb: x->inplace but not supported"); |
0 |
0 |
0 |
|
| 92 |
0 |
▶ | if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_lb: t->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_lb: t->inplace but not supported"); |
0 |
0 |
0 |
|
| 93 |
0 |
▶ | if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_der_lb: lb->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_der_lb: lb->inplace but not supported"); |
0 |
0 |
0 |
|
| 94 |
0 |
▶ | if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_lb: iopts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_lb: iopts->inplace but not supported"); |
0 |
0 |
0 |
|
| 95 |
0 |
▶ | if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_lb: opts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_lb: opts->inplace but not supported"); |
0 |
0 |
0 |
|
| 96 |
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)); |
| 97 |
0 |
▶ | PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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_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) |
| 101 |
|
| SV *covar_SV = (items == 16) ? ST(6) : NULL; |
| 102 |
|
| SV *returnval_SV = (items == 16) ? ST(7) : NULL; |
| 103 |
|
| SV *pout_SV = (items == 16) ? ST(8) : NULL; |
| 104 |
|
| SV *info_SV = (items == 16) ? ST(9) : NULL; |
| 105 |
|
| SV *funcn_SV = (items == 16) ? ST(10) : ST(6); |
| 106 |
|
| SV *sfuncn_SV = (items == 16) ? ST(11) : ST(7); |
| 107 |
|
| SV *jacn_SV = (items == 16) ? ST(12) : ST(8); |
| 108 |
|
| SV *sjacn_SV = (items == 16) ? ST(13) : ST(9); |
| 109 |
|
| SV *indat_SV = (items == 16) ? ST(14) : ST(10); |
| 110 |
|
| SV *want_covar_SV = (items == 16) ? ST(15) : ST(11); |
| 111 |
|
| PREINIT: |
| 112 |
0 |
▶ | PDL_XS_PREAMBLE((items == 16) ? 0 : 4); |
Branch: 11 branches
| Branch | True | False | Total |
| 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 |
|
| 113 |
0 |
▶ | if (!((items == 12) || (items == 16))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (!((items == 12) || (items == 16))) |
0 |
0 |
0 |
| if (!((items == 12) || (items == 16))) |
0 |
0 |
0 |
|
| 114 |
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)"); |
| 115 |
|
| INPUT: |
| 116 |
|
| pdl *p |
| 117 |
|
| pdl *x |
| 118 |
|
| pdl *t |
| 119 |
|
| pdl *ub |
| 120 |
|
| pdl *iopts |
| 121 |
|
| pdl *opts |
| 122 |
|
| pdl *covar=NO_INIT |
| 123 |
|
| pdl *returnval=NO_INIT |
| 124 |
|
| pdl *pout=NO_INIT |
| 125 |
|
| pdl *info=NO_INIT |
| 126 |
|
| IV funcn; { funcn = (IV)SvIV(funcn_SV); } |
| 127 |
|
| IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); } |
| 128 |
|
| IV jacn; { jacn = (IV)SvIV(jacn_SV); } |
| 129 |
|
| IV sjacn; { sjacn = (IV)SvIV(sjacn_SV); } |
| 130 |
|
| IV indat; { indat = (IV)SvIV(indat_SV); } |
| 131 |
|
| int want_covar; { want_covar = (int)SvIV(want_covar_SV); } |
| 132 |
|
| PPCODE: |
| 133 |
0 |
▶ | if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 134 |
0 |
▶ | if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 135 |
0 |
▶ | if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 136 |
0 |
▶ | if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 137 |
0 |
▶ | if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_ub: p->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_ub: p->inplace but not supported"); |
0 |
0 |
0 |
|
| 138 |
0 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_ub: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_ub: x->inplace but not supported"); |
0 |
0 |
0 |
|
| 139 |
0 |
▶ | if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_ub: t->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_ub: t->inplace but not supported"); |
0 |
0 |
0 |
|
| 140 |
0 |
▶ | if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_der_ub: ub->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_der_ub: ub->inplace but not supported"); |
0 |
0 |
0 |
|
| 141 |
0 |
▶ | if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_ub: iopts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_ub: iopts->inplace but not supported"); |
0 |
0 |
0 |
|
| 142 |
0 |
▶ | if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_ub: opts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_ub: opts->inplace but not supported"); |
0 |
0 |
0 |
|
| 143 |
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)); |
| 144 |
0 |
▶ | PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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 |
|
| 145 |
|
| |
| 146 |
|
| void |
| 147 |
|
| 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) |
| 148 |
|
| SV *covar_SV = (items == 15) ? ST(5) : NULL; |
| 149 |
|
| SV *returnval_SV = (items == 15) ? ST(6) : NULL; |
| 150 |
|
| SV *pout_SV = (items == 15) ? ST(7) : NULL; |
| 151 |
|
| SV *info_SV = (items == 15) ? ST(8) : NULL; |
| 152 |
|
| SV *funcn_SV = (items == 15) ? ST(9) : ST(5); |
| 153 |
|
| SV *sfuncn_SV = (items == 15) ? ST(10) : ST(6); |
| 154 |
|
| SV *jacn_SV = (items == 15) ? ST(11) : ST(7); |
| 155 |
|
| SV *sjacn_SV = (items == 15) ? ST(12) : ST(8); |
| 156 |
|
| SV *indat_SV = (items == 15) ? ST(13) : ST(9); |
| 157 |
|
| SV *want_covar_SV = (items == 15) ? ST(14) : ST(10); |
| 158 |
|
| PREINIT: |
| 159 |
60 |
▶ | PDL_XS_PREAMBLE((items == 15) ? 0 : 4); |
Branch: 11 branches
| Branch | True | False | Total |
| 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 |
|
| 160 |
60 |
▶ | if (!((items == 11) || (items == 15))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (!((items == 11) || (items == 15))) |
60 |
0 |
60 |
| if (!((items == 11) || (items == 15))) |
0 |
60 |
60 |
|
| 161 |
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)"); |
| 162 |
|
| INPUT: |
| 163 |
|
| pdl *p |
| 164 |
|
| pdl *x |
| 165 |
|
| pdl *t |
| 166 |
|
| pdl *iopts |
| 167 |
|
| pdl *opts |
| 168 |
|
| pdl *covar=NO_INIT |
| 169 |
|
| pdl *returnval=NO_INIT |
| 170 |
|
| pdl *pout=NO_INIT |
| 171 |
|
| pdl *info=NO_INIT |
| 172 |
|
| IV funcn; { funcn = (IV)SvIV(funcn_SV); } |
| 173 |
|
| IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); } |
| 174 |
|
| IV jacn; { jacn = (IV)SvIV(jacn_SV); } |
| 175 |
|
| IV sjacn; { sjacn = (IV)SvIV(sjacn_SV); } |
| 176 |
|
| IV indat; { indat = (IV)SvIV(indat_SV); } |
| 177 |
|
| int want_covar; { want_covar = (int)SvIV(want_covar_SV); } |
| 178 |
|
| PPCODE: |
| 179 |
60 |
▶ | if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 180 |
60 |
▶ | if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 181 |
60 |
▶ | if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 182 |
60 |
▶ | if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 183 |
60 |
▶ | if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_: p->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_: p->inplace but not supported"); |
0 |
60 |
60 |
|
| 184 |
60 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_: x->inplace but not supported"); |
0 |
60 |
60 |
|
| 185 |
60 |
▶ | if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_: t->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_: t->inplace but not supported"); |
0 |
60 |
60 |
|
| 186 |
60 |
▶ | if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_: iopts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_: iopts->inplace but not supported"); |
0 |
60 |
60 |
|
| 187 |
60 |
▶ | if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_: opts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_: opts->inplace but not supported"); |
0 |
60 |
60 |
|
| 188 |
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)); |
| 189 |
60 |
▶ | PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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 |
|
| 190 |
|
| |
| 191 |
|
| void |
| 192 |
|
| 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) |
| 193 |
|
| SV *covar_SV = (items == 17) ? ST(7) : NULL; |
| 194 |
|
| SV *returnval_SV = (items == 17) ? ST(8) : NULL; |
| 195 |
|
| SV *pout_SV = (items == 17) ? ST(9) : NULL; |
| 196 |
|
| SV *info_SV = (items == 17) ? ST(10) : NULL; |
| 197 |
|
| SV *funcn_SV = (items == 17) ? ST(11) : ST(7); |
| 198 |
|
| SV *sfuncn_SV = (items == 17) ? ST(12) : ST(8); |
| 199 |
|
| SV *jacn_SV = (items == 17) ? ST(13) : ST(9); |
| 200 |
|
| SV *sjacn_SV = (items == 17) ? ST(14) : ST(10); |
| 201 |
|
| SV *indat_SV = (items == 17) ? ST(15) : ST(11); |
| 202 |
|
| SV *want_covar_SV = (items == 17) ? ST(16) : ST(12); |
| 203 |
|
| PREINIT: |
| 204 |
10 |
▶ | PDL_XS_PREAMBLE((items == 17) ? 0 : 4); |
Branch: 11 branches
| Branch | True | False | Total |
| 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 |
|
| 205 |
10 |
▶ | if (!((items == 13) || (items == 17))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (!((items == 13) || (items == 17))) |
10 |
0 |
10 |
| if (!((items == 13) || (items == 17))) |
0 |
10 |
10 |
|
| 206 |
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)"); |
| 207 |
|
| INPUT: |
| 208 |
|
| pdl *p |
| 209 |
|
| pdl *x |
| 210 |
|
| pdl *t |
| 211 |
|
| pdl *lb |
| 212 |
|
| pdl *ub |
| 213 |
|
| pdl *iopts |
| 214 |
|
| pdl *opts |
| 215 |
|
| pdl *covar=NO_INIT |
| 216 |
|
| pdl *returnval=NO_INIT |
| 217 |
|
| pdl *pout=NO_INIT |
| 218 |
|
| pdl *info=NO_INIT |
| 219 |
|
| IV funcn; { funcn = (IV)SvIV(funcn_SV); } |
| 220 |
|
| IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); } |
| 221 |
|
| IV jacn; { jacn = (IV)SvIV(jacn_SV); } |
| 222 |
|
| IV sjacn; { sjacn = (IV)SvIV(sjacn_SV); } |
| 223 |
|
| IV indat; { indat = (IV)SvIV(indat_SV); } |
| 224 |
|
| int want_covar; { want_covar = (int)SvIV(want_covar_SV); } |
| 225 |
|
| PPCODE: |
| 226 |
10 |
▶ | if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 227 |
10 |
▶ | if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 228 |
10 |
▶ | if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 229 |
10 |
▶ | if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 230 |
10 |
▶ | if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_lb_ub: p->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_der_lb_ub: p->inplace but not supported"); |
0 |
10 |
10 |
|
| 231 |
10 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_lb_ub: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_der_lb_ub: x->inplace but not supported"); |
0 |
10 |
10 |
|
| 232 |
10 |
▶ | if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_lb_ub: t->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_der_lb_ub: t->inplace but not supported"); |
0 |
10 |
10 |
|
| 233 |
10 |
▶ | if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_der_lb_ub: lb->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_der_lb_ub: lb->inplace but not supported"); |
0 |
10 |
10 |
|
| 234 |
10 |
▶ | if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_der_lb_ub: ub->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_der_lb_ub: ub->inplace but not supported"); |
0 |
10 |
10 |
|
| 235 |
10 |
▶ | if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_lb_ub: iopts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_der_lb_ub: iopts->inplace but not supported"); |
0 |
10 |
10 |
|
| 236 |
10 |
▶ | if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_lb_ub: opts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_der_lb_ub: opts->inplace but not supported"); |
0 |
10 |
10 |
|
| 237 |
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)); |
| 238 |
10 |
▶ | PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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 |
|
| 239 |
|
| |
| 240 |
|
| void |
| 241 |
|
| 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) |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| if (!((items == 10) || (items == 14))) |
0 |
0 |
0 |
| if (!((items == 10) || (items == 14))) |
0 |
0 |
0 |
|
| 253 |
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)"); |
| 254 |
|
| INPUT: |
| 255 |
|
| pdl *p |
| 256 |
|
| pdl *x |
| 257 |
|
| pdl *t |
| 258 |
|
| pdl *lb |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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_lb: p->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_lb: p->inplace but not supported"); |
0 |
0 |
0 |
|
| 275 |
0 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_lb: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_lb: x->inplace but not supported"); |
0 |
0 |
0 |
|
| 276 |
0 |
▶ | if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_lb: t->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_lb: t->inplace but not supported"); |
0 |
0 |
0 |
|
| 277 |
0 |
▶ | if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_diff_lb: lb->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_diff_lb: lb->inplace but not supported"); |
0 |
0 |
0 |
|
| 278 |
0 |
▶ | if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_lb: iopts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_lb: iopts->inplace but not supported"); |
0 |
0 |
0 |
|
| 279 |
0 |
▶ | if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_lb: opts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_lb: opts->inplace but not supported"); |
0 |
0 |
0 |
|
| 280 |
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)); |
| 281 |
0 |
▶ | PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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_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) |
| 285 |
|
| SV *covar_SV = (items == 14) ? ST(6) : NULL; |
| 286 |
|
| SV *returnval_SV = (items == 14) ? ST(7) : NULL; |
| 287 |
|
| SV *pout_SV = (items == 14) ? ST(8) : NULL; |
| 288 |
|
| SV *info_SV = (items == 14) ? ST(9) : NULL; |
| 289 |
|
| SV *funcn_SV = (items == 14) ? ST(10) : ST(6); |
| 290 |
|
| SV *sfuncn_SV = (items == 14) ? ST(11) : ST(7); |
| 291 |
|
| SV *indat_SV = (items == 14) ? ST(12) : ST(8); |
| 292 |
|
| SV *want_covar_SV = (items == 14) ? ST(13) : ST(9); |
| 293 |
|
| PREINIT: |
| 294 |
0 |
▶ | PDL_XS_PREAMBLE((items == 14) ? 0 : 4); |
Branch: 11 branches
| Branch | True | False | Total |
| 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 |
|
| 295 |
0 |
▶ | if (!((items == 10) || (items == 14))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (!((items == 10) || (items == 14))) |
0 |
0 |
0 |
| if (!((items == 10) || (items == 14))) |
0 |
0 |
0 |
|
| 296 |
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)"); |
| 297 |
|
| INPUT: |
| 298 |
|
| pdl *p |
| 299 |
|
| pdl *x |
| 300 |
|
| pdl *t |
| 301 |
|
| pdl *ub |
| 302 |
|
| pdl *iopts |
| 303 |
|
| pdl *opts |
| 304 |
|
| pdl *covar=NO_INIT |
| 305 |
|
| pdl *returnval=NO_INIT |
| 306 |
|
| pdl *pout=NO_INIT |
| 307 |
|
| pdl *info=NO_INIT |
| 308 |
|
| IV funcn; { funcn = (IV)SvIV(funcn_SV); } |
| 309 |
|
| IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); } |
| 310 |
|
| IV indat; { indat = (IV)SvIV(indat_SV); } |
| 311 |
|
| int want_covar; { want_covar = (int)SvIV(want_covar_SV); } |
| 312 |
|
| PPCODE: |
| 313 |
0 |
▶ | if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 314 |
0 |
▶ | if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 315 |
0 |
▶ | if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 316 |
0 |
▶ | if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 317 |
0 |
▶ | if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_ub: p->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_ub: p->inplace but not supported"); |
0 |
0 |
0 |
|
| 318 |
0 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_ub: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_ub: x->inplace but not supported"); |
0 |
0 |
0 |
|
| 319 |
0 |
▶ | if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_ub: t->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_ub: t->inplace but not supported"); |
0 |
0 |
0 |
|
| 320 |
0 |
▶ | if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_diff_ub: ub->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_diff_ub: ub->inplace but not supported"); |
0 |
0 |
0 |
|
| 321 |
0 |
▶ | if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_ub: iopts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_ub: iopts->inplace but not supported"); |
0 |
0 |
0 |
|
| 322 |
0 |
▶ | if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_ub: opts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_ub: opts->inplace but not supported"); |
0 |
0 |
0 |
|
| 323 |
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)); |
| 324 |
0 |
▶ | PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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 |
|
| 325 |
|
| |
| 326 |
|
| void |
| 327 |
|
| 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) |
| 328 |
|
| SV *covar_SV = (items == 13) ? ST(5) : NULL; |
| 329 |
|
| SV *returnval_SV = (items == 13) ? ST(6) : NULL; |
| 330 |
|
| SV *pout_SV = (items == 13) ? ST(7) : NULL; |
| 331 |
|
| SV *info_SV = (items == 13) ? ST(8) : NULL; |
| 332 |
|
| SV *funcn_SV = (items == 13) ? ST(9) : ST(5); |
| 333 |
|
| SV *sfuncn_SV = (items == 13) ? ST(10) : ST(6); |
| 334 |
|
| SV *indat_SV = (items == 13) ? ST(11) : ST(7); |
| 335 |
|
| SV *want_covar_SV = (items == 13) ? ST(12) : ST(8); |
| 336 |
|
| PREINIT: |
| 337 |
15 |
▶ | PDL_XS_PREAMBLE((items == 13) ? 0 : 4); |
Branch: 11 branches
| Branch | True | False | Total |
| 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 |
|
| 338 |
15 |
▶ | if (!((items == 13) || (items == 9))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (!((items == 13) || (items == 9))) |
0 |
15 |
15 |
| if (!((items == 13) || (items == 9))) |
0 |
0 |
0 |
|
| 339 |
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)"); |
| 340 |
|
| INPUT: |
| 341 |
|
| pdl *p |
| 342 |
|
| pdl *x |
| 343 |
|
| pdl *t |
| 344 |
|
| pdl *iopts |
| 345 |
|
| pdl *opts |
| 346 |
|
| pdl *covar=NO_INIT |
| 347 |
|
| pdl *returnval=NO_INIT |
| 348 |
|
| pdl *pout=NO_INIT |
| 349 |
|
| pdl *info=NO_INIT |
| 350 |
|
| IV funcn; { funcn = (IV)SvIV(funcn_SV); } |
| 351 |
|
| IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); } |
| 352 |
|
| IV indat; { indat = (IV)SvIV(indat_SV); } |
| 353 |
|
| int want_covar; { want_covar = (int)SvIV(want_covar_SV); } |
| 354 |
|
| PPCODE: |
| 355 |
15 |
▶ | if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 356 |
15 |
▶ | if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 357 |
15 |
▶ | if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 358 |
15 |
▶ | if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 359 |
15 |
▶ | if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_: p->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_: p->inplace but not supported"); |
0 |
15 |
15 |
|
| 360 |
15 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_: x->inplace but not supported"); |
0 |
15 |
15 |
|
| 361 |
15 |
▶ | if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_: t->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_: t->inplace but not supported"); |
0 |
15 |
15 |
|
| 362 |
15 |
▶ | if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_: iopts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_: iopts->inplace but not supported"); |
0 |
15 |
15 |
|
| 363 |
15 |
▶ | if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_: opts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_: opts->inplace but not supported"); |
0 |
15 |
15 |
|
| 364 |
15 |
| PDL->barf_if_error(pdl_run_levmar_diff_(p,x,t,iopts,opts,covar,returnval,pout,info,funcn,sfuncn,indat,want_covar)); |
| 365 |
15 |
▶ | PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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 |
|
| 366 |
|
| |
| 367 |
|
| void |
| 368 |
|
| 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) |
| 369 |
|
| SV *covar_SV = (items == 15) ? ST(7) : NULL; |
| 370 |
|
| SV *returnval_SV = (items == 15) ? ST(8) : NULL; |
| 371 |
|
| SV *pout_SV = (items == 15) ? ST(9) : NULL; |
| 372 |
|
| SV *info_SV = (items == 15) ? ST(10) : NULL; |
| 373 |
|
| SV *funcn_SV = (items == 15) ? ST(11) : ST(7); |
| 374 |
|
| SV *sfuncn_SV = (items == 15) ? ST(12) : ST(8); |
| 375 |
|
| SV *indat_SV = (items == 15) ? ST(13) : ST(9); |
| 376 |
|
| SV *want_covar_SV = (items == 15) ? ST(14) : ST(10); |
| 377 |
|
| PREINIT: |
| 378 |
5 |
▶ | PDL_XS_PREAMBLE((items == 15) ? 0 : 4); |
Branch: 11 branches
| Branch | True | False | Total |
| 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 |
|
| 379 |
5 |
▶ | if (!((items == 11) || (items == 15))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (!((items == 11) || (items == 15))) |
5 |
0 |
5 |
| if (!((items == 11) || (items == 15))) |
0 |
5 |
5 |
|
| 380 |
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)"); |
| 381 |
|
| INPUT: |
| 382 |
|
| pdl *p |
| 383 |
|
| pdl *x |
| 384 |
|
| pdl *t |
| 385 |
|
| pdl *lb |
| 386 |
|
| pdl *ub |
| 387 |
|
| pdl *iopts |
| 388 |
|
| pdl *opts |
| 389 |
|
| pdl *covar=NO_INIT |
| 390 |
|
| pdl *returnval=NO_INIT |
| 391 |
|
| pdl *pout=NO_INIT |
| 392 |
|
| pdl *info=NO_INIT |
| 393 |
|
| IV funcn; { funcn = (IV)SvIV(funcn_SV); } |
| 394 |
|
| IV sfuncn; { sfuncn = (IV)SvIV(sfuncn_SV); } |
| 395 |
|
| IV indat; { indat = (IV)SvIV(indat_SV); } |
| 396 |
|
| int want_covar; { want_covar = (int)SvIV(want_covar_SV); } |
| 397 |
|
| PPCODE: |
| 398 |
5 |
▶ | if (covar_SV) { covar = PDL_CORE_(SvPDLV)(covar_SV); } else covar = PDL_XS_PERLINIT_initsv(covar_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 399 |
5 |
▶ | if (returnval_SV) { returnval = PDL_CORE_(SvPDLV)(returnval_SV); } else returnval = PDL_XS_PERLINIT_initsv(returnval_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 400 |
5 |
▶ | if (pout_SV) { pout = PDL_CORE_(SvPDLV)(pout_SV); } else pout = PDL_XS_PERLINIT_initsv(pout_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 401 |
5 |
▶ | if (info_SV) { info = PDL_CORE_(SvPDLV)(info_SV); } else info = PDL_XS_PERLINIT_initsv(info_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| 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 |
|
| 402 |
5 |
▶ | if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_lb_ub: p->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(p)) PDL->pdl_barf("levmar_diff_lb_ub: p->inplace but not supported"); |
0 |
5 |
5 |
|
| 403 |
5 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_lb_ub: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("levmar_diff_lb_ub: x->inplace but not supported"); |
0 |
5 |
5 |
|
| 404 |
5 |
▶ | if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_lb_ub: t->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(t)) PDL->pdl_barf("levmar_diff_lb_ub: t->inplace but not supported"); |
0 |
5 |
5 |
|
| 405 |
5 |
▶ | if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_diff_lb_ub: lb->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("levmar_diff_lb_ub: lb->inplace but not supported"); |
0 |
5 |
5 |
|
| 406 |
5 |
▶ | if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_diff_lb_ub: ub->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(ub)) PDL->pdl_barf("levmar_diff_lb_ub: ub->inplace but not supported"); |
0 |
5 |
5 |
|
| 407 |
5 |
▶ | if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_lb_ub: iopts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(iopts)) PDL->pdl_barf("levmar_diff_lb_ub: iopts->inplace but not supported"); |
0 |
5 |
5 |
|
| 408 |
5 |
▶ | if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_lb_ub: opts->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(opts)) PDL->pdl_barf("levmar_diff_lb_ub: opts->inplace but not supported"); |
0 |
5 |
5 |
|
| 409 |
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)); |
| 410 |
5 |
▶ | PDL_XS_RETURN(ST(0) = covar_SV;ST(1) = returnval_SV;ST(2) = pout_SV;ST(3) = info_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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 |
|
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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
| Branch | True | False | Total |
| 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); |