| 1 |
|
| |
| 2 |
|
| #line 453 "lib/PDL/PP.pm" |
| 3 |
|
| /* |
| 4 |
|
| * THIS FILE WAS GENERATED BY PDL::PP from complex.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_Complex |
| 21 |
|
| extern Core* PDL; /* Structure hold core C functions */ |
| 22 |
|
| #line 23 "Complex.xs" |
| 23 |
|
| |
| 24 |
|
| #include <math.h> |
| 25 |
|
| |
| 26 |
|
| #ifndef M_PI |
| 27 |
|
| # define M_PI 3.1415926535897932384626433832795029 |
| 28 |
|
| #endif |
| 29 |
|
| #ifndef M_2PI |
| 30 |
|
| # define M_2PI (2. * M_PI) |
| 31 |
|
| #endif |
| 32 |
|
| |
| 33 |
|
| #if __GLIBC__ > 1 && (defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC9X) |
| 34 |
|
| # define CABS(r,i) hypot (r, i) |
| 35 |
|
| #else |
| 36 |
|
| static double |
| 37 |
|
| CABS (double r, double i) |
| 38 |
|
| { |
| 39 |
|
| double t; |
| 40 |
|
| |
| 41 |
|
| if (r < 0) r = - r; |
| 42 |
|
| if (i < 0) i = - i; |
| 43 |
|
| |
| 44 |
|
| if (i > r) |
| 45 |
|
| { |
| 46 |
|
| t = r; r = i; i = t; |
| 47 |
|
| } |
| 48 |
|
| |
| 49 |
|
| if (r + i == r) |
| 50 |
|
| return r; |
| 51 |
|
| |
| 52 |
|
| t = i / r; |
| 53 |
|
| return r * sqrt (1 + t*t); |
| 54 |
|
| } |
| 55 |
|
| #endif |
| 56 |
|
| |
| 57 |
|
| #if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 && defined __USE_GNU |
| 58 |
|
| # define SINCOS(x,s,c) sincos ((x), &(s), &(c)) |
| 59 |
|
| #else |
| 60 |
|
| # define SINCOS(x,s,c) \ |
| 61 |
|
| (s) = sin (x); \ |
| 62 |
|
| (c) = cos (x); |
| 63 |
|
| #endif |
| 64 |
|
| |
| 65 |
|
| |
| 66 |
|
| #define CSQRT(type,ar,ai,cr,ci) \ |
| 67 |
|
| type mag = CABS ((ar), (ai)); \ |
| 68 |
|
| type t; \ |
| 69 |
|
| \ |
| 70 |
|
| if (mag == 0) \ |
| 71 |
|
| (cr) = (ci) = 0; \ |
| 72 |
|
| else if ((ar) > 0) \ |
| 73 |
|
| { \ |
| 74 |
|
| t = sqrt (0.5 * (mag + (ar))); \ |
| 75 |
|
| (cr) = t; \ |
| 76 |
|
| (ci) = 0.5 * (ai) / t; \ |
| 77 |
|
| } \ |
| 78 |
|
| else \ |
| 79 |
|
| { \ |
| 80 |
|
| t = sqrt (0.5 * (mag - (ar))); \ |
| 81 |
|
| \ |
| 82 |
|
| if ((ai) < 0) \ |
| 83 |
|
| t = -t; \ |
| 84 |
|
| \ |
| 85 |
|
| (cr) = 0.5 * (ai) / t; \ |
| 86 |
|
| (ci) = t; \ |
| 87 |
|
| } |
| 88 |
|
| |
| 89 |
|
| |
| 90 |
|
| #define CLOG(ar,ai,cr,ci) \ |
| 91 |
|
| (cr) = log (CABS ((ar), (ai))); \ |
| 92 |
|
| (ci) = atan2 ((ai), (ar)); |
| 93 |
|
| |
| 94 |
|
| pdl_error pdl_run_r2C(pdl *r,pdl *c); |
| 95 |
|
| pdl_error pdl_run_i2C(pdl *r,pdl *c); |
| 96 |
|
| pdl_error pdl_run_Cr2p(pdl *r,pdl *p); |
| 97 |
|
| pdl_error pdl_run_Cp2r(pdl *r,pdl *p); |
| 98 |
|
| pdl_error pdl_run_Cadd(pdl *a,pdl *b,pdl *c); |
| 99 |
|
| pdl_error pdl_run_Csub(pdl *a,pdl *b,pdl *c); |
| 100 |
|
| pdl_error pdl_run_Cmul(pdl *a,pdl *b,pdl *c); |
| 101 |
|
| pdl_error pdl_run_Cprodover(pdl *a,pdl *c); |
| 102 |
|
| pdl_error pdl_run_Cscale(pdl *a,pdl *b,pdl *c); |
| 103 |
|
| pdl_error pdl_run_Cdiv(pdl *a,pdl *b,pdl *c); |
| 104 |
|
| pdl_error pdl_run_Ceq(pdl *a,pdl *b,pdl *c); |
| 105 |
|
| pdl_error pdl_run_Cconj(pdl *a,pdl *c); |
| 106 |
|
| pdl_error pdl_run_Cabs(pdl *a,pdl *c); |
| 107 |
|
| pdl_error pdl_run_Cabs2(pdl *a,pdl *c); |
| 108 |
|
| pdl_error pdl_run_Carg(pdl *a,pdl *c); |
| 109 |
|
| pdl_error pdl_run_Csin(pdl *a,pdl *c); |
| 110 |
|
| pdl_error pdl_run_Ccos(pdl *a,pdl *c); |
| 111 |
|
| pdl_error pdl_run_Cexp(pdl *a,pdl *c); |
| 112 |
|
| pdl_error pdl_run_Clog(pdl *a,pdl *c); |
| 113 |
|
| pdl_error pdl_run_Cpow(pdl *a,pdl *b,pdl *c); |
| 114 |
|
| pdl_error pdl_run_Csqrt(pdl *a,pdl *c); |
| 115 |
|
| pdl_error pdl_run_Casin(pdl *a,pdl *c); |
| 116 |
|
| pdl_error pdl_run_Cacos(pdl *a,pdl *c); |
| 117 |
|
| pdl_error pdl_run_Csinh(pdl *a,pdl *c); |
| 118 |
|
| pdl_error pdl_run_Ccosh(pdl *a,pdl *c); |
| 119 |
|
| pdl_error pdl_run_Ctanh(pdl *a,pdl *c); |
| 120 |
|
| pdl_error pdl_run_Casinh(pdl *a,pdl *c); |
| 121 |
|
| pdl_error pdl_run_Cacosh(pdl *a,pdl *c); |
| 122 |
|
| pdl_error pdl_run_Catanh(pdl *a,pdl *c); |
| 123 |
|
| pdl_error pdl_run_Cproj(pdl *a,pdl *c); |
| 124 |
|
| pdl_error pdl_run_Croots(pdl *a,pdl *c,int n); |
| 125 |
|
| pdl_error pdl_run_rCpolynomial(pdl *coeffs,pdl *x,pdl *out); |
| 126 |
|
| pdl_error pdl_run_Ctricpy(pdl *A,pdl *C,int uplo); |
| 127 |
|
| pdl_error pdl_run_Cmstack(pdl *x,pdl *y,pdl *out); |
| 128 |
|
| pdl_error pdl_run_Caugment(pdl *x,pdl *y,pdl *out); |
| 129 |
|
| |
| 130 |
|
| #line 449 "lib/PDL/PP.pm" |
| 131 |
|
| #include "pdlperl.h" |
| 132 |
|
| #line 133 "Complex.xs" |
| 133 |
|
| |
| 134 |
|
| Core* PDL = NULL; /* Structure hold core C functions */ |
| 135 |
|
| |
| 136 |
|
| MODULE = PDL::Complex PACKAGE = PDL::Complex PREFIX=pdl_run_ |
| 137 |
|
| |
| 138 |
|
| PROTOTYPES: DISABLE |
| 139 |
|
| |
| 140 |
|
| |
| 141 |
|
| void |
| 142 |
|
| _r2C_int(r,c) |
| 143 |
|
| pdl *r |
| 144 |
|
| pdl *c |
| 145 |
|
| CODE: |
| 146 |
133 |
| PDL->barf_if_error(pdl_run_r2C(r,c)); |
| 147 |
|
| |
| 148 |
|
| void |
| 149 |
|
| _i2C_int(r,c) |
| 150 |
|
| pdl *r |
| 151 |
|
| pdl *c |
| 152 |
|
| CODE: |
| 153 |
3 |
| PDL->barf_if_error(pdl_run_i2C(r,c)); |
| 154 |
|
| |
| 155 |
|
| void |
| 156 |
|
| pdl_run_Cr2p(r, p=p) |
| 157 |
|
| SV *p_SV = items > 1 ? ST(1) : NULL; |
| 158 |
|
| PREINIT: |
| 159 |
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 |
|
| 160 |
|
| INPUT: |
| 161 |
|
| pdl *r |
| 162 |
|
| pdl *p=NO_INIT |
| 163 |
|
| PPCODE: |
| 164 |
2 |
▶ | PDL_XS_INPLACE(r, p) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(r, p) |
0 |
2 |
2 |
| PDL_XS_INPLACE(r, p) |
0 |
0 |
0 |
| PDL_XS_INPLACE(r, p) |
0 |
2 |
2 |
| PDL_XS_INPLACE(r, p) |
0 |
2 |
2 |
|
| 165 |
2 |
| PDL->barf_if_error(pdl_run_Cr2p(r,p)); |
| 166 |
2 |
▶ | PDL_XS_RETURN(ST(0) = p_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = p_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = p_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = p_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = p_SV) |
0 |
2 |
2 |
| PDL_XS_RETURN(ST(0) = p_SV) |
0 |
0 |
0 |
|
| 167 |
|
| |
| 168 |
|
| void |
| 169 |
|
| pdl_run_Cp2r(r, p=p) |
| 170 |
|
| SV *p_SV = items > 1 ? ST(1) : NULL; |
| 171 |
|
| PREINIT: |
| 172 |
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 |
|
| 173 |
|
| INPUT: |
| 174 |
|
| pdl *r |
| 175 |
|
| pdl *p=NO_INIT |
| 176 |
|
| PPCODE: |
| 177 |
2 |
▶ | PDL_XS_INPLACE(r, p) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(r, p) |
0 |
2 |
2 |
| PDL_XS_INPLACE(r, p) |
0 |
0 |
0 |
| PDL_XS_INPLACE(r, p) |
0 |
2 |
2 |
| PDL_XS_INPLACE(r, p) |
0 |
2 |
2 |
|
| 178 |
2 |
| PDL->barf_if_error(pdl_run_Cp2r(r,p)); |
| 179 |
2 |
▶ | PDL_XS_RETURN(ST(0) = p_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = p_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = p_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = p_SV) |
2 |
0 |
2 |
| PDL_XS_RETURN(ST(0) = p_SV) |
0 |
2 |
2 |
| PDL_XS_RETURN(ST(0) = p_SV) |
0 |
0 |
0 |
|
| 180 |
|
| |
| 181 |
|
| void |
| 182 |
|
| pdl_run_Cadd(a, b, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 183 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 184 |
|
| PREINIT: |
| 185 |
81 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
81 |
0 |
81 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
81 |
81 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
81 |
0 |
81 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
81 |
0 |
81 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
81 |
0 |
81 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
81 |
81 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
81 |
0 |
81 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
81 |
81 |
|
| 186 |
|
| INPUT: |
| 187 |
|
| pdl *a |
| 188 |
|
| pdl *b |
| 189 |
|
| pdl *c |
| 190 |
|
| PPCODE: |
| 191 |
81 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("Cadd: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("Cadd: a->inplace but not supported"); |
0 |
81 |
81 |
|
| 192 |
81 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("Cadd: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("Cadd: b->inplace but not supported"); |
0 |
81 |
81 |
|
| 193 |
81 |
| PDL->barf_if_error(pdl_run_Cadd(a,b,c)); |
| 194 |
81 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
81 |
0 |
81 |
| PDL_XS_RETURN(ST(0) = c_SV) |
81 |
0 |
81 |
| PDL_XS_RETURN(ST(0) = c_SV) |
81 |
0 |
81 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
81 |
81 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 195 |
|
| |
| 196 |
|
| void |
| 197 |
|
| pdl_run_Csub(a, b, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 198 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 199 |
|
| PREINIT: |
| 200 |
15 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| 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); |
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 |
|
| 201 |
|
| INPUT: |
| 202 |
|
| pdl *a |
| 203 |
|
| pdl *b |
| 204 |
|
| pdl *c |
| 205 |
|
| PPCODE: |
| 206 |
15 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("Csub: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("Csub: a->inplace but not supported"); |
0 |
15 |
15 |
|
| 207 |
15 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("Csub: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("Csub: b->inplace but not supported"); |
0 |
15 |
15 |
|
| 208 |
15 |
| PDL->barf_if_error(pdl_run_Csub(a,b,c)); |
| 209 |
15 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
15 |
0 |
15 |
| PDL_XS_RETURN(ST(0) = c_SV) |
15 |
0 |
15 |
| PDL_XS_RETURN(ST(0) = c_SV) |
15 |
0 |
15 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
15 |
15 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 210 |
|
| |
| 211 |
|
| void |
| 212 |
|
| pdl_run_Cmul(a, b, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 213 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 214 |
|
| PREINIT: |
| 215 |
38 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
38 |
0 |
38 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
38 |
38 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
38 |
0 |
38 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
38 |
0 |
38 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
38 |
0 |
38 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
38 |
38 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
38 |
0 |
38 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
38 |
38 |
|
| 216 |
|
| INPUT: |
| 217 |
|
| pdl *a |
| 218 |
|
| pdl *b |
| 219 |
|
| pdl *c |
| 220 |
|
| PPCODE: |
| 221 |
38 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("Cmul: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("Cmul: a->inplace but not supported"); |
0 |
38 |
38 |
|
| 222 |
38 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("Cmul: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("Cmul: b->inplace but not supported"); |
0 |
38 |
38 |
|
| 223 |
38 |
| PDL->barf_if_error(pdl_run_Cmul(a,b,c)); |
| 224 |
38 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
38 |
0 |
38 |
| PDL_XS_RETURN(ST(0) = c_SV) |
38 |
0 |
38 |
| PDL_XS_RETURN(ST(0) = c_SV) |
38 |
0 |
38 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
38 |
38 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 225 |
|
| |
| 226 |
|
| void |
| 227 |
|
| pdl_run_Cprodover(a, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 228 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 229 |
|
| PREINIT: |
| 230 |
11 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
11 |
0 |
11 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
11 |
11 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
11 |
0 |
11 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
11 |
0 |
11 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
11 |
0 |
11 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
11 |
11 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
11 |
0 |
11 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
11 |
11 |
|
| 231 |
|
| INPUT: |
| 232 |
|
| pdl *a |
| 233 |
|
| pdl *c |
| 234 |
|
| PPCODE: |
| 235 |
11 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("Cprodover: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("Cprodover: a->inplace but not supported"); |
0 |
11 |
11 |
|
| 236 |
11 |
| PDL->barf_if_error(pdl_run_Cprodover(a,c)); |
| 237 |
11 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
11 |
0 |
11 |
| PDL_XS_RETURN(ST(0) = c_SV) |
11 |
0 |
11 |
| PDL_XS_RETURN(ST(0) = c_SV) |
11 |
0 |
11 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
11 |
11 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 238 |
|
| |
| 239 |
|
| void |
| 240 |
|
| pdl_run_Cscale(a, b, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 241 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 242 |
|
| PREINIT: |
| 243 |
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); |
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); |
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 |
|
| 244 |
|
| INPUT: |
| 245 |
|
| pdl *a |
| 246 |
|
| pdl *b |
| 247 |
|
| pdl *c |
| 248 |
|
| PPCODE: |
| 249 |
4 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("Cscale: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("Cscale: a->inplace but not supported"); |
0 |
4 |
4 |
|
| 250 |
4 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("Cscale: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("Cscale: b->inplace but not supported"); |
0 |
4 |
4 |
|
| 251 |
4 |
| PDL->barf_if_error(pdl_run_Cscale(a,b,c)); |
| 252 |
4 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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) |
4 |
0 |
4 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
4 |
4 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 253 |
|
| |
| 254 |
|
| void |
| 255 |
|
| pdl_run_Cdiv(a, b, c=PDL_XS_PERLINIT_initsv(c_SV)) |
| 256 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 257 |
|
| PREINIT: |
| 258 |
13 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| 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); |
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 |
|
| 259 |
|
| INPUT: |
| 260 |
|
| pdl *a |
| 261 |
|
| pdl *b |
| 262 |
|
| pdl *c |
| 263 |
|
| PPCODE: |
| 264 |
13 |
▶ | if (PDL_IS_INPLACE(a)) PDL->pdl_barf("Cdiv: a->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(a)) PDL->pdl_barf("Cdiv: a->inplace but not supported"); |
0 |
13 |
13 |
|
| 265 |
13 |
▶ | if (PDL_IS_INPLACE(b)) PDL->pdl_barf("Cdiv: b->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(b)) PDL->pdl_barf("Cdiv: b->inplace but not supported"); |
0 |
13 |
13 |
|
| 266 |
13 |
| PDL->barf_if_error(pdl_run_Cdiv(a,b,c)); |
| 267 |
13 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
13 |
0 |
13 |
| PDL_XS_RETURN(ST(0) = c_SV) |
13 |
0 |
13 |
| PDL_XS_RETURN(ST(0) = c_SV) |
13 |
0 |
13 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
13 |
13 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 268 |
|
| |
| 269 |
|
| void |
| 270 |
|
| _Ceq_int(a,b,c) |
| 271 |
|
| pdl *a |
| 272 |
|
| pdl *b |
| 273 |
|
| pdl *c |
| 274 |
|
| CODE: |
| 275 |
8 |
| PDL->barf_if_error(pdl_run_Ceq(a,b,c)); |
| 276 |
|
| |
| 277 |
|
| void |
| 278 |
|
| pdl_run_Cconj(a, c=c) |
| 279 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 280 |
|
| PREINIT: |
| 281 |
3 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
|
| 282 |
|
| INPUT: |
| 283 |
|
| pdl *a |
| 284 |
|
| pdl *c=NO_INIT |
| 285 |
|
| PPCODE: |
| 286 |
3 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
|
| 287 |
3 |
| PDL->barf_if_error(pdl_run_Cconj(a,c)); |
| 288 |
3 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
3 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 289 |
|
| |
| 290 |
|
| void |
| 291 |
|
| _Cabs_int(a,c) |
| 292 |
|
| pdl *a |
| 293 |
|
| pdl *c |
| 294 |
|
| CODE: |
| 295 |
6 |
| PDL->barf_if_error(pdl_run_Cabs(a,c)); |
| 296 |
|
| |
| 297 |
|
| void |
| 298 |
|
| _Cabs2_int(a,c) |
| 299 |
|
| pdl *a |
| 300 |
|
| pdl *c |
| 301 |
|
| CODE: |
| 302 |
2 |
| PDL->barf_if_error(pdl_run_Cabs2(a,c)); |
| 303 |
|
| |
| 304 |
|
| void |
| 305 |
|
| _Carg_int(a,c) |
| 306 |
|
| pdl *a |
| 307 |
|
| pdl *c |
| 308 |
|
| CODE: |
| 309 |
2 |
| PDL->barf_if_error(pdl_run_Carg(a,c)); |
| 310 |
|
| |
| 311 |
|
| void |
| 312 |
|
| pdl_run_Csin(a, c=c) |
| 313 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 314 |
|
| PREINIT: |
| 315 |
10 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
10 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
10 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
10 |
10 |
|
| 316 |
|
| INPUT: |
| 317 |
|
| pdl *a |
| 318 |
|
| pdl *c=NO_INIT |
| 319 |
|
| PPCODE: |
| 320 |
10 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
10 |
10 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
10 |
10 |
| PDL_XS_INPLACE(a, c) |
0 |
10 |
10 |
|
| 321 |
10 |
| PDL->barf_if_error(pdl_run_Csin(a,c)); |
| 322 |
10 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
10 |
0 |
10 |
| PDL_XS_RETURN(ST(0) = c_SV) |
10 |
0 |
10 |
| PDL_XS_RETURN(ST(0) = c_SV) |
10 |
0 |
10 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
10 |
10 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 323 |
|
| |
| 324 |
|
| void |
| 325 |
|
| pdl_run_Ccos(a, c=c) |
| 326 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 327 |
|
| PREINIT: |
| 328 |
10 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
10 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
10 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
10 |
10 |
|
| 329 |
|
| INPUT: |
| 330 |
|
| pdl *a |
| 331 |
|
| pdl *c=NO_INIT |
| 332 |
|
| PPCODE: |
| 333 |
10 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
10 |
10 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
10 |
10 |
| PDL_XS_INPLACE(a, c) |
0 |
10 |
10 |
|
| 334 |
10 |
| PDL->barf_if_error(pdl_run_Ccos(a,c)); |
| 335 |
10 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
10 |
0 |
10 |
| PDL_XS_RETURN(ST(0) = c_SV) |
10 |
0 |
10 |
| PDL_XS_RETURN(ST(0) = c_SV) |
10 |
0 |
10 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
10 |
10 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 336 |
|
| |
| 337 |
|
| void |
| 338 |
|
| pdl_run_Cexp(a, c=c) |
| 339 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 340 |
|
| PREINIT: |
| 341 |
3 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
|
| 342 |
|
| INPUT: |
| 343 |
|
| pdl *a |
| 344 |
|
| pdl *c=NO_INIT |
| 345 |
|
| PPCODE: |
| 346 |
3 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
|
| 347 |
3 |
| PDL->barf_if_error(pdl_run_Cexp(a,c)); |
| 348 |
3 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
3 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 349 |
|
| |
| 350 |
|
| void |
| 351 |
|
| pdl_run_Clog(a, c=c) |
| 352 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 353 |
|
| PREINIT: |
| 354 |
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 |
|
| 355 |
|
| INPUT: |
| 356 |
|
| pdl *a |
| 357 |
|
| pdl *c=NO_INIT |
| 358 |
|
| PPCODE: |
| 359 |
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 |
|
| 360 |
5 |
| PDL->barf_if_error(pdl_run_Clog(a,c)); |
| 361 |
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 |
|
| 362 |
|
| |
| 363 |
|
| void |
| 364 |
|
| pdl_run_Cpow(a, b, c=c) |
| 365 |
|
| SV *c_SV = items > 2 ? ST(2) : NULL; |
| 366 |
|
| PREINIT: |
| 367 |
10 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
10 |
10 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
10 |
10 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
10 |
0 |
10 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
10 |
10 |
|
| 368 |
|
| INPUT: |
| 369 |
|
| pdl *a |
| 370 |
|
| pdl *b |
| 371 |
|
| pdl *c=NO_INIT |
| 372 |
|
| PPCODE: |
| 373 |
10 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
10 |
10 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
10 |
10 |
| PDL_XS_INPLACE(a, c) |
0 |
10 |
10 |
|
| 374 |
10 |
| PDL->barf_if_error(pdl_run_Cpow(a,b,c)); |
| 375 |
10 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = c_SV) |
10 |
0 |
10 |
| PDL_XS_RETURN(ST(0) = c_SV) |
10 |
0 |
10 |
| PDL_XS_RETURN(ST(0) = c_SV) |
10 |
0 |
10 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
10 |
10 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 376 |
|
| |
| 377 |
|
| void |
| 378 |
|
| pdl_run_Csqrt(a, c=c) |
| 379 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 380 |
|
| PREINIT: |
| 381 |
3 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
|
| 382 |
|
| INPUT: |
| 383 |
|
| pdl *a |
| 384 |
|
| pdl *c=NO_INIT |
| 385 |
|
| PPCODE: |
| 386 |
3 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
|
| 387 |
3 |
| PDL->barf_if_error(pdl_run_Csqrt(a,c)); |
| 388 |
3 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
3 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 389 |
|
| |
| 390 |
|
| void |
| 391 |
|
| pdl_run_Casin(a, c=c) |
| 392 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 393 |
|
| PREINIT: |
| 394 |
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 |
|
| 395 |
|
| INPUT: |
| 396 |
|
| pdl *a |
| 397 |
|
| pdl *c=NO_INIT |
| 398 |
|
| PPCODE: |
| 399 |
2 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
|
| 400 |
2 |
| PDL->barf_if_error(pdl_run_Casin(a,c)); |
| 401 |
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 |
|
| 402 |
|
| |
| 403 |
|
| void |
| 404 |
|
| pdl_run_Cacos(a, c=c) |
| 405 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 406 |
|
| PREINIT: |
| 407 |
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 |
|
| 408 |
|
| INPUT: |
| 409 |
|
| pdl *a |
| 410 |
|
| pdl *c=NO_INIT |
| 411 |
|
| PPCODE: |
| 412 |
2 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
|
| 413 |
2 |
| PDL->barf_if_error(pdl_run_Cacos(a,c)); |
| 414 |
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 |
|
| 415 |
|
| |
| 416 |
|
| void |
| 417 |
|
| pdl_run_Csinh(a, c=c) |
| 418 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 419 |
|
| PREINIT: |
| 420 |
3 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
|
| 421 |
|
| INPUT: |
| 422 |
|
| pdl *a |
| 423 |
|
| pdl *c=NO_INIT |
| 424 |
|
| PPCODE: |
| 425 |
3 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
|
| 426 |
3 |
| PDL->barf_if_error(pdl_run_Csinh(a,c)); |
| 427 |
3 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
3 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 428 |
|
| |
| 429 |
|
| void |
| 430 |
|
| pdl_run_Ccosh(a, c=c) |
| 431 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 432 |
|
| PREINIT: |
| 433 |
3 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
|
| 434 |
|
| INPUT: |
| 435 |
|
| pdl *a |
| 436 |
|
| pdl *c=NO_INIT |
| 437 |
|
| PPCODE: |
| 438 |
3 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
|
| 439 |
3 |
| PDL->barf_if_error(pdl_run_Ccosh(a,c)); |
| 440 |
3 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
3 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 441 |
|
| |
| 442 |
|
| void |
| 443 |
|
| pdl_run_Ctanh(a, c=c) |
| 444 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 445 |
|
| PREINIT: |
| 446 |
3 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
3 |
3 |
|
| 447 |
|
| INPUT: |
| 448 |
|
| pdl *a |
| 449 |
|
| pdl *c=NO_INIT |
| 450 |
|
| PPCODE: |
| 451 |
3 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
| PDL_XS_INPLACE(a, c) |
0 |
3 |
3 |
|
| 452 |
3 |
| PDL->barf_if_error(pdl_run_Ctanh(a,c)); |
| 453 |
3 |
▶ | PDL_XS_RETURN(ST(0) = c_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
3 |
3 |
| PDL_XS_RETURN(ST(0) = c_SV) |
0 |
0 |
0 |
|
| 454 |
|
| |
| 455 |
|
| void |
| 456 |
|
| pdl_run_Casinh(a, c=c) |
| 457 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 458 |
|
| PREINIT: |
| 459 |
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 |
|
| 460 |
|
| INPUT: |
| 461 |
|
| pdl *a |
| 462 |
|
| pdl *c=NO_INIT |
| 463 |
|
| PPCODE: |
| 464 |
2 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
|
| 465 |
2 |
| PDL->barf_if_error(pdl_run_Casinh(a,c)); |
| 466 |
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 |
|
| 467 |
|
| |
| 468 |
|
| void |
| 469 |
|
| pdl_run_Cacosh(a, c=c) |
| 470 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 471 |
|
| PREINIT: |
| 472 |
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 |
|
| 473 |
|
| INPUT: |
| 474 |
|
| pdl *a |
| 475 |
|
| pdl *c=NO_INIT |
| 476 |
|
| PPCODE: |
| 477 |
2 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
|
| 478 |
2 |
| PDL->barf_if_error(pdl_run_Cacosh(a,c)); |
| 479 |
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 |
|
| 480 |
|
| |
| 481 |
|
| void |
| 482 |
|
| pdl_run_Catanh(a, c=c) |
| 483 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 484 |
|
| PREINIT: |
| 485 |
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 |
|
| 486 |
|
| INPUT: |
| 487 |
|
| pdl *a |
| 488 |
|
| pdl *c=NO_INIT |
| 489 |
|
| PPCODE: |
| 490 |
2 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
| PDL_XS_INPLACE(a, c) |
0 |
2 |
2 |
|
| 491 |
2 |
| PDL->barf_if_error(pdl_run_Catanh(a,c)); |
| 492 |
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 |
|
| 493 |
|
| |
| 494 |
|
| void |
| 495 |
|
| pdl_run_Cproj(a, c=c) |
| 496 |
|
| SV *c_SV = items > 1 ? ST(1) : NULL; |
| 497 |
|
| PREINIT: |
| 498 |
0 |
▶ | PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 2) ? 0 : 1); |
0 |
0 |
0 |
|
| 499 |
|
| INPUT: |
| 500 |
|
| pdl *a |
| 501 |
|
| pdl *c=NO_INIT |
| 502 |
|
| PPCODE: |
| 503 |
0 |
▶ | PDL_XS_INPLACE(a, c) |
Branch: 4 branches
| Branch | True | False | Total |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
| PDL_XS_INPLACE(a, c) |
0 |
0 |
0 |
|
| 504 |
0 |
| PDL->barf_if_error(pdl_run_Cproj(a,c)); |
| 505 |
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 |
|
| 506 |
|
| |
| 507 |
|
| void |
| 508 |
|
| _Croots_int(a,c,n) |
| 509 |
|
| pdl *a |
| 510 |
|
| pdl *c |
| 511 |
|
| int n |
| 512 |
|
| CODE: |
| 513 |
1 |
| PDL->barf_if_error(pdl_run_Croots(a,c,n)); |
| 514 |
|
| |
| 515 |
|
| void |
| 516 |
|
| _rCpolynomial_int(coeffs,x,out) |
| 517 |
|
| pdl *coeffs |
| 518 |
|
| pdl *x |
| 519 |
|
| pdl *out |
| 520 |
|
| CODE: |
| 521 |
2 |
| PDL->barf_if_error(pdl_run_rCpolynomial(coeffs,x,out)); |
| 522 |
|
| |
| 523 |
|
| void |
| 524 |
|
| pdl_run_Ctricpy(A, uplo=0, C=PDL_XS_PERLINIT_initsv(C_SV)) |
| 525 |
|
| SV *C_SV = items > 2 ? ST(2) : NULL; |
| 526 |
|
| PREINIT: |
| 527 |
3 |
▶ | PDL_XS_PREAMBLE(1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE(1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE(1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE(1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE(1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE(1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE(1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE(1); |
0 |
3 |
3 |
| PDL_XS_PREAMBLE(1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE(1); |
3 |
0 |
3 |
| PDL_XS_PREAMBLE(1); |
0 |
3 |
3 |
|
| 528 |
|
| INPUT: |
| 529 |
|
| pdl *A |
| 530 |
|
| int uplo |
| 531 |
|
| pdl *C |
| 532 |
|
| PPCODE: |
| 533 |
3 |
▶ | if (PDL_IS_INPLACE(A)) PDL->pdl_barf("Ctricpy: A->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(A)) PDL->pdl_barf("Ctricpy: A->inplace but not supported"); |
0 |
3 |
3 |
|
| 534 |
3 |
| PDL->barf_if_error(pdl_run_Ctricpy(A,C,uplo)); |
| 535 |
3 |
▶ | PDL_XS_RETURN(ST(0) = C_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| 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) |
3 |
0 |
3 |
| PDL_XS_RETURN(ST(0) = C_SV) |
0 |
3 |
3 |
| PDL_XS_RETURN(ST(0) = C_SV) |
0 |
0 |
0 |
|
| 536 |
|
| |
| 537 |
|
| void |
| 538 |
|
| pdl_run_Cmstack(x, y, out=PDL_XS_PERLINIT_initsv(out_SV)) |
| 539 |
|
| SV *out_SV = items > 2 ? ST(2) : NULL; |
| 540 |
|
| PREINIT: |
| 541 |
1 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
1 |
1 |
|
| 542 |
|
| INPUT: |
| 543 |
|
| pdl *x |
| 544 |
|
| pdl *y |
| 545 |
|
| pdl *out |
| 546 |
|
| PPCODE: |
| 547 |
1 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("Cmstack: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("Cmstack: x->inplace but not supported"); |
0 |
1 |
1 |
|
| 548 |
1 |
▶ | if (PDL_IS_INPLACE(y)) PDL->pdl_barf("Cmstack: y->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(y)) PDL->pdl_barf("Cmstack: y->inplace but not supported"); |
0 |
1 |
1 |
|
| 549 |
1 |
| PDL->barf_if_error(pdl_run_Cmstack(x,y,out)); |
| 550 |
1 |
▶ | PDL_XS_RETURN(ST(0) = out_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = out_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = out_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = out_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = out_SV) |
0 |
1 |
1 |
| PDL_XS_RETURN(ST(0) = out_SV) |
0 |
0 |
0 |
|
| 551 |
|
| |
| 552 |
|
| void |
| 553 |
|
| pdl_run_Caugment(x, y, out=PDL_XS_PERLINIT_initsv(out_SV)) |
| 554 |
|
| SV *out_SV = items > 2 ? ST(2) : NULL; |
| 555 |
|
| PREINIT: |
| 556 |
1 |
▶ | PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
Branch: 10 branches
| Branch | True | False | Total |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
1 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
0 |
0 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
1 |
0 |
1 |
| PDL_XS_PREAMBLE((items == 3) ? 0 : 1); |
0 |
1 |
1 |
|
| 557 |
|
| INPUT: |
| 558 |
|
| pdl *x |
| 559 |
|
| pdl *y |
| 560 |
|
| pdl *out |
| 561 |
|
| PPCODE: |
| 562 |
1 |
▶ | if (PDL_IS_INPLACE(x)) PDL->pdl_barf("Caugment: x->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(x)) PDL->pdl_barf("Caugment: x->inplace but not supported"); |
0 |
1 |
1 |
|
| 563 |
1 |
▶ | if (PDL_IS_INPLACE(y)) PDL->pdl_barf("Caugment: y->inplace but not supported"); |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL_IS_INPLACE(y)) PDL->pdl_barf("Caugment: y->inplace but not supported"); |
0 |
1 |
1 |
|
| 564 |
1 |
| PDL->barf_if_error(pdl_run_Caugment(x,y,out)); |
| 565 |
1 |
▶ | PDL_XS_RETURN(ST(0) = out_SV) |
Branch: 5 branches
| Branch | True | False | Total |
| PDL_XS_RETURN(ST(0) = out_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = out_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = out_SV) |
1 |
0 |
1 |
| PDL_XS_RETURN(ST(0) = out_SV) |
0 |
1 |
1 |
| PDL_XS_RETURN(ST(0) = out_SV) |
0 |
0 |
0 |
|
| 566 |
|
| |
| 567 |
|
| |
| 568 |
|
| #line 483 "lib/PDL/PP.pm" |
| 569 |
|
| BOOT: |
| 570 |
|
| /* Get pointer to structure of core shared C routines */ |
| 571 |
|
| /* make sure PDL::Core is loaded */ |
| 572 |
|
| #line 573 "Complex.xs" |
| 573 |
1 |
| perl_require_pv ("PDL/Core.pm"); /* make sure PDL::Core is loaded */ |
| 574 |
|
| #ifndef aTHX_ |
| 575 |
|
| #define aTHX_ |
| 576 |
|
| #endif |
| 577 |
1 |
▶ | 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)); |
1 |
0 |
1 |
| if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); |
0 |
1 |
1 |
| if (SvTRUE (ERRSV)) Perl_croak(aTHX_ "%s",SvPV_nolen (ERRSV)); |
0 |
0 |
0 |
|
| 578 |
1 |
| SV* CoreSV = perl_get_sv("PDL::SHARE",FALSE); /* var with core structure */ |
| 579 |
1 |
▶ | if (!CoreSV) |
Branch: 1 branch
| Branch | True | False | Total |
| if (!CoreSV) |
0 |
1 |
1 |
|
| 580 |
0 |
| Perl_croak(aTHX_ "We require the PDL::Core module, which was not found"); |
| 581 |
1 |
▶ | if (!(PDL = INT2PTR(Core*,SvIV( CoreSV )))) /* Core* value */ |
Branch: 1 branch
| Branch | True | False | Total |
| if (!(PDL = INT2PTR(Core*,SvIV( CoreSV )))) /* Core* value */ |
0 |
1 |
1 |
|
| 582 |
0 |
| Perl_croak(aTHX_ "Got NULL pointer for PDL"); |
| 583 |
1 |
▶ | if (PDL->Version != PDL_CORE_VERSION) |
Branch: 1 branch
| Branch | True | False | Total |
| if (PDL->Version != PDL_CORE_VERSION) |
0 |
1 |
1 |
|
| 584 |
0 |
| Perl_croak(aTHX_ "[PDL->Version: %ld PDL_CORE_VERSION: %ld XS_VERSION: %s] PDL::Complex needs to be recompiled against the newly installed PDL", (long int)PDL->Version, (long int)PDL_CORE_VERSION, XS_VERSION); |
| 585 |
1 |
| char *package = "PDL::Complex"; |
| 586 |
1 |
| HV* stash = gv_stashpvn(package, strlen(package), TRUE); |
| 587 |
1 |
| char *meths[] = {"Cmstack","Caugment",NULL}, **methsptr = meths; |
| 588 |
3 |
▶ | for (; *methsptr; methsptr++) { |
Branch: 1 branch
| Branch | True | False | Total |
| for (; *methsptr; methsptr++) { |
2 |
1 |
3 |
|
| 589 |
2 |
| SV **meth = hv_fetch(stash, *methsptr, strlen(*methsptr), 0); |
| 590 |
2 |
▶ | if (!meth) croak("No found method '%s' in '%s'", *methsptr, package); |
Branch: 1 branch
| Branch | True | False | Total |
| if (!meth) croak("No found method '%s' in '%s'", *methsptr, package); |
0 |
2 |
2 |
|
| 591 |
2 |
| CV *cv = GvCV(*meth); |
| 592 |
2 |
▶ | if (!cv) croak("No found CV for '%s' in '%s'", *methsptr, package); |
Branch: 1 branch
| Branch | True | False | Total |
| if (!cv) croak("No found CV for '%s' in '%s'", *methsptr, package); |
0 |
2 |
2 |
|
| 593 |
2 |
| CvLVALUE_on(cv); |
| 594 |
|
| } |