| 1 |
|
| |
| 2 |
|
| #line 453 "lib/PDL/PP.pm" |
| 3 |
|
| /* |
| 4 |
|
| * THIS FILE WAS GENERATED BY PDL::PP from lib/PDL/Primitive.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_Primitive |
| 21 |
|
| extern Core* PDL; /* Structure hold core C functions */ |
| 22 |
|
| #line 23 "lib/PDL/Primitive.xs" |
| 23 |
|
| pdl_error pdl_run_inner(pdl *a,pdl *b,pdl *c); |
| 24 |
|
| pdl_error pdl_run_outer(pdl *a,pdl *b,pdl *c); |
| 25 |
|
| pdl_error pdl_run_matmult(pdl *a,pdl *b,pdl *c); |
| 26 |
|
| pdl_error pdl_run_innerwt(pdl *a,pdl *b,pdl *c,pdl *d); |
| 27 |
|
| pdl_error pdl_run_inner2(pdl *a,pdl *b,pdl *c,pdl *d); |
| 28 |
|
| pdl_error pdl_run_inner2d(pdl *a,pdl *b,pdl *c); |
| 29 |
|
| pdl_error pdl_run_inner2t(pdl *a,pdl *b,pdl *c,pdl *d); |
| 30 |
|
| pdl_error pdl_run_crossp(pdl *a,pdl *b,pdl *c); |
| 31 |
|
| pdl_error pdl_run_norm(pdl *vec,pdl *norm); |
| 32 |
|
| pdl_error pdl_run_indadd(pdl *input,pdl *ind,pdl *sum); |
| 33 |
|
| pdl_error pdl_run_conv1d(pdl *a,pdl *kern,pdl *b,int reflect); |
| 34 |
|
| pdl_error pdl_run_in(pdl *a,pdl *b,pdl *c); |
| 35 |
|
| pdl_error pdl_run_hclip(pdl *a,pdl *b,pdl *c); |
| 36 |
|
| pdl_error pdl_run_lclip(pdl *a,pdl *b,pdl *c); |
| 37 |
|
| pdl_error pdl_run_clip(pdl *a,pdl *l,pdl *h,pdl *c); |
| 38 |
|
| pdl_error pdl_run_wtstat(pdl *a,pdl *wt,pdl *avg,pdl *b,int deg); |
| 39 |
|
| pdl_error pdl_run_statsover(pdl *a,pdl *w,pdl *avg,pdl *prms,pdl *min,pdl *max,pdl *adev,pdl *rms); |
| 40 |
|
| pdl_error pdl_run_histogram(pdl *in,pdl *hist,double step,double min,IV msize); |
| 41 |
|
| pdl_error pdl_run_whistogram(pdl *in,pdl *wt,pdl *hist,double step,double min,IV msize); |
| 42 |
|
| pdl_error pdl_run_histogram2d(pdl *ina,pdl *inb,pdl *hist,double stepa,double mina,IV masize,double stepb,double minb,IV mbsize); |
| 43 |
|
| pdl_error pdl_run_whistogram2d(pdl *ina,pdl *inb,pdl *wt,pdl *hist,double stepa,double mina,IV masize,double stepb,double minb,IV mbsize); |
| 44 |
|
| pdl_error pdl_run_fibonacci(pdl *i,pdl *x); |
| 45 |
|
| pdl_error pdl_run_append(pdl *a,pdl *b,pdl *c); |
| 46 |
|
| pdl_error pdl_run_axisvalues(pdl *i,pdl *a); |
| 47 |
|
| pdl_error pdl_run_cmpvec(pdl *a,pdl *b,pdl *c); |
| 48 |
|
| pdl_error pdl_run_eqvec(pdl *a,pdl *b,pdl *c); |
| 49 |
|
| pdl_error pdl_run_enumvec(pdl *v,pdl *k); |
| 50 |
|
| pdl_error pdl_run_enumvecg(pdl *v,pdl *k); |
| 51 |
|
| pdl_error pdl_run_vsearchvec(pdl *find,pdl *which,pdl *found); |
| 52 |
|
| pdl_error pdl_run_unionvec(pdl *a,pdl *b,pdl *c,pdl *nc); |
| 53 |
|
| pdl_error pdl_run_intersectvec(pdl *a,pdl *b,pdl *c,pdl *nc); |
| 54 |
|
| pdl_error pdl_run_setdiffvec(pdl *a,pdl *b,pdl *c,pdl *nc); |
| 55 |
|
| pdl_error pdl_run_union_sorted(pdl *a,pdl *b,pdl *c,pdl *nc); |
| 56 |
|
| pdl_error pdl_run_intersect_sorted(pdl *a,pdl *b,pdl *c,pdl *nc); |
| 57 |
|
| pdl_error pdl_run_setdiff_sorted(pdl *a,pdl *b,pdl *c,pdl *nc); |
| 58 |
|
| pdl_error pdl_run_vcos(pdl *a,pdl *b,pdl *vcos); |
| 59 |
|
| extern int pdl_srand_threads; |
| 60 |
|
| extern uint64_t *pdl_rand_state; |
| 61 |
|
| void pdl_srand(uint64_t **s, uint64_t seed, int n); |
| 62 |
|
| double pdl_drand(uint64_t *s); |
| 63 |
|
| #define PDL_MAYBE_SRAND \ |
| 64 |
|
| if (pdl_srand_threads < 0) \ |
| 65 |
|
| pdl_srand(&pdl_rand_state, PDL->pdl_seed(), PDL->online_cpus()); |
| 66 |
|
| #define PDL_RAND_SET_OFFSET(v, thr, pdl) \ |
| 67 |
|
| if (v < 0) { \ |
| 68 |
|
| if (thr.mag_nthr >= 0) { \ |
| 69 |
|
| int thr_no = PDL->magic_get_thread(pdl); \ |
| 70 |
|
| if (thr_no < 0) return PDL->make_error_simple(PDL_EFATAL, "Invalid pdl_magic_get_thread!"); \ |
| 71 |
|
| v = thr_no == 0 ? thr_no : thr_no % PDL->online_cpus(); \ |
| 72 |
|
| } else { \ |
| 73 |
|
| v = 0; \ |
| 74 |
|
| } \ |
| 75 |
|
| } |
| 76 |
|
| pdl_error pdl_run_srandom(pdl *a); |
| 77 |
|
| pdl_error pdl_run_random(pdl *a); |
| 78 |
|
| pdl_error pdl_run_randsym(pdl *a); |
| 79 |
|
| pdl_error pdl_run_vsearch_sample(pdl *vals,pdl *x,pdl *idx); |
| 80 |
|
| pdl_error pdl_run_vsearch_insert_leftmost(pdl *vals,pdl *x,pdl *idx); |
| 81 |
|
| pdl_error pdl_run_vsearch_insert_rightmost(pdl *vals,pdl *x,pdl *idx); |
| 82 |
|
| pdl_error pdl_run_vsearch_match(pdl *vals,pdl *x,pdl *idx); |
| 83 |
|
| pdl_error pdl_run_vsearch_bin_inclusive(pdl *vals,pdl *x,pdl *idx); |
| 84 |
|
| pdl_error pdl_run_vsearch_bin_exclusive(pdl *vals,pdl *x,pdl *idx); |
| 85 |
|
| pdl_error pdl_run_interpolate(pdl *xi,pdl *x,pdl *y,pdl *yi,pdl *err); |
| 86 |
|
| pdl_error pdl_run_which(pdl *mask,pdl *inds,pdl *lastout); |
| 87 |
|
| pdl_error pdl_run_which_both(pdl *mask,pdl *inds,pdl *notinds,pdl *lastout,pdl *lastoutn); |
| 88 |
|
| pdl_error pdl_run_whichover(pdl *a,pdl *o); |
| 89 |
|
| pdl_error pdl_run_approx_artol(pdl *got,pdl *expected,pdl *result,double atol,double rtol); |
| 90 |
|
| pdl_error pdl_run_pchip_chim(pdl *x,pdl *f,pdl *d,pdl *ierr); |
| 91 |
|
| pdl_error pdl_run_pchip_chic(pdl *ic,pdl *vc,pdl *mflag,pdl *x,pdl *f,pdl *d,pdl *ierr); |
| 92 |
|
| pdl_error pdl_run_pchip_chsp(pdl *ic,pdl *vc,pdl *x,pdl *f,pdl *d,pdl *ierr); |
| 93 |
|
| pdl_error pdl_run_pchip_chfd(pdl *x,pdl *f,pdl *d,pdl *xe,pdl *fe,pdl *de,pdl *ierr,pdl *skip); |
| 94 |
|
| pdl_error pdl_run_pchip_chfe(pdl *x,pdl *f,pdl *d,pdl *xe,pdl *fe,pdl *ierr,pdl *skip); |
| 95 |
|
| pdl_error pdl_run_pchip_chia(pdl *x,pdl *f,pdl *d,pdl *la,pdl *lb,pdl *ans,pdl *ierr,pdl *skip); |
| 96 |
|
| pdl_error pdl_run_pchip_chid(pdl *x,pdl *f,pdl *d,pdl *ia,pdl *ib,pdl *ans,pdl *ierr,pdl *skip); |
| 97 |
|
| pdl_error pdl_run_pchip_chbs(pdl *x,pdl *f,pdl *d,pdl *knotyp,pdl *t,pdl *bcoef,pdl *ierr); |
| 98 |
|
| pdl_error pdl_run_pchip_bvalu(pdl *t,pdl *a,pdl *ideriv,pdl *x,pdl *ans,pdl *inbv); |
| 99 |
|
| |
| 100 |
|
| #line 449 "lib/PDL/PP.pm" |
| 101 |
|
| #include "pdlperl.h" |
| 102 |
|
| #line 103 "lib/PDL/Primitive.xs" |
| 103 |
|
| |
| 104 |
|
| Core* PDL = NULL; /* Structure hold core C functions */ |
| 105 |
|
| |
| 106 |
|
| MODULE = PDL::Primitive PACKAGE = PDL PREFIX=pdl_run_ |
| 107 |
|
| |
| 108 |
|
| PROTOTYPES: DISABLE |
| 109 |
|
| |
| 110 |
|
| |
| 111 |
|
| void |
| 112 |
|
| pdl_run_inner(a, b, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 113 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 114 |
|
| PREINIT: |
| 115 |
4 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
3 |
4 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
4 |
4 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
4 |
4 |
|
| 116 |
|
| INPUT: |
| 117 |
|
| pdl *a |
| 118 |
|
| pdl *b |
| 119 |
|
| pdl *c |
| 120 |
|
| PPCODE: |
| 121 |
4 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("inner: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("inner: a->inplace but not supported"); |
0 |
4 |
4 |
|
| 122 |
4 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("inner: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("inner: b->inplace but not supported"); |
0 |
4 |
4 |
|
| 123 |
4 |
| PDL->barf_if_error(pdl_run_inner(a,b,c)); |
| 124 |
4 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
3 |
1 |
4 |
| PDL_XS_RETURN(ST(0) = c_SV) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
3 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
1 |
1 |
|
| 125 |
|
| |
| 126 |
|
| void |
| 127 |
|
| pdl_run_outer(a, b, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 128 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 129 |
|
| PREINIT: |
| 130 |
6 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
6 |
0 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
6 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
6 |
0 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
6 |
0 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
6 |
0 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
6 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
6 |
0 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
6 |
6 |
|
| 131 |
|
| INPUT: |
| 132 |
|
| pdl *a |
| 133 |
|
| pdl *b |
| 134 |
|
| pdl *c |
| 135 |
|
| PPCODE: |
| 136 |
6 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("outer: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("outer: a->inplace but not supported"); |
0 |
6 |
6 |
|
| 137 |
6 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("outer: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("outer: b->inplace but not supported"); |
0 |
6 |
6 |
|
| 138 |
6 |
| PDL->barf_if_error(pdl_run_outer(a,b,c)); |
| 139 |
6 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
6 |
0 |
6 |
| PDL_XS_RETURN(ST(0) = c_SV) |
6 |
0 |
6 |
| PDL_XS_RETURN(ST(0) = c_SV) |
6 |
0 |
6 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
6 |
6 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 140 |
|
| |
| 141 |
|
| void |
| 142 |
|
| _matmult_int(a,b,c) |
| 143 |
|
| pdl *a |
| 144 |
|
| pdl *b |
| 145 |
|
| pdl *c |
| 146 |
|
| CODE: |
| 147 |
197 |
| PDL->barf_if_error(pdl_run_matmult(a,b,c)); |
| 148 |
|
| |
| 149 |
|
| void |
| 150 |
|
| pdl_run_innerwt(a, b, c, d=PDL_XS_PERLINIT_initsv(d_SV)) |
| 151 |
|
| SV *d_SV = items > 3 ? ST(3) : NULL; |
| 152 |
|
| PREINIT: |
| 153 |
0 |
▶ | PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
|
| 154 |
|
| INPUT: |
| 155 |
|
| pdl *a |
| 156 |
|
| pdl *b |
| 157 |
|
| pdl *c |
| 158 |
|
| pdl *d |
| 159 |
|
| PPCODE: |
| 160 |
0 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("innerwt: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("innerwt: a->inplace but not supported"); |
0 |
0 |
0 |
|
| 161 |
0 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("innerwt: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("innerwt: b->inplace but not supported"); |
0 |
0 |
0 |
|
| 162 |
0 |
▶ | if (PDL_IS_INPLACE(c)) PDL->pdl_barf("innerwt: c->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(c)) PDL->pdl_barf("innerwt: c->inplace but not supported"); |
0 |
0 |
0 |
|
| 163 |
0 |
| PDL->barf_if_error(pdl_run_innerwt(a,b,c,d)); |
| 164 |
0 |
▶ | PDL_XS_RETURN(ST(0) = d_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
|
| 165 |
|
| |
| 166 |
|
| void |
| 167 |
|
| pdl_run_inner2(a, b, c, d=PDL_XS_PERLINIT_initsv(d_SV)) |
| 168 |
|
| SV *d_SV = items > 3 ? ST(3) : NULL; |
| 169 |
|
| PREINIT: |
| 170 |
0 |
▶ | PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
|
| 171 |
|
| INPUT: |
| 172 |
|
| pdl *a |
| 173 |
|
| pdl *b |
| 174 |
|
| pdl *c |
| 175 |
|
| pdl *d |
| 176 |
|
| PPCODE: |
| 177 |
0 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("inner2: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("inner2: a->inplace but not supported"); |
0 |
0 |
0 |
|
| 178 |
0 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("inner2: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("inner2: b->inplace but not supported"); |
0 |
0 |
0 |
|
| 179 |
0 |
▶ | if (PDL_IS_INPLACE(c)) PDL->pdl_barf("inner2: c->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(c)) PDL->pdl_barf("inner2: c->inplace but not supported"); |
0 |
0 |
0 |
|
| 180 |
0 |
| PDL->barf_if_error(pdl_run_inner2(a,b,c,d)); |
| 181 |
0 |
▶ | PDL_XS_RETURN(ST(0) = d_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
|
| 182 |
|
| |
| 183 |
|
| void |
| 184 |
|
| pdl_run_inner2d(a, b, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 185 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 186 |
|
| PREINIT: |
| 187 |
0 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
|
| 188 |
|
| INPUT: |
| 189 |
|
| pdl *a |
| 190 |
|
| pdl *b |
| 191 |
|
| pdl *c |
| 192 |
|
| PPCODE: |
| 193 |
0 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("inner2d: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("inner2d: a->inplace but not supported"); |
0 |
0 |
0 |
|
| 194 |
0 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("inner2d: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("inner2d: b->inplace but not supported"); |
0 |
0 |
0 |
|
| 195 |
0 |
| PDL->barf_if_error(pdl_run_inner2d(a,b,c)); |
| 196 |
0 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 197 |
|
| |
| 198 |
|
| void |
| 199 |
|
| pdl_run_inner2t(a, b, c, d=PDL_XS_PERLINIT_initsv(d_SV)) |
| 200 |
|
| SV *d_SV = items > 3 ? ST(3) : NULL; |
| 201 |
|
| PREINIT: |
| 202 |
0 |
▶ | PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 1); |
0 |
0 |
0 |
|
| 203 |
|
| INPUT: |
| 204 |
|
| pdl *a |
| 205 |
|
| pdl *b |
| 206 |
|
| pdl *c |
| 207 |
|
| pdl *d |
| 208 |
|
| PPCODE: |
| 209 |
0 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("inner2t: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("inner2t: a->inplace but not supported"); |
0 |
0 |
0 |
|
| 210 |
0 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("inner2t: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("inner2t: b->inplace but not supported"); |
0 |
0 |
0 |
|
| 211 |
0 |
▶ | if (PDL_IS_INPLACE(c)) PDL->pdl_barf("inner2t: c->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(c)) PDL->pdl_barf("inner2t: c->inplace but not supported"); |
0 |
0 |
0 |
|
| 212 |
0 |
| PDL->barf_if_error(pdl_run_inner2t(a,b,c,d)); |
| 213 |
0 |
▶ | PDL_XS_RETURN(ST(0) = d_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = d_SV) |
0 |
0 |
0 |
|
| 214 |
|
| |
| 215 |
|
| void |
| 216 |
|
| pdl_run_crossp(a, b, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 217 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 218 |
|
| PREINIT: |
| 219 |
3 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
2 |
3 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
2 |
2 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
2 |
2 |
|
| 220 |
|
| INPUT: |
| 221 |
|
| pdl *a |
| 222 |
|
| pdl *b |
| 223 |
|
| pdl *c |
| 224 |
|
| PPCODE: |
| 225 |
3 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("crossp: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("crossp: a->inplace but not supported"); |
1 |
2 |
3 |
|
| 226 |
2 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("crossp: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("crossp: b->inplace but not supported"); |
0 |
2 |
2 |
|
| 227 |
2 |
| PDL->barf_if_error(pdl_run_crossp(a,b,c)); |
| 228 |
2 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = c_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = c_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
2 |
2 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 229 |
|
| |
| 230 |
|
| void |
| 231 |
|
| pdl_run_norm(vec, norm=norm) |
| 232 |
|
| SV *norm_SV = items > 1 ? ST(1) : NULL; |
| 233 |
|
| PREINIT: |
| 234 |
4 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
4 |
4 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
4 |
4 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
4 |
4 |
|
| 235 |
|
| INPUT: |
| 236 |
|
| pdl *vec |
| 237 |
|
| pdl *norm=NO_INIT |
| 238 |
|
| PPCODE: |
| 239 |
4 |
▶ | PDL_XS_INPLACE(vec, norm) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(vec, norm) |
1 |
3 |
4 |
| PDL_XS_INPLACE(vec, norm) |
0 |
1 |
1 |
| PDL_XS_INPLACE(vec, norm) |
0 |
3 |
3 |
| PDL_XS_INPLACE(vec, norm) |
0 |
3 |
3 |
|
| 240 |
4 |
| PDL->barf_if_error(pdl_run_norm(vec,norm)); |
| 241 |
4 |
▶ | PDL_XS_RETURN(ST(0) = norm_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = norm_SV) |
4 |
0 |
4 |
| PDL_XS_RETURN(ST(0) = norm_SV) |
4 |
0 |
4 |
| PDL_XS_RETURN(ST(0) = norm_SV) |
4 |
0 |
4 |
| PDL_XS_RETURN(ST(0) = norm_SV) |
0 |
4 |
4 |
| PDL_XS_RETURN(ST(0) = norm_SV) |
0 |
0 |
0 |
|
| 242 |
|
| |
| 243 |
|
| void |
| 244 |
|
| pdl_run_indadd(input, ind, sum) |
| 245 |
|
| pdl *input |
| 246 |
|
| pdl *ind |
| 247 |
|
| pdl *sum |
| 248 |
|
| PPCODE: |
| 249 |
7 |
▶ | if (PDL_IS_INPLACE(input)) PDL->pdl_barf("indadd: input->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(input)) PDL->pdl_barf("indadd: input->inplace but not supported"); |
0 |
7 |
7 |
|
| 250 |
7 |
▶ | if (PDL_IS_INPLACE(ind)) PDL->pdl_barf("indadd: ind->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(ind)) PDL->pdl_barf("indadd: ind->inplace but not supported"); |
0 |
7 |
7 |
|
| 251 |
7 |
▶ | if (PDL_IS_INPLACE(sum)) PDL->pdl_barf("indadd: sum->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(sum)) PDL->pdl_barf("indadd: sum->inplace but not supported"); |
0 |
7 |
7 |
|
| 252 |
7 |
| PDL->barf_if_error(pdl_run_indadd(input,ind,sum)); |
| 253 |
|
| |
| 254 |
|
| void |
| 255 |
|
| _conv1d_int(a,kern,b,reflect) |
| 256 |
|
| pdl *a |
| 257 |
|
| pdl *kern |
| 258 |
|
| pdl *b |
| 259 |
|
| int reflect |
| 260 |
|
| CODE: |
| 261 |
0 |
| PDL->barf_if_error(pdl_run_conv1d(a,kern,b,reflect)); |
| 262 |
|
| |
| 263 |
|
| void |
| 264 |
|
| pdl_run_in(a, b, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 265 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 266 |
|
| PREINIT: |
| 267 |
0 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
|
| 268 |
|
| INPUT: |
| 269 |
|
| pdl *a |
| 270 |
|
| pdl *b |
| 271 |
|
| pdl *c |
| 272 |
|
| PPCODE: |
| 273 |
0 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("in: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("in: a->inplace but not supported"); |
0 |
0 |
0 |
|
| 274 |
0 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("in: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("in: b->inplace but not supported"); |
0 |
0 |
0 |
|
| 275 |
0 |
| PDL->barf_if_error(pdl_run_in(a,b,c)); |
| 276 |
0 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 277 |
|
| |
| 278 |
|
| void |
| 279 |
|
| pdl_run_hclip(a, b, c=c) |
| 280 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 281 |
|
| PREINIT: |
| 282 |
5 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
4 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
5 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
5 |
5 |
|
| 283 |
|
| INPUT: |
| 284 |
|
| pdl *a |
| 285 |
|
| pdl *b |
| 286 |
|
| pdl *c=NO_INIT |
| 287 |
|
| PPCODE: |
| 288 |
5 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
1 |
4 |
5 |
| PDL_XS_INPLACE(a, c) |
0 |
1 |
1 |
| PDL_XS_INPLACE(a, c) |
0 |
4 |
4 |
| PDL_XS_INPLACE(a, c) |
0 |
4 |
4 |
|
| 289 |
5 |
| PDL->barf_if_error(pdl_run_hclip(a,b,c)); |
| 290 |
5 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
5 |
0 |
5 |
| PDL_XS_RETURN(ST(0) = c_SV) |
5 |
0 |
5 |
| PDL_XS_RETURN(ST(0) = c_SV) |
5 |
0 |
5 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
5 |
5 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 291 |
|
| |
| 292 |
|
| void |
| 293 |
|
| pdl_run_lclip(a, b, c=c) |
| 294 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 295 |
|
| PREINIT: |
| 296 |
5 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
4 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
5 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
5 |
5 |
|
| 297 |
|
| INPUT: |
| 298 |
|
| pdl *a |
| 299 |
|
| pdl *b |
| 300 |
|
| pdl *c=NO_INIT |
| 301 |
|
| PPCODE: |
| 302 |
5 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
5 |
5 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
5 |
5 |
| PDL_XS_INPLACE(a, c) |
0 |
5 |
5 |
|
| 303 |
5 |
| PDL->barf_if_error(pdl_run_lclip(a,b,c)); |
| 304 |
5 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
5 |
0 |
5 |
| PDL_XS_RETURN(ST(0) = c_SV) |
5 |
0 |
5 |
| PDL_XS_RETURN(ST(0) = c_SV) |
5 |
0 |
5 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
5 |
5 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 305 |
|
| |
| 306 |
|
| void |
| 307 |
|
| _clip_int(a,l,h,c) |
| 308 |
|
| pdl *a |
| 309 |
|
| pdl *l |
| 310 |
|
| pdl *h |
| 311 |
|
| pdl *c |
| 312 |
|
| CODE: |
| 313 |
13 |
| PDL->barf_if_error(pdl_run_clip(a,l,h,c)); |
| 314 |
|
| |
| 315 |
|
| void |
| 316 |
|
| pdl_run_wtstat(a, wt, avg, b=b, deg=deg) |
| 317 |
|
| SV *b_SV = (items == 5) ? ST(3) : NULL; |
| 318 |
|
| SV *deg_SV = (items == 5) ? ST(4) : ST(3); |
| 319 |
|
| PREINIT: |
| 320 |
0 |
▶ | PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
0 |
0 |
|
| 321 |
0 |
▶ | if (!((items == 4) || (items == 5))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (!((items == 4) || (items == 5))) |
0 |
0 |
0 |
| if (!((items == 4) || (items == 5))) |
0 |
0 |
0 |
|
| 322 |
0 |
| croak("Usage: PDL::wtstat(a,wt,avg,[b],deg) (you may leave [outputs] and values with =defaults out of list)"); |
| 323 |
|
| INPUT: |
| 324 |
|
| pdl *a |
| 325 |
|
| pdl *wt |
| 326 |
|
| pdl *avg |
| 327 |
|
| pdl *b=NO_INIT |
| 328 |
|
| int deg; { deg = (int)SvIV(deg_SV); } |
| 329 |
|
| PPCODE: |
| 330 |
0 |
▶ | if (b_SV) { b = PDL_CORE_(SvPDLV)(b_SV); } else b = PDL_XS_PERLINIT_initsv(b_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| if (b_SV) { b = PDL_CORE_(SvPDLV)(b_SV); } else b = PDL_XS_PERLINIT_initsv(b_SV); |
0 |
0 |
0 |
| if (b_SV) { b = PDL_CORE_(SvPDLV)(b_SV); } else b = PDL_XS_PERLINIT_initsv(b_SV); |
0 |
0 |
0 |
|
| 331 |
0 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("wtstat: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("wtstat: a->inplace but not supported"); |
0 |
0 |
0 |
|
| 332 |
0 |
▶ | if (PDL_IS_INPLACE(wt)) PDL->pdl_barf("wtstat: wt->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(wt)) PDL->pdl_barf("wtstat: wt->inplace but not supported"); |
0 |
0 |
0 |
|
| 333 |
0 |
▶ | if (PDL_IS_INPLACE(avg)) PDL->pdl_barf("wtstat: avg->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(avg)) PDL->pdl_barf("wtstat: avg->inplace but not supported"); |
0 |
0 |
0 |
|
| 334 |
0 |
| PDL->barf_if_error(pdl_run_wtstat(a,wt,avg,b,deg)); |
| 335 |
0 |
▶ | PDL_XS_RETURN(ST(0) = b_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = b_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = b_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = b_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = b_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = b_SV) |
0 |
0 |
0 |
|
| 336 |
|
| |
| 337 |
|
| void |
| 338 |
|
| _statsover_int(a,w,avg,prms,min,max,adev,rms) |
| 339 |
|
| pdl *a |
| 340 |
|
| pdl *w |
| 341 |
|
| pdl *avg |
| 342 |
|
| pdl *prms |
| 343 |
|
| pdl *min |
| 344 |
|
| pdl *max |
| 345 |
|
| pdl *adev |
| 346 |
|
| pdl *rms |
| 347 |
|
| CODE: |
| 348 |
29 |
| PDL->barf_if_error(pdl_run_statsover(a,w,avg,prms,min,max,adev,rms)); |
| 349 |
|
| |
| 350 |
|
| void |
| 351 |
|
| pdl_run_histogram(in, hist=hist, step=step, min=min, msize=msize) |
| 352 |
|
| SV *hist_SV = (items == 5) ? ST(1) : NULL; |
| 353 |
|
| SV *step_SV = (items == 5) ? ST(2) : ST(1); |
| 354 |
|
| SV *min_SV = (items == 5) ? ST(3) : ST(2); |
| 355 |
|
| SV *msize_SV = (items == 5) ? ST(4) : ST(3); |
| 356 |
|
| PREINIT: |
| 357 |
4 |
▶ | PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
4 |
4 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
4 |
4 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
4 |
0 |
4 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 1); |
0 |
4 |
4 |
|
| 358 |
4 |
▶ | if (!((items == 4) || (items == 5))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (!((items == 4) || (items == 5))) |
0 |
4 |
4 |
| if (!((items == 4) || (items == 5))) |
0 |
0 |
0 |
|
| 359 |
0 |
| croak("Usage: PDL::histogram(in,[hist],step,min,msize) (you may leave [outputs] and values with =defaults out of list)"); |
| 360 |
|
| INPUT: |
| 361 |
|
| pdl *in |
| 362 |
|
| pdl *hist=NO_INIT |
| 363 |
|
| double step; { step = (double)SvNV(step_SV); } |
| 364 |
|
| double min; { min = (double)SvNV(min_SV); } |
| 365 |
|
| IV msize; { msize = (IV)SvIV(msize_SV); } |
| 366 |
|
| PPCODE: |
| 367 |
4 |
▶ | if (hist_SV) { hist = PDL_CORE_(SvPDLV)(hist_SV); } else hist = PDL_XS_PERLINIT_initsv(hist_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| if (hist_SV) { hist = PDL_CORE_(SvPDLV)(hist_SV); } else hist = PDL_XS_PERLINIT_initsv(hist_SV); |
0 |
4 |
4 |
| if (hist_SV) { hist = PDL_CORE_(SvPDLV)(hist_SV); } else hist = PDL_XS_PERLINIT_initsv(hist_SV); |
0 |
4 |
4 |
|
| 368 |
4 |
▶ | if (PDL_IS_INPLACE(in)) PDL->pdl_barf("histogram: in->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(in)) PDL->pdl_barf("histogram: in->inplace but not supported"); |
0 |
4 |
4 |
|
| 369 |
4 |
| PDL->barf_if_error(pdl_run_histogram(in,hist,step,min,msize)); |
| 370 |
3 |
▶ | PDL_XS_RETURN(ST(0) = hist_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = hist_SV) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
0 |
3 |
3 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
0 |
0 |
0 |
|
| 371 |
|
| |
| 372 |
|
| void |
| 373 |
|
| pdl_run_whistogram(in, wt, hist=hist, step=step, min=min, msize=msize) |
| 374 |
|
| SV *hist_SV = (items == 6) ? ST(2) : NULL; |
| 375 |
|
| SV *step_SV = (items == 6) ? ST(3) : ST(2); |
| 376 |
|
| SV *min_SV = (items == 6) ? ST(4) : ST(3); |
| 377 |
|
| SV *msize_SV = (items == 6) ? ST(5) : ST(4); |
| 378 |
|
| PREINIT: |
| 379 |
1 |
▶ | PDL_XS_PREAMBLE((items == 6) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 1); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 1); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 1); |
0 |
1 |
1 |
|
| 380 |
1 |
▶ | if (!((items == 5) || (items == 6))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (!((items == 5) || (items == 6))) |
0 |
1 |
1 |
| if (!((items == 5) || (items == 6))) |
0 |
0 |
0 |
|
| 381 |
0 |
| croak("Usage: PDL::whistogram(in,wt,[hist],step,min,msize) (you may leave [outputs] and values with =defaults out of list)"); |
| 382 |
|
| INPUT: |
| 383 |
|
| pdl *in |
| 384 |
|
| pdl *wt |
| 385 |
|
| pdl *hist=NO_INIT |
| 386 |
|
| double step; { step = (double)SvNV(step_SV); } |
| 387 |
|
| double min; { min = (double)SvNV(min_SV); } |
| 388 |
|
| IV msize; { msize = (IV)SvIV(msize_SV); } |
| 389 |
|
| PPCODE: |
| 390 |
1 |
▶ | if (hist_SV) { hist = PDL_CORE_(SvPDLV)(hist_SV); } else hist = PDL_XS_PERLINIT_initsv(hist_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| if (hist_SV) { hist = PDL_CORE_(SvPDLV)(hist_SV); } else hist = PDL_XS_PERLINIT_initsv(hist_SV); |
0 |
1 |
1 |
| if (hist_SV) { hist = PDL_CORE_(SvPDLV)(hist_SV); } else hist = PDL_XS_PERLINIT_initsv(hist_SV); |
0 |
1 |
1 |
|
| 391 |
1 |
▶ | if (PDL_IS_INPLACE(in)) PDL->pdl_barf("whistogram: in->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(in)) PDL->pdl_barf("whistogram: in->inplace but not supported"); |
0 |
1 |
1 |
|
| 392 |
1 |
▶ | if (PDL_IS_INPLACE(wt)) PDL->pdl_barf("whistogram: wt->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(wt)) PDL->pdl_barf("whistogram: wt->inplace but not supported"); |
0 |
1 |
1 |
|
| 393 |
1 |
| PDL->barf_if_error(pdl_run_whistogram(in,wt,hist,step,min,msize)); |
| 394 |
1 |
▶ | PDL_XS_RETURN(ST(0) = hist_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = hist_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
0 |
1 |
1 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
0 |
0 |
0 |
|
| 395 |
|
| |
| 396 |
|
| void |
| 397 |
|
| pdl_run_histogram2d(ina, inb, hist=hist, stepa=stepa, mina=mina, masize=masize, stepb=stepb, minb=minb, mbsize=mbsize) |
| 398 |
|
| SV *hist_SV = (items == 9) ? ST(2) : NULL; |
| 399 |
|
| SV *stepa_SV = (items == 9) ? ST(3) : ST(2); |
| 400 |
|
| SV *mina_SV = (items == 9) ? ST(4) : ST(3); |
| 401 |
|
| SV *masize_SV = (items == 9) ? ST(5) : ST(4); |
| 402 |
|
| SV *stepb_SV = (items == 9) ? ST(6) : ST(5); |
| 403 |
|
| SV *minb_SV = (items == 9) ? ST(7) : ST(6); |
| 404 |
|
| SV *mbsize_SV = (items == 9) ? ST(8) : ST(7); |
| 405 |
|
| PREINIT: |
| 406 |
1 |
▶ | PDL_XS_PREAMBLE((items == 9) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 9) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 9) ? 0 : 1); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 9) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 9) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 9) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 9) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 9) ? 0 : 1); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 9) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 9) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 9) ? 0 : 1); |
0 |
1 |
1 |
|
| 407 |
1 |
▶ | if (!((items == 8) || (items == 9))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (!((items == 8) || (items == 9))) |
0 |
1 |
1 |
| if (!((items == 8) || (items == 9))) |
0 |
0 |
0 |
|
| 408 |
0 |
| croak("Usage: PDL::histogram2d(ina,inb,[hist],stepa,mina,masize,stepb,minb,mbsize) (you may leave [outputs] and values with =defaults out of list)"); |
| 409 |
|
| INPUT: |
| 410 |
|
| pdl *ina |
| 411 |
|
| pdl *inb |
| 412 |
|
| pdl *hist=NO_INIT |
| 413 |
|
| double stepa; { stepa = (double)SvNV(stepa_SV); } |
| 414 |
|
| double mina; { mina = (double)SvNV(mina_SV); } |
| 415 |
|
| IV masize; { masize = (IV)SvIV(masize_SV); } |
| 416 |
|
| double stepb; { stepb = (double)SvNV(stepb_SV); } |
| 417 |
|
| double minb; { minb = (double)SvNV(minb_SV); } |
| 418 |
|
| IV mbsize; { mbsize = (IV)SvIV(mbsize_SV); } |
| 419 |
|
| PPCODE: |
| 420 |
1 |
▶ | if (hist_SV) { hist = PDL_CORE_(SvPDLV)(hist_SV); } else hist = PDL_XS_PERLINIT_initsv(hist_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| if (hist_SV) { hist = PDL_CORE_(SvPDLV)(hist_SV); } else hist = PDL_XS_PERLINIT_initsv(hist_SV); |
0 |
1 |
1 |
| if (hist_SV) { hist = PDL_CORE_(SvPDLV)(hist_SV); } else hist = PDL_XS_PERLINIT_initsv(hist_SV); |
0 |
1 |
1 |
|
| 421 |
1 |
▶ | if (PDL_IS_INPLACE(ina)) PDL->pdl_barf("histogram2d: ina->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(ina)) PDL->pdl_barf("histogram2d: ina->inplace but not supported"); |
0 |
1 |
1 |
|
| 422 |
1 |
▶ | if (PDL_IS_INPLACE(inb)) PDL->pdl_barf("histogram2d: inb->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(inb)) PDL->pdl_barf("histogram2d: inb->inplace but not supported"); |
0 |
1 |
1 |
|
| 423 |
1 |
| PDL->barf_if_error(pdl_run_histogram2d(ina,inb,hist,stepa,mina,masize,stepb,minb,mbsize)); |
| 424 |
1 |
▶ | PDL_XS_RETURN(ST(0) = hist_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = hist_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
0 |
1 |
1 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
0 |
0 |
0 |
|
| 425 |
|
| |
| 426 |
|
| void |
| 427 |
|
| pdl_run_whistogram2d(ina, inb, wt, hist=hist, stepa=stepa, mina=mina, masize=masize, stepb=stepb, minb=minb, mbsize=mbsize) |
| 428 |
|
| SV *hist_SV = (items == 10) ? ST(3) : NULL; |
| 429 |
|
| SV *stepa_SV = (items == 10) ? ST(4) : ST(3); |
| 430 |
|
| SV *mina_SV = (items == 10) ? ST(5) : ST(4); |
| 431 |
|
| SV *masize_SV = (items == 10) ? ST(6) : ST(5); |
| 432 |
|
| SV *stepb_SV = (items == 10) ? ST(7) : ST(6); |
| 433 |
|
| SV *minb_SV = (items == 10) ? ST(8) : ST(7); |
| 434 |
|
| SV *mbsize_SV = (items == 10) ? ST(9) : ST(8); |
| 435 |
|
| PREINIT: |
| 436 |
0 |
▶ | PDL_XS_PREAMBLE((items == 10) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 10) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 10) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 10) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 10) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 10) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 10) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 10) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 10) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 10) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 10) ? 0 : 1); |
0 |
0 |
0 |
|
| 437 |
0 |
▶ | if (!((items == 10) || (items == 9))) |
Branch: 2 branches
| Branch | True | False | Total |
| if (!((items == 10) || (items == 9))) |
0 |
0 |
0 |
| if (!((items == 10) || (items == 9))) |
0 |
0 |
0 |
|
| 438 |
0 |
| croak("Usage: PDL::whistogram2d(ina,inb,wt,[hist],stepa,mina,masize,stepb,minb,mbsize) (you may leave [outputs] and values with =defaults out of list)"); |
| 439 |
|
| INPUT: |
| 440 |
|
| pdl *ina |
| 441 |
|
| pdl *inb |
| 442 |
|
| pdl *wt |
| 443 |
|
| pdl *hist=NO_INIT |
| 444 |
|
| double stepa; { stepa = (double)SvNV(stepa_SV); } |
| 445 |
|
| double mina; { mina = (double)SvNV(mina_SV); } |
| 446 |
|
| IV masize; { masize = (IV)SvIV(masize_SV); } |
| 447 |
|
| double stepb; { stepb = (double)SvNV(stepb_SV); } |
| 448 |
|
| double minb; { minb = (double)SvNV(minb_SV); } |
| 449 |
|
| IV mbsize; { mbsize = (IV)SvIV(mbsize_SV); } |
| 450 |
|
| PPCODE: |
| 451 |
0 |
▶ | if (hist_SV) { hist = PDL_CORE_(SvPDLV)(hist_SV); } else hist = PDL_XS_PERLINIT_initsv(hist_SV); |
Branch: 2 branches
| Branch | True | False | Total |
| if (hist_SV) { hist = PDL_CORE_(SvPDLV)(hist_SV); } else hist = PDL_XS_PERLINIT_initsv(hist_SV); |
0 |
0 |
0 |
| if (hist_SV) { hist = PDL_CORE_(SvPDLV)(hist_SV); } else hist = PDL_XS_PERLINIT_initsv(hist_SV); |
0 |
0 |
0 |
|
| 452 |
0 |
▶ | if (PDL_IS_INPLACE(ina)) PDL->pdl_barf("whistogram2d: ina->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(ina)) PDL->pdl_barf("whistogram2d: ina->inplace but not supported"); |
0 |
0 |
0 |
|
| 453 |
0 |
▶ | if (PDL_IS_INPLACE(inb)) PDL->pdl_barf("whistogram2d: inb->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(inb)) PDL->pdl_barf("whistogram2d: inb->inplace but not supported"); |
0 |
0 |
0 |
|
| 454 |
0 |
▶ | if (PDL_IS_INPLACE(wt)) PDL->pdl_barf("whistogram2d: wt->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(wt)) PDL->pdl_barf("whistogram2d: wt->inplace but not supported"); |
0 |
0 |
0 |
|
| 455 |
0 |
| PDL->barf_if_error(pdl_run_whistogram2d(ina,inb,wt,hist,stepa,mina,masize,stepb,minb,mbsize)); |
| 456 |
0 |
▶ | PDL_XS_RETURN(ST(0) = hist_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = hist_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
0 |
0 |
0 |
| PDL_XS_RETURN(ST(0) = hist_SV) |
0 |
0 |
0 |
|
| 457 |
|
| |
| 458 |
|
| void |
| 459 |
|
| _fibonacci_int(i,x) |
| 460 |
|
| pdl *i |
| 461 |
|
| pdl *x |
| 462 |
|
| CODE: |
| 463 |
1 |
| PDL->barf_if_error(pdl_run_fibonacci(i,x)); |
| 464 |
|
| |
| 465 |
|
| void |
| 466 |
|
| _append_int(a,b,c) |
| 467 |
|
| pdl *a |
| 468 |
|
| pdl *b |
| 469 |
|
| pdl *c |
| 470 |
|
| CODE: |
| 471 |
123 |
| PDL->barf_if_error(pdl_run_append(a,b,c)); |
| 472 |
|
| |
| 473 |
|
| void |
| 474 |
|
| pdl_run_axisvalues(i, a=a) |
| 475 |
|
| SV *a_SV = items > 1 ? ST(1) : NULL; |
| 476 |
|
| PREINIT: |
| 477 |
790 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
790 |
0 |
790 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
1 |
789 |
790 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
790 |
0 |
790 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
790 |
0 |
790 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
790 |
0 |
790 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
790 |
790 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
790 |
0 |
790 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
790 |
790 |
|
| 478 |
|
| INPUT: |
| 479 |
|
| pdl *i |
| 480 |
|
| pdl *a=NO_INIT |
| 481 |
|
| PPCODE: |
| 482 |
790 |
▶ | PDL_XS_INPLACE(i, a) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(i, a) |
790 |
0 |
790 |
| PDL_XS_INPLACE(i, a) |
0 |
790 |
790 |
| PDL_XS_INPLACE(i, a) |
0 |
0 |
0 |
| PDL_XS_INPLACE(i, a) |
0 |
0 |
0 |
|
| 483 |
790 |
| PDL->barf_if_error(pdl_run_axisvalues(i,a)); |
| 484 |
790 |
▶ | PDL_XS_RETURN(ST(0) = a_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = a_SV) |
790 |
0 |
790 |
| PDL_XS_RETURN(ST(0) = a_SV) |
790 |
0 |
790 |
| PDL_XS_RETURN(ST(0) = a_SV) |
790 |
0 |
790 |
| PDL_XS_RETURN(ST(0) = a_SV) |
0 |
790 |
790 |
| PDL_XS_RETURN(ST(0) = a_SV) |
0 |
0 |
0 |
|
| 485 |
|
| |
| 486 |
|
| void |
| 487 |
|
| pdl_run_cmpvec(a, b, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 488 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 489 |
|
| PREINIT: |
| 490 |
8 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
8 |
0 |
8 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
8 |
8 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
8 |
0 |
8 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
8 |
0 |
8 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
8 |
0 |
8 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
8 |
8 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
8 |
0 |
8 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
8 |
8 |
|
| 491 |
|
| INPUT: |
| 492 |
|
| pdl *a |
| 493 |
|
| pdl *b |
| 494 |
|
| pdl *c |
| 495 |
|
| PPCODE: |
| 496 |
8 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("cmpvec: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("cmpvec: a->inplace but not supported"); |
0 |
8 |
8 |
|
| 497 |
8 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("cmpvec: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("cmpvec: b->inplace but not supported"); |
0 |
8 |
8 |
|
| 498 |
8 |
| PDL->barf_if_error(pdl_run_cmpvec(a,b,c)); |
| 499 |
8 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
8 |
0 |
8 |
| PDL_XS_RETURN(ST(0) = c_SV) |
8 |
0 |
8 |
| PDL_XS_RETURN(ST(0) = c_SV) |
8 |
0 |
8 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
8 |
8 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 500 |
|
| |
| 501 |
|
| void |
| 502 |
|
| pdl_run_eqvec(a, b, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 503 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 504 |
|
| PREINIT: |
| 505 |
7 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
7 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
7 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
7 |
7 |
|
| 506 |
|
| INPUT: |
| 507 |
|
| pdl *a |
| 508 |
|
| pdl *b |
| 509 |
|
| pdl *c |
| 510 |
|
| PPCODE: |
| 511 |
7 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("eqvec: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("eqvec: a->inplace but not supported"); |
0 |
7 |
7 |
|
| 512 |
7 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("eqvec: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("eqvec: b->inplace but not supported"); |
0 |
7 |
7 |
|
| 513 |
7 |
| PDL->barf_if_error(pdl_run_eqvec(a,b,c)); |
| 514 |
6 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
4 |
2 |
6 |
| PDL_XS_RETURN(ST(0) = c_SV) |
4 |
0 |
4 |
| PDL_XS_RETURN(ST(0) = c_SV) |
4 |
0 |
4 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
4 |
4 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
2 |
2 |
|
| 515 |
|
| |
| 516 |
|
| void |
| 517 |
|
| pdl_run_enumvec(v, k=PDL_XS_PERLINIT_initsv(k_SV)) |
| 518 |
|
| SV *k_SV = items > 1 ? ST(1) : NULL; |
| 519 |
|
| PREINIT: |
| 520 |
5 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
5 |
5 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
5 |
5 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
5 |
0 |
5 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
5 |
5 |
|
| 521 |
|
| INPUT: |
| 522 |
|
| pdl *v |
| 523 |
|
| pdl *k |
| 524 |
|
| PPCODE: |
| 525 |
5 |
▶ | if (PDL_IS_INPLACE(v)) PDL->pdl_barf("enumvec: v->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(v)) PDL->pdl_barf("enumvec: v->inplace but not supported"); |
0 |
5 |
5 |
|
| 526 |
5 |
| PDL->barf_if_error(pdl_run_enumvec(v,k)); |
| 527 |
5 |
▶ | PDL_XS_RETURN(ST(0) = k_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = k_SV) |
5 |
0 |
5 |
| PDL_XS_RETURN(ST(0) = k_SV) |
5 |
0 |
5 |
| PDL_XS_RETURN(ST(0) = k_SV) |
5 |
0 |
5 |
| PDL_XS_RETURN(ST(0) = k_SV) |
0 |
5 |
5 |
| PDL_XS_RETURN(ST(0) = k_SV) |
0 |
0 |
0 |
|
| 528 |
|
| |
| 529 |
|
| void |
| 530 |
|
| pdl_run_enumvecg(v, k=PDL_XS_PERLINIT_initsv(k_SV)) |
| 531 |
|
| SV *k_SV = items > 1 ? ST(1) : NULL; |
| 532 |
|
| PREINIT: |
| 533 |
1 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
1 |
1 |
|
| 534 |
|
| INPUT: |
| 535 |
|
| pdl *v |
| 536 |
|
| pdl *k |
| 537 |
|
| PPCODE: |
| 538 |
1 |
▶ | if (PDL_IS_INPLACE(v)) PDL->pdl_barf("enumvecg: v->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(v)) PDL->pdl_barf("enumvecg: v->inplace but not supported"); |
0 |
1 |
1 |
|
| 539 |
1 |
| PDL->barf_if_error(pdl_run_enumvecg(v,k)); |
| 540 |
1 |
▶ | PDL_XS_RETURN(ST(0) = k_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = k_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = k_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = k_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = k_SV) |
0 |
1 |
1 |
| PDL_XS_RETURN(ST(0) = k_SV) |
0 |
0 |
0 |
|
| 541 |
|
| |
| 542 |
|
| void |
| 543 |
|
| pdl_run_vsearchvec(find, which, found=PDL_XS_PERLINIT_initsv(found_SV)) |
| 544 |
|
| SV *found_SV = items > 2 ? ST(2) : NULL; |
| 545 |
|
| PREINIT: |
| 546 |
7 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
7 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
7 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
7 |
7 |
|
| 547 |
|
| INPUT: |
| 548 |
|
| pdl *find |
| 549 |
|
| pdl *which |
| 550 |
|
| pdl *found |
| 551 |
|
| PPCODE: |
| 552 |
7 |
▶ | if (PDL_IS_INPLACE(find)) PDL->pdl_barf("vsearchvec: find->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(find)) PDL->pdl_barf("vsearchvec: find->inplace but not supported"); |
0 |
7 |
7 |
|
| 553 |
7 |
▶ | if (PDL_IS_INPLACE(which)) PDL->pdl_barf("vsearchvec: which->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(which)) PDL->pdl_barf("vsearchvec: which->inplace but not supported"); |
0 |
7 |
7 |
|
| 554 |
7 |
| PDL->barf_if_error(pdl_run_vsearchvec(find,which,found)); |
| 555 |
7 |
▶ | PDL_XS_RETURN(ST(0) = found_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = found_SV) |
7 |
0 |
7 |
| PDL_XS_RETURN(ST(0) = found_SV) |
7 |
0 |
7 |
| PDL_XS_RETURN(ST(0) = found_SV) |
7 |
0 |
7 |
| PDL_XS_RETURN(ST(0) = found_SV) |
0 |
7 |
7 |
| PDL_XS_RETURN(ST(0) = found_SV) |
0 |
0 |
0 |
|
| 556 |
|
| |
| 557 |
|
| void |
| 558 |
|
| _unionvec_int(a,b,c,nc) |
| 559 |
|
| pdl *a |
| 560 |
|
| pdl *b |
| 561 |
|
| pdl *c |
| 562 |
|
| pdl *nc |
| 563 |
|
| CODE: |
| 564 |
12 |
| PDL->barf_if_error(pdl_run_unionvec(a,b,c,nc)); |
| 565 |
|
| |
| 566 |
|
| void |
| 567 |
|
| _intersectvec_int(a,b,c,nc) |
| 568 |
|
| pdl *a |
| 569 |
|
| pdl *b |
| 570 |
|
| pdl *c |
| 571 |
|
| pdl *nc |
| 572 |
|
| CODE: |
| 573 |
30 |
| PDL->barf_if_error(pdl_run_intersectvec(a,b,c,nc)); |
| 574 |
|
| |
| 575 |
|
| void |
| 576 |
|
| _setdiffvec_int(a,b,c,nc) |
| 577 |
|
| pdl *a |
| 578 |
|
| pdl *b |
| 579 |
|
| pdl *c |
| 580 |
|
| pdl *nc |
| 581 |
|
| CODE: |
| 582 |
14 |
| PDL->barf_if_error(pdl_run_setdiffvec(a,b,c,nc)); |
| 583 |
|
| |
| 584 |
|
| void |
| 585 |
|
| _union_sorted_int(a,b,c,nc) |
| 586 |
|
| pdl *a |
| 587 |
|
| pdl *b |
| 588 |
|
| pdl *c |
| 589 |
|
| pdl *nc |
| 590 |
|
| CODE: |
| 591 |
11 |
| PDL->barf_if_error(pdl_run_union_sorted(a,b,c,nc)); |
| 592 |
|
| |
| 593 |
|
| void |
| 594 |
|
| _intersect_sorted_int(a,b,c,nc) |
| 595 |
|
| pdl *a |
| 596 |
|
| pdl *b |
| 597 |
|
| pdl *c |
| 598 |
|
| pdl *nc |
| 599 |
|
| CODE: |
| 600 |
11 |
| PDL->barf_if_error(pdl_run_intersect_sorted(a,b,c,nc)); |
| 601 |
|
| |
| 602 |
|
| void |
| 603 |
|
| _setdiff_sorted_int(a,b,c,nc) |
| 604 |
|
| pdl *a |
| 605 |
|
| pdl *b |
| 606 |
|
| pdl *c |
| 607 |
|
| pdl *nc |
| 608 |
|
| CODE: |
| 609 |
11 |
| PDL->barf_if_error(pdl_run_setdiff_sorted(a,b,c,nc)); |
| 610 |
|
| |
| 611 |
|
| void |
| 612 |
|
| pdl_run_vcos(a, b, vcos=PDL_XS_PERLINIT_initsv(vcos_SV)) |
| 613 |
|
| SV *vcos_SV = items > 2 ? ST(2) : NULL; |
| 614 |
|
| PREINIT: |
| 615 |
6 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
6 |
0 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
6 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
6 |
0 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
6 |
0 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
6 |
0 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
6 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
6 |
0 |
6 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
6 |
6 |
|
| 616 |
|
| INPUT: |
| 617 |
|
| pdl *a |
| 618 |
|
| pdl *b |
| 619 |
|
| pdl *vcos |
| 620 |
|
| PPCODE: |
| 621 |
6 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("vcos: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("vcos: a->inplace but not supported"); |
0 |
6 |
6 |
|
| 622 |
6 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("vcos: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("vcos: b->inplace but not supported"); |
0 |
6 |
6 |
|
| 623 |
6 |
| PDL->barf_if_error(pdl_run_vcos(a,b,vcos)); |
| 624 |
6 |
▶ | PDL_XS_RETURN(ST(0) = vcos_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = vcos_SV) |
6 |
0 |
6 |
| PDL_XS_RETURN(ST(0) = vcos_SV) |
6 |
0 |
6 |
| PDL_XS_RETURN(ST(0) = vcos_SV) |
6 |
0 |
6 |
| PDL_XS_RETURN(ST(0) = vcos_SV) |
0 |
6 |
6 |
| PDL_XS_RETURN(ST(0) = vcos_SV) |
0 |
0 |
0 |
|
| 625 |
|
| |
| 626 |
|
| void |
| 627 |
|
| _srandom_int(a) |
| 628 |
|
| pdl *a |
| 629 |
|
| CODE: |
| 630 |
4 |
| PDL->barf_if_error(pdl_run_srandom(a)); |
| 631 |
|
| |
| 632 |
|
| void |
| 633 |
|
| _random_int(a) |
| 634 |
|
| pdl *a |
| 635 |
|
| CODE: |
| 636 |
24 |
| PDL->barf_if_error(pdl_run_random(a)); |
| 637 |
|
| |
| 638 |
|
| void |
| 639 |
|
| _randsym_int(a) |
| 640 |
|
| pdl *a |
| 641 |
|
| CODE: |
| 642 |
3 |
| PDL->barf_if_error(pdl_run_randsym(a)); |
| 643 |
|
| |
| 644 |
|
| void |
| 645 |
|
| pdl_run_vsearch_sample(vals, x, idx=PDL_XS_PERLINIT_initsv(idx_SV)) |
| 646 |
|
| SV *idx_SV = items > 2 ? ST(2) : NULL; |
| 647 |
|
| PREINIT: |
| 648 |
28 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
15 |
13 |
28 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
15 |
15 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
15 |
0 |
15 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
15 |
0 |
15 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
15 |
0 |
15 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
15 |
15 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
15 |
0 |
15 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
15 |
15 |
|
| 649 |
|
| INPUT: |
| 650 |
|
| pdl *vals |
| 651 |
|
| pdl *x |
| 652 |
|
| pdl *idx |
| 653 |
|
| PPCODE: |
| 654 |
28 |
▶ | if (PDL_IS_INPLACE(vals)) PDL->pdl_barf("vsearch_sample: vals->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(vals)) PDL->pdl_barf("vsearch_sample: vals->inplace but not supported"); |
0 |
28 |
28 |
|
| 655 |
28 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("vsearch_sample: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("vsearch_sample: x->inplace but not supported"); |
0 |
28 |
28 |
|
| 656 |
28 |
| PDL->barf_if_error(pdl_run_vsearch_sample(vals,x,idx)); |
| 657 |
28 |
▶ | PDL_XS_RETURN(ST(0) = idx_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = idx_SV) |
27 |
1 |
28 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
27 |
0 |
27 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
27 |
0 |
27 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
0 |
27 |
27 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
1 |
0 |
1 |
|
| 658 |
|
| |
| 659 |
|
| void |
| 660 |
|
| pdl_run_vsearch_insert_leftmost(vals, x, idx=PDL_XS_PERLINIT_initsv(idx_SV)) |
| 661 |
|
| SV *idx_SV = items > 2 ? ST(2) : NULL; |
| 662 |
|
| PREINIT: |
| 663 |
24 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
11 |
24 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
13 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
0 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
0 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
0 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
13 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
0 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
13 |
13 |
|
| 664 |
|
| INPUT: |
| 665 |
|
| pdl *vals |
| 666 |
|
| pdl *x |
| 667 |
|
| pdl *idx |
| 668 |
|
| PPCODE: |
| 669 |
24 |
▶ | if (PDL_IS_INPLACE(vals)) PDL->pdl_barf("vsearch_insert_leftmost: vals->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(vals)) PDL->pdl_barf("vsearch_insert_leftmost: vals->inplace but not supported"); |
0 |
24 |
24 |
|
| 670 |
24 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("vsearch_insert_leftmost: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("vsearch_insert_leftmost: x->inplace but not supported"); |
0 |
24 |
24 |
|
| 671 |
24 |
| PDL->barf_if_error(pdl_run_vsearch_insert_leftmost(vals,x,idx)); |
| 672 |
24 |
▶ | PDL_XS_RETURN(ST(0) = idx_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = idx_SV) |
24 |
0 |
24 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
24 |
0 |
24 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
24 |
0 |
24 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
0 |
24 |
24 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
0 |
0 |
0 |
|
| 673 |
|
| |
| 674 |
|
| void |
| 675 |
|
| pdl_run_vsearch_insert_rightmost(vals, x, idx=PDL_XS_PERLINIT_initsv(idx_SV)) |
| 676 |
|
| SV *idx_SV = items > 2 ? ST(2) : NULL; |
| 677 |
|
| PREINIT: |
| 678 |
25 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
12 |
25 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
13 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
0 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
0 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
0 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
13 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
0 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
13 |
13 |
|
| 679 |
|
| INPUT: |
| 680 |
|
| pdl *vals |
| 681 |
|
| pdl *x |
| 682 |
|
| pdl *idx |
| 683 |
|
| PPCODE: |
| 684 |
25 |
▶ | if (PDL_IS_INPLACE(vals)) PDL->pdl_barf("vsearch_insert_rightmost: vals->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(vals)) PDL->pdl_barf("vsearch_insert_rightmost: vals->inplace but not supported"); |
0 |
25 |
25 |
|
| 685 |
25 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("vsearch_insert_rightmost: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("vsearch_insert_rightmost: x->inplace but not supported"); |
0 |
25 |
25 |
|
| 686 |
25 |
| PDL->barf_if_error(pdl_run_vsearch_insert_rightmost(vals,x,idx)); |
| 687 |
25 |
▶ | PDL_XS_RETURN(ST(0) = idx_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = idx_SV) |
25 |
0 |
25 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
25 |
0 |
25 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
25 |
0 |
25 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
0 |
25 |
25 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
0 |
0 |
0 |
|
| 688 |
|
| |
| 689 |
|
| void |
| 690 |
|
| pdl_run_vsearch_match(vals, x, idx=PDL_XS_PERLINIT_initsv(idx_SV)) |
| 691 |
|
| SV *idx_SV = items > 2 ? ST(2) : NULL; |
| 692 |
|
| PREINIT: |
| 693 |
27 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
11 |
16 |
27 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
11 |
11 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
11 |
0 |
11 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
11 |
0 |
11 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
11 |
0 |
11 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
11 |
11 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
11 |
0 |
11 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
11 |
11 |
|
| 694 |
|
| INPUT: |
| 695 |
|
| pdl *vals |
| 696 |
|
| pdl *x |
| 697 |
|
| pdl *idx |
| 698 |
|
| PPCODE: |
| 699 |
27 |
▶ | if (PDL_IS_INPLACE(vals)) PDL->pdl_barf("vsearch_match: vals->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(vals)) PDL->pdl_barf("vsearch_match: vals->inplace but not supported"); |
0 |
27 |
27 |
|
| 700 |
27 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("vsearch_match: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("vsearch_match: x->inplace but not supported"); |
0 |
27 |
27 |
|
| 701 |
27 |
| PDL->barf_if_error(pdl_run_vsearch_match(vals,x,idx)); |
| 702 |
27 |
▶ | PDL_XS_RETURN(ST(0) = idx_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = idx_SV) |
27 |
0 |
27 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
27 |
0 |
27 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
27 |
0 |
27 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
0 |
27 |
27 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
0 |
0 |
0 |
|
| 703 |
|
| |
| 704 |
|
| void |
| 705 |
|
| pdl_run_vsearch_bin_inclusive(vals, x, idx=PDL_XS_PERLINIT_initsv(idx_SV)) |
| 706 |
|
| SV *idx_SV = items > 2 ? ST(2) : NULL; |
| 707 |
|
| PREINIT: |
| 708 |
30 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
14 |
16 |
30 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
14 |
14 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
14 |
0 |
14 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
14 |
0 |
14 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
14 |
0 |
14 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
14 |
14 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
14 |
0 |
14 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
14 |
14 |
|
| 709 |
|
| INPUT: |
| 710 |
|
| pdl *vals |
| 711 |
|
| pdl *x |
| 712 |
|
| pdl *idx |
| 713 |
|
| PPCODE: |
| 714 |
30 |
▶ | if (PDL_IS_INPLACE(vals)) PDL->pdl_barf("vsearch_bin_inclusive: vals->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(vals)) PDL->pdl_barf("vsearch_bin_inclusive: vals->inplace but not supported"); |
0 |
30 |
30 |
|
| 715 |
30 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("vsearch_bin_inclusive: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("vsearch_bin_inclusive: x->inplace but not supported"); |
0 |
30 |
30 |
|
| 716 |
30 |
| PDL->barf_if_error(pdl_run_vsearch_bin_inclusive(vals,x,idx)); |
| 717 |
30 |
▶ | PDL_XS_RETURN(ST(0) = idx_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = idx_SV) |
30 |
0 |
30 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
30 |
0 |
30 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
30 |
0 |
30 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
0 |
30 |
30 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
0 |
0 |
0 |
|
| 718 |
|
| |
| 719 |
|
| void |
| 720 |
|
| pdl_run_vsearch_bin_exclusive(vals, x, idx=PDL_XS_PERLINIT_initsv(idx_SV)) |
| 721 |
|
| SV *idx_SV = items > 2 ? ST(2) : NULL; |
| 722 |
|
| PREINIT: |
| 723 |
28 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
15 |
28 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
13 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
0 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
0 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
0 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
13 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
13 |
0 |
13 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
13 |
13 |
|
| 724 |
|
| INPUT: |
| 725 |
|
| pdl *vals |
| 726 |
|
| pdl *x |
| 727 |
|
| pdl *idx |
| 728 |
|
| PPCODE: |
| 729 |
28 |
▶ | if (PDL_IS_INPLACE(vals)) PDL->pdl_barf("vsearch_bin_exclusive: vals->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(vals)) PDL->pdl_barf("vsearch_bin_exclusive: vals->inplace but not supported"); |
0 |
28 |
28 |
|
| 730 |
28 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("vsearch_bin_exclusive: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("vsearch_bin_exclusive: x->inplace but not supported"); |
0 |
28 |
28 |
|
| 731 |
28 |
| PDL->barf_if_error(pdl_run_vsearch_bin_exclusive(vals,x,idx)); |
| 732 |
28 |
▶ | PDL_XS_RETURN(ST(0) = idx_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = idx_SV) |
28 |
0 |
28 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
28 |
0 |
28 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
28 |
0 |
28 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
0 |
28 |
28 |
| PDL_XS_RETURN(ST(0) = idx_SV) |
0 |
0 |
0 |
|
| 733 |
|
| |
| 734 |
|
| void |
| 735 |
|
| pdl_run_interpolate(xi, x, y, yi=PDL_XS_PERLINIT_initsv(yi_SV), err=PDL_XS_PERLINIT_initsv(err_SV)) |
| 736 |
|
| SV *yi_SV = items > 3 ? ST(3) : NULL; |
| 737 |
|
| SV *err_SV = items > 4 ? ST(4) : NULL; |
| 738 |
|
| PREINIT: |
| 739 |
8 |
▶ | PDL_XS_PREAMBLE((items == 5) ? 0 : 2); |
Branch: 11 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 2); |
3 |
5 |
8 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 2); |
7 |
1 |
8 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 2); |
0 |
7 |
7 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 2); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 2); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 2); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 2); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 2); |
0 |
7 |
7 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 2); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 2); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 5) ? 0 : 2); |
0 |
7 |
7 |
|
| 740 |
|
| INPUT: |
| 741 |
|
| pdl *xi |
| 742 |
|
| pdl *x |
| 743 |
|
| pdl *y |
| 744 |
|
| pdl *yi |
| 745 |
|
| pdl *err |
| 746 |
|
| PPCODE: |
| 747 |
8 |
▶ | if (PDL_IS_INPLACE(xi)) PDL->pdl_barf("interpolate: xi->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(xi)) PDL->pdl_barf("interpolate: xi->inplace but not supported"); |
0 |
8 |
8 |
|
| 748 |
8 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("interpolate: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("interpolate: x->inplace but not supported"); |
0 |
8 |
8 |
|
| 749 |
8 |
▶ | if (PDL_IS_INPLACE(y)) PDL->pdl_barf("interpolate: y->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(y)) PDL->pdl_barf("interpolate: y->inplace but not supported"); |
0 |
8 |
8 |
|
| 750 |
8 |
| PDL->barf_if_error(pdl_run_interpolate(xi,x,y,yi,err)); |
| 751 |
4 |
▶ | PDL_XS_RETURN(ST(0) = yi_SV;ST(1) = err_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = yi_SV;ST(1) = err_SV) |
2 |
2 |
4 |
| PDL_XS_RETURN(ST(0) = yi_SV;ST(1) = err_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = yi_SV;ST(1) = err_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = yi_SV;ST(1) = err_SV) |
0 |
2 |
2 |
| PDL_XS_RETURN(ST(0) = yi_SV;ST(1) = err_SV) |
0 |
2 |
2 |
|
| 752 |
|
| |
| 753 |
|
| void |
| 754 |
|
| _which_int(mask,inds,lastout) |
| 755 |
|
| pdl *mask |
| 756 |
|
| pdl *inds |
| 757 |
|
| pdl *lastout |
| 758 |
|
| CODE: |
| 759 |
674 |
| PDL->barf_if_error(pdl_run_which(mask,inds,lastout)); |
| 760 |
|
| |
| 761 |
|
| void |
| 762 |
|
| _which_both_int(mask,inds,notinds,lastout,lastoutn) |
| 763 |
|
| pdl *mask |
| 764 |
|
| pdl *inds |
| 765 |
|
| pdl *notinds |
| 766 |
|
| pdl *lastout |
| 767 |
|
| pdl *lastoutn |
| 768 |
|
| CODE: |
| 769 |
4 |
| PDL->barf_if_error(pdl_run_which_both(mask,inds,notinds,lastout,lastoutn)); |
| 770 |
|
| |
| 771 |
|
| void |
| 772 |
|
| pdl_run_whichover(a, o=o) |
| 773 |
|
| SV *o_SV = items > 1 ? ST(1) : NULL; |
| 774 |
|
| PREINIT: |
| 775 |
2 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
2 |
2 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
2 |
2 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
2 |
2 |
|
| 776 |
|
| INPUT: |
| 777 |
|
| pdl *a |
| 778 |
|
| pdl *o=NO_INIT |
| 779 |
|
| PPCODE: |
| 780 |
2 |
▶ | PDL_XS_INPLACE(a, o) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, o) |
1 |
1 |
2 |
| PDL_XS_INPLACE(a, o) |
0 |
1 |
1 |
| PDL_XS_INPLACE(a, o) |
0 |
1 |
1 |
| PDL_XS_INPLACE(a, o) |
0 |
1 |
1 |
|
| 781 |
2 |
| PDL->barf_if_error(pdl_run_whichover(a,o)); |
| 782 |
2 |
▶ | PDL_XS_RETURN(ST(0) = o_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = o_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = o_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = o_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = o_SV) |
0 |
2 |
2 |
| PDL_XS_RETURN(ST(0) = o_SV) |
0 |
0 |
0 |
|
| 783 |
|
| |
| 784 |
|
| void |
| 785 |
|
| pdl_run_approx_artol(got, expected, atol=1e-06, rtol=0, result=PDL_XS_PERLINIT_initsv(result_SV)) |
| 786 |
|
| SV *result_SV = items > 4 ? ST(4) : NULL; |
| 787 |
|
| PREINIT: |
| 788 |
1792 |
▶ | PDL_XS_PREAMBLE(1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE(1); |
1792 |
0 |
1792 |
| PDL_XS_PREAMBLE(1); |
1 |
1791 |
1792 |
| PDL_XS_PREAMBLE(1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE(1); |
1792 |
0 |
1792 |
| PDL_XS_PREAMBLE(1); |
1792 |
0 |
1792 |
| PDL_XS_PREAMBLE(1); |
1792 |
0 |
1792 |
| PDL_XS_PREAMBLE(1); |
0 |
1792 |
1792 |
| PDL_XS_PREAMBLE(1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE(1); |
1792 |
0 |
1792 |
| PDL_XS_PREAMBLE(1); |
0 |
1792 |
1792 |
|
| 789 |
|
| INPUT: |
| 790 |
|
| pdl *got |
| 791 |
|
| pdl *expected |
| 792 |
|
| double atol |
| 793 |
|
| double rtol |
| 794 |
|
| pdl *result |
| 795 |
|
| PPCODE: |
| 796 |
1792 |
▶ | if (PDL_IS_INPLACE(got)) PDL->pdl_barf("approx_artol: got->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(got)) PDL->pdl_barf("approx_artol: got->inplace but not supported"); |
0 |
1792 |
1792 |
|
| 797 |
1792 |
▶ | if (PDL_IS_INPLACE(expected)) PDL->pdl_barf("approx_artol: expected->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(expected)) PDL->pdl_barf("approx_artol: expected->inplace but not supported"); |
0 |
1792 |
1792 |
|
| 798 |
1792 |
| PDL->barf_if_error(pdl_run_approx_artol(got,expected,result,atol,rtol)); |
| 799 |
1792 |
▶ | PDL_XS_RETURN(ST(0) = result_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = result_SV) |
1792 |
0 |
1792 |
| PDL_XS_RETURN(ST(0) = result_SV) |
1792 |
0 |
1792 |
| PDL_XS_RETURN(ST(0) = result_SV) |
1792 |
0 |
1792 |
| PDL_XS_RETURN(ST(0) = result_SV) |
0 |
1792 |
1792 |
| PDL_XS_RETURN(ST(0) = result_SV) |
0 |
0 |
0 |
|
| 800 |
|
| |
| 801 |
|
| void |
| 802 |
|
| pdl_run_pchip_chim(x, f, d=PDL_XS_PERLINIT_initsv(d_SV), ierr=PDL_XS_PERLINIT_initsv(ierr_SV)) |
| 803 |
|
| SV *d_SV = items > 2 ? ST(2) : NULL; |
| 804 |
|
| SV *ierr_SV = items > 3 ? ST(3) : NULL; |
| 805 |
|
| PREINIT: |
| 806 |
8 |
▶ | PDL_XS_PREAMBLE((items == 4) ? 0 : 2); |
Branch: 11 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 2); |
0 |
8 |
8 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 2); |
8 |
0 |
8 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 2); |
0 |
8 |
8 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 2); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 2); |
8 |
0 |
8 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 2); |
8 |
0 |
8 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 2); |
8 |
0 |
8 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 2); |
0 |
8 |
8 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 2); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 2); |
8 |
0 |
8 |
| PDL_XS_PREAMBLE((items == 4) ? 0 : 2); |
0 |
8 |
8 |
|
| 807 |
|
| INPUT: |
| 808 |
|
| pdl *x |
| 809 |
|
| pdl *f |
| 810 |
|
| pdl *d |
| 811 |
|
| pdl *ierr |
| 812 |
|
| PPCODE: |
| 813 |
8 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chim: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chim: x->inplace but not supported"); |
0 |
8 |
8 |
|
| 814 |
8 |
▶ | if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chim: f->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chim: f->inplace but not supported"); |
0 |
8 |
8 |
|
| 815 |
8 |
| PDL->barf_if_error(pdl_run_pchip_chim(x,f,d,ierr)); |
| 816 |
8 |
▶ | PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
8 |
0 |
8 |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
8 |
0 |
8 |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
8 |
0 |
8 |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
0 |
8 |
8 |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
0 |
0 |
0 |
|
| 817 |
|
| |
| 818 |
|
| void |
| 819 |
|
| pdl_run_pchip_chic(ic, vc, mflag, x, f, d=PDL_XS_PERLINIT_initsv(d_SV), ierr=PDL_XS_PERLINIT_initsv(ierr_SV)) |
| 820 |
|
| SV *d_SV = items > 5 ? ST(5) : NULL; |
| 821 |
|
| SV *ierr_SV = items > 6 ? ST(6) : NULL; |
| 822 |
|
| PREINIT: |
| 823 |
3 |
▶ | PDL_XS_PREAMBLE((items == 7) ? 0 : 2); |
Branch: 11 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 2); |
1 |
2 |
3 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 2); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 2); |
2 |
1 |
3 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 2); |
0 |
2 |
2 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 2); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 2); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 2); |
0 |
1 |
1 |
|
| 824 |
|
| INPUT: |
| 825 |
|
| pdl *ic |
| 826 |
|
| pdl *vc |
| 827 |
|
| pdl *mflag |
| 828 |
|
| pdl *x |
| 829 |
|
| pdl *f |
| 830 |
|
| pdl *d |
| 831 |
|
| pdl *ierr |
| 832 |
|
| PPCODE: |
| 833 |
3 |
▶ | if (PDL_IS_INPLACE(ic)) PDL->pdl_barf("pchip_chic: ic->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(ic)) PDL->pdl_barf("pchip_chic: ic->inplace but not supported"); |
0 |
3 |
3 |
|
| 834 |
3 |
▶ | if (PDL_IS_INPLACE(vc)) PDL->pdl_barf("pchip_chic: vc->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(vc)) PDL->pdl_barf("pchip_chic: vc->inplace but not supported"); |
0 |
3 |
3 |
|
| 835 |
3 |
▶ | if (PDL_IS_INPLACE(mflag)) PDL->pdl_barf("pchip_chic: mflag->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(mflag)) PDL->pdl_barf("pchip_chic: mflag->inplace but not supported"); |
0 |
3 |
3 |
|
| 836 |
3 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chic: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chic: x->inplace but not supported"); |
0 |
3 |
3 |
|
| 837 |
3 |
▶ | if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chic: f->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chic: f->inplace but not supported"); |
0 |
3 |
3 |
|
| 838 |
3 |
| PDL->barf_if_error(pdl_run_pchip_chic(ic,vc,mflag,x,f,d,ierr)); |
| 839 |
3 |
▶ | PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
2 |
1 |
3 |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
0 |
2 |
2 |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
0 |
1 |
1 |
|
| 840 |
|
| |
| 841 |
|
| void |
| 842 |
|
| pdl_run_pchip_chsp(ic, vc, x, f, d=PDL_XS_PERLINIT_initsv(d_SV), ierr=PDL_XS_PERLINIT_initsv(ierr_SV)) |
| 843 |
|
| SV *d_SV = items > 4 ? ST(4) : NULL; |
| 844 |
|
| SV *ierr_SV = items > 5 ? ST(5) : NULL; |
| 845 |
|
| PREINIT: |
| 846 |
3 |
▶ | PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
Branch: 11 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
1 |
2 |
3 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
2 |
1 |
3 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
0 |
2 |
2 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
0 |
1 |
1 |
|
| 847 |
|
| INPUT: |
| 848 |
|
| pdl *ic |
| 849 |
|
| pdl *vc |
| 850 |
|
| pdl *x |
| 851 |
|
| pdl *f |
| 852 |
|
| pdl *d |
| 853 |
|
| pdl *ierr |
| 854 |
|
| PPCODE: |
| 855 |
3 |
▶ | if (PDL_IS_INPLACE(ic)) PDL->pdl_barf("pchip_chsp: ic->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(ic)) PDL->pdl_barf("pchip_chsp: ic->inplace but not supported"); |
0 |
3 |
3 |
|
| 856 |
3 |
▶ | if (PDL_IS_INPLACE(vc)) PDL->pdl_barf("pchip_chsp: vc->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(vc)) PDL->pdl_barf("pchip_chsp: vc->inplace but not supported"); |
0 |
3 |
3 |
|
| 857 |
3 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chsp: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chsp: x->inplace but not supported"); |
0 |
3 |
3 |
|
| 858 |
3 |
▶ | if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chsp: f->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chsp: f->inplace but not supported"); |
0 |
3 |
3 |
|
| 859 |
3 |
| PDL->barf_if_error(pdl_run_pchip_chsp(ic,vc,x,f,d,ierr)); |
| 860 |
3 |
▶ | PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
2 |
1 |
3 |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
0 |
2 |
2 |
| PDL_XS_RETURN(ST(0) = d_SV;ST(1) = ierr_SV) |
0 |
1 |
1 |
|
| 861 |
|
| |
| 862 |
|
| void |
| 863 |
|
| pdl_run_pchip_chfd(x, f, d, xe, fe=PDL_XS_PERLINIT_initsv(fe_SV), de=PDL_XS_PERLINIT_initsv(de_SV), ierr=PDL_XS_PERLINIT_initsv(ierr_SV), skip=PDL_XS_PERLINIT_initsv(skip_SV)) |
| 864 |
|
| SV *fe_SV = items > 4 ? ST(4) : NULL; |
| 865 |
|
| SV *de_SV = items > 5 ? ST(5) : NULL; |
| 866 |
|
| SV *ierr_SV = items > 6 ? ST(6) : NULL; |
| 867 |
|
| SV *skip_SV = items > 7 ? ST(7) : NULL; |
| 868 |
|
| PREINIT: |
| 869 |
3 |
▶ | PDL_XS_PREAMBLE((items == 8) ? 0 : 4); |
Branch: 11 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 4); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 4); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 4); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 4); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 4); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 4); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 4); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 4); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 4); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 4); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 4); |
0 |
3 |
3 |
|
| 870 |
|
| INPUT: |
| 871 |
|
| pdl *x |
| 872 |
|
| pdl *f |
| 873 |
|
| pdl *d |
| 874 |
|
| pdl *xe |
| 875 |
|
| pdl *fe |
| 876 |
|
| pdl *de |
| 877 |
|
| pdl *ierr |
| 878 |
|
| pdl *skip |
| 879 |
|
| PPCODE: |
| 880 |
3 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chfd: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chfd: x->inplace but not supported"); |
0 |
3 |
3 |
|
| 881 |
3 |
▶ | if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chfd: f->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chfd: f->inplace but not supported"); |
0 |
3 |
3 |
|
| 882 |
3 |
▶ | if (PDL_IS_INPLACE(d)) PDL->pdl_barf("pchip_chfd: d->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(d)) PDL->pdl_barf("pchip_chfd: d->inplace but not supported"); |
0 |
3 |
3 |
|
| 883 |
3 |
▶ | if (PDL_IS_INPLACE(xe)) PDL->pdl_barf("pchip_chfd: xe->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(xe)) PDL->pdl_barf("pchip_chfd: xe->inplace but not supported"); |
0 |
3 |
3 |
|
| 884 |
3 |
| PDL->barf_if_error(pdl_run_pchip_chfd(x,f,d,xe,fe,de,ierr,skip)); |
| 885 |
3 |
▶ | PDL_XS_RETURN(ST(0) = fe_SV;ST(1) = de_SV;ST(2) = ierr_SV;ST(3) = skip_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = fe_SV;ST(1) = de_SV;ST(2) = ierr_SV;ST(3) = skip_SV) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = fe_SV;ST(1) = de_SV;ST(2) = ierr_SV;ST(3) = skip_SV) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = fe_SV;ST(1) = de_SV;ST(2) = ierr_SV;ST(3) = skip_SV) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = fe_SV;ST(1) = de_SV;ST(2) = ierr_SV;ST(3) = skip_SV) |
0 |
3 |
3 |
| PDL_XS_RETURN(ST(0) = fe_SV;ST(1) = de_SV;ST(2) = ierr_SV;ST(3) = skip_SV) |
0 |
0 |
0 |
|
| 886 |
|
| |
| 887 |
|
| void |
| 888 |
|
| pdl_run_pchip_chfe(x, f, d, xe, fe=PDL_XS_PERLINIT_initsv(fe_SV), ierr=PDL_XS_PERLINIT_initsv(ierr_SV), skip=PDL_XS_PERLINIT_initsv(skip_SV)) |
| 889 |
|
| SV *fe_SV = items > 4 ? ST(4) : NULL; |
| 890 |
|
| SV *ierr_SV = items > 5 ? ST(5) : NULL; |
| 891 |
|
| SV *skip_SV = items > 6 ? ST(6) : NULL; |
| 892 |
|
| PREINIT: |
| 893 |
7 |
▶ | PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
Branch: 11 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
0 |
7 |
7 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
0 |
7 |
7 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
0 |
7 |
7 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
7 |
0 |
7 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
0 |
7 |
7 |
|
| 894 |
|
| INPUT: |
| 895 |
|
| pdl *x |
| 896 |
|
| pdl *f |
| 897 |
|
| pdl *d |
| 898 |
|
| pdl *xe |
| 899 |
|
| pdl *fe |
| 900 |
|
| pdl *ierr |
| 901 |
|
| pdl *skip |
| 902 |
|
| PPCODE: |
| 903 |
7 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chfe: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chfe: x->inplace but not supported"); |
0 |
7 |
7 |
|
| 904 |
7 |
▶ | if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chfe: f->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chfe: f->inplace but not supported"); |
0 |
7 |
7 |
|
| 905 |
7 |
▶ | if (PDL_IS_INPLACE(d)) PDL->pdl_barf("pchip_chfe: d->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(d)) PDL->pdl_barf("pchip_chfe: d->inplace but not supported"); |
0 |
7 |
7 |
|
| 906 |
7 |
▶ | if (PDL_IS_INPLACE(xe)) PDL->pdl_barf("pchip_chfe: xe->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(xe)) PDL->pdl_barf("pchip_chfe: xe->inplace but not supported"); |
0 |
7 |
7 |
|
| 907 |
7 |
| PDL->barf_if_error(pdl_run_pchip_chfe(x,f,d,xe,fe,ierr,skip)); |
| 908 |
7 |
▶ | PDL_XS_RETURN(ST(0) = fe_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = fe_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
7 |
0 |
7 |
| PDL_XS_RETURN(ST(0) = fe_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
7 |
0 |
7 |
| PDL_XS_RETURN(ST(0) = fe_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
7 |
0 |
7 |
| PDL_XS_RETURN(ST(0) = fe_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
0 |
7 |
7 |
| PDL_XS_RETURN(ST(0) = fe_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
0 |
0 |
0 |
|
| 909 |
|
| |
| 910 |
|
| void |
| 911 |
|
| pdl_run_pchip_chia(x, f, d, la, lb, ans=PDL_XS_PERLINIT_initsv(ans_SV), ierr=PDL_XS_PERLINIT_initsv(ierr_SV), skip=PDL_XS_PERLINIT_initsv(skip_SV)) |
| 912 |
|
| SV *ans_SV = items > 5 ? ST(5) : NULL; |
| 913 |
|
| SV *ierr_SV = items > 6 ? ST(6) : NULL; |
| 914 |
|
| SV *skip_SV = items > 7 ? ST(7) : NULL; |
| 915 |
|
| PREINIT: |
| 916 |
2 |
▶ | PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
Branch: 11 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
0 |
2 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
0 |
2 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
0 |
2 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
0 |
2 |
2 |
|
| 917 |
|
| INPUT: |
| 918 |
|
| pdl *x |
| 919 |
|
| pdl *f |
| 920 |
|
| pdl *d |
| 921 |
|
| pdl *la |
| 922 |
|
| pdl *lb |
| 923 |
|
| pdl *ans |
| 924 |
|
| pdl *ierr |
| 925 |
|
| pdl *skip |
| 926 |
|
| PPCODE: |
| 927 |
2 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chia: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chia: x->inplace but not supported"); |
0 |
2 |
2 |
|
| 928 |
2 |
▶ | if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chia: f->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chia: f->inplace but not supported"); |
0 |
2 |
2 |
|
| 929 |
2 |
▶ | if (PDL_IS_INPLACE(d)) PDL->pdl_barf("pchip_chia: d->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(d)) PDL->pdl_barf("pchip_chia: d->inplace but not supported"); |
0 |
2 |
2 |
|
| 930 |
2 |
▶ | if (PDL_IS_INPLACE(la)) PDL->pdl_barf("pchip_chia: la->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(la)) PDL->pdl_barf("pchip_chia: la->inplace but not supported"); |
0 |
2 |
2 |
|
| 931 |
2 |
▶ | if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("pchip_chia: lb->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(lb)) PDL->pdl_barf("pchip_chia: lb->inplace but not supported"); |
0 |
2 |
2 |
|
| 932 |
2 |
| PDL->barf_if_error(pdl_run_pchip_chia(x,f,d,la,lb,ans,ierr,skip)); |
| 933 |
2 |
▶ | PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
0 |
2 |
2 |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
0 |
0 |
0 |
|
| 934 |
|
| |
| 935 |
|
| void |
| 936 |
|
| pdl_run_pchip_chid(x, f, d, ia, ib, ans=PDL_XS_PERLINIT_initsv(ans_SV), ierr=PDL_XS_PERLINIT_initsv(ierr_SV), skip=PDL_XS_PERLINIT_initsv(skip_SV)) |
| 937 |
|
| SV *ans_SV = items > 5 ? ST(5) : NULL; |
| 938 |
|
| SV *ierr_SV = items > 6 ? ST(6) : NULL; |
| 939 |
|
| SV *skip_SV = items > 7 ? ST(7) : NULL; |
| 940 |
|
| PREINIT: |
| 941 |
2 |
▶ | PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
Branch: 11 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
0 |
2 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
0 |
2 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
0 |
2 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
2 |
0 |
2 |
| PDL_XS_PREAMBLE((items == 8) ? 0 : 3); |
0 |
2 |
2 |
|
| 942 |
|
| INPUT: |
| 943 |
|
| pdl *x |
| 944 |
|
| pdl *f |
| 945 |
|
| pdl *d |
| 946 |
|
| pdl *ia |
| 947 |
|
| pdl *ib |
| 948 |
|
| pdl *ans |
| 949 |
|
| pdl *ierr |
| 950 |
|
| pdl *skip |
| 951 |
|
| PPCODE: |
| 952 |
2 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chid: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chid: x->inplace but not supported"); |
0 |
2 |
2 |
|
| 953 |
2 |
▶ | if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chid: f->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chid: f->inplace but not supported"); |
0 |
2 |
2 |
|
| 954 |
2 |
▶ | if (PDL_IS_INPLACE(d)) PDL->pdl_barf("pchip_chid: d->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(d)) PDL->pdl_barf("pchip_chid: d->inplace but not supported"); |
0 |
2 |
2 |
|
| 955 |
2 |
▶ | if (PDL_IS_INPLACE(ia)) PDL->pdl_barf("pchip_chid: ia->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(ia)) PDL->pdl_barf("pchip_chid: ia->inplace but not supported"); |
0 |
2 |
2 |
|
| 956 |
2 |
▶ | if (PDL_IS_INPLACE(ib)) PDL->pdl_barf("pchip_chid: ib->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(ib)) PDL->pdl_barf("pchip_chid: ib->inplace but not supported"); |
0 |
2 |
2 |
|
| 957 |
2 |
| PDL->barf_if_error(pdl_run_pchip_chid(x,f,d,ia,ib,ans,ierr,skip)); |
| 958 |
2 |
▶ | PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
0 |
2 |
2 |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = ierr_SV;ST(2) = skip_SV) |
0 |
0 |
0 |
|
| 959 |
|
| |
| 960 |
|
| void |
| 961 |
|
| pdl_run_pchip_chbs(x, f, d, knotyp, t=PDL_XS_PERLINIT_initsv(t_SV), bcoef=PDL_XS_PERLINIT_initsv(bcoef_SV), ierr=PDL_XS_PERLINIT_initsv(ierr_SV)) |
| 962 |
|
| SV *t_SV = items > 4 ? ST(4) : NULL; |
| 963 |
|
| SV *bcoef_SV = items > 5 ? ST(5) : NULL; |
| 964 |
|
| SV *ierr_SV = items > 6 ? ST(6) : NULL; |
| 965 |
|
| PREINIT: |
| 966 |
1 |
▶ | PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
Branch: 11 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 7) ? 0 : 3); |
0 |
1 |
1 |
|
| 967 |
|
| INPUT: |
| 968 |
|
| pdl *x |
| 969 |
|
| pdl *f |
| 970 |
|
| pdl *d |
| 971 |
|
| pdl *knotyp |
| 972 |
|
| pdl *t |
| 973 |
|
| pdl *bcoef |
| 974 |
|
| pdl *ierr |
| 975 |
|
| PPCODE: |
| 976 |
1 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chbs: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_chbs: x->inplace but not supported"); |
0 |
1 |
1 |
|
| 977 |
1 |
▶ | if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chbs: f->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(f)) PDL->pdl_barf("pchip_chbs: f->inplace but not supported"); |
0 |
1 |
1 |
|
| 978 |
1 |
▶ | if (PDL_IS_INPLACE(d)) PDL->pdl_barf("pchip_chbs: d->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(d)) PDL->pdl_barf("pchip_chbs: d->inplace but not supported"); |
0 |
1 |
1 |
|
| 979 |
1 |
▶ | if (PDL_IS_INPLACE(knotyp)) PDL->pdl_barf("pchip_chbs: knotyp->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(knotyp)) PDL->pdl_barf("pchip_chbs: knotyp->inplace but not supported"); |
0 |
1 |
1 |
|
| 980 |
1 |
| PDL->barf_if_error(pdl_run_pchip_chbs(x,f,d,knotyp,t,bcoef,ierr)); |
| 981 |
1 |
▶ | PDL_XS_RETURN(ST(0) = t_SV;ST(1) = bcoef_SV;ST(2) = ierr_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = t_SV;ST(1) = bcoef_SV;ST(2) = ierr_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = t_SV;ST(1) = bcoef_SV;ST(2) = ierr_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = t_SV;ST(1) = bcoef_SV;ST(2) = ierr_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = t_SV;ST(1) = bcoef_SV;ST(2) = ierr_SV) |
0 |
1 |
1 |
| PDL_XS_RETURN(ST(0) = t_SV;ST(1) = bcoef_SV;ST(2) = ierr_SV) |
0 |
0 |
0 |
|
| 982 |
|
| |
| 983 |
|
| void |
| 984 |
|
| pdl_run_pchip_bvalu(t, a, ideriv, x, ans=PDL_XS_PERLINIT_initsv(ans_SV), inbv=PDL_XS_PERLINIT_initsv(inbv_SV)) |
| 985 |
|
| SV *ans_SV = items > 4 ? ST(4) : NULL; |
| 986 |
|
| SV *inbv_SV = items > 5 ? ST(5) : NULL; |
| 987 |
|
| PREINIT: |
| 988 |
1 |
▶ | PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
Branch: 11 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 6) ? 0 : 2); |
0 |
1 |
1 |
|
| 989 |
|
| INPUT: |
| 990 |
|
| pdl *t |
| 991 |
|
| pdl *a |
| 992 |
|
| pdl *ideriv |
| 993 |
|
| pdl *x |
| 994 |
|
| pdl *ans |
| 995 |
|
| pdl *inbv |
| 996 |
|
| PPCODE: |
| 997 |
1 |
▶ | if (PDL_IS_INPLACE(t)) PDL->pdl_barf("pchip_bvalu: t->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(t)) PDL->pdl_barf("pchip_bvalu: t->inplace but not supported"); |
0 |
1 |
1 |
|
| 998 |
1 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("pchip_bvalu: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("pchip_bvalu: a->inplace but not supported"); |
0 |
1 |
1 |
|
| 999 |
1 |
▶ | if (PDL_IS_INPLACE(ideriv)) PDL->pdl_barf("pchip_bvalu: ideriv->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(ideriv)) PDL->pdl_barf("pchip_bvalu: ideriv->inplace but not supported"); |
0 |
1 |
1 |
|
| 1000 |
1 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_bvalu: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("pchip_bvalu: x->inplace but not supported"); |
0 |
1 |
1 |
|
| 1001 |
1 |
| PDL->barf_if_error(pdl_run_pchip_bvalu(t,a,ideriv,x,ans,inbv)); |
| 1002 |
1 |
▶ | PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = inbv_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = inbv_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = inbv_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = inbv_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = inbv_SV) |
0 |
1 |
1 |
| PDL_XS_RETURN(ST(0) = ans_SV;ST(1) = inbv_SV) |
0 |
0 |
0 |
|
| 1003 |
|
| |
| 1004 |
|
| |
| 1005 |
|
| #line 483 "lib/PDL/PP.pm" |
| 1006 |
|
| BOOT: |
| 1007 |
|
| /* Get pointer to structure of core shared C routines */ |
| 1008 |
|
| /* make sure PDL::Core is loaded */ |
| 1009 |
|
| #line 1010 "lib/PDL/Primitive.xs" |
| 1010 |
71 |
| perl_require_pv ("PDL/Core.pm"); /* make sure PDL::Core is loaded */ |
| 1011 |
|
| #ifndef aTHX_ |
| 1012 |
|
| #define aTHX_ |
| 1013 |
|
| #endif |
| 1014 |
71 |
▶ | 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)); |
71 |
0 |
71 |
| if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); |
0 |
71 |
71 |
| if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); |
0 |
0 |
0 |
|
| 1015 |
71 |
| SV* CoreSV = perl_get_sv("PDL::SHARE",FALSE); /* var with core structure */ |
| 1016 |
71 |
▶ | if (!CoreSV) |
Branch: 1 branch
| Branch | True | False | Total |
| if (!CoreSV) |
0 |
71 |
71 |
|
| 1017 |
0 |
| Perl_croak(aTHX_ "We require the PDL::Core module, which was not found"); |
| 1018 |
71 |
▶ | if (!(PDL = INT2PTR(Core*,SvIV( CoreSV )))) /* Core* value */ |
Branch: 1 branch
| Branch | True | False | Total |
| if (!(PDL = INT2PTR(Core*,SvIV( CoreSV )))) /* Core* value */ |
0 |
71 |
71 |
|
| 1019 |
0 |
| Perl_croak(aTHX_ "Got NULL pointer for PDL"); |
| 1020 |
71 |
▶ | if (PDL->Version != PDL_CORE_VERSION) |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL->Version != PDL_CORE_VERSION) |
0 |
71 |
71 |
|
| 1021 |
0 |
| Perl_croak(aTHX_ "[PDL->Version: %ld PDL_CORE_VERSION: %ld XS_VERSION: %s] PDL::Primitive needs to be recompiled against the newly installed PDL", (long int)PDL->Version, (long int)PDL_CORE_VERSION, XS_VERSION); |