line |
true |
false |
branch |
257
|
1 |
107 |
unless eval {
do {
$y->isa('PDL')
}
} |
258
|
3 |
105 |
unless eval {
do {
$c->isa('PDL')
}
} |
263
|
3 |
105 |
if $x->dim(0) == 1 and $x->dim(1) == 1 or $y->dim(0) == 1 and $y->dim(1) == 1 |
265
|
1 |
104 |
if ($y->dim(1) != $x->dim(0)) |
637
|
0 |
0 |
if ref $_[$#_] eq 'HASH' |
638
|
0 |
0 |
if $#_ < 1 or $#_ > 2 |
641
|
0 |
0 |
$#_ == 2 ? : |
644
|
0 |
0 |
!(defined $opt && exists $opt->{'Boundary'}) ? : |
753
|
0 |
11 |
if $arr->nelem == 0 |
756
|
11 |
0 |
$srt->nelem > 0 ? : |
759
|
11 |
0 |
if ($uniq->nelem > 0) { } |
762
|
0 |
0 |
$srt->nelem == 0 ? : |
816
|
0 |
2 |
if $arr->nelem == 0 |
824
|
2 |
0 |
if ($srt->nelem > 0) { } |
826
|
1 |
1 |
if $uniqind->isempty |
832
|
2 |
0 |
if ($uniqind->nelem > 0) { } |
891
|
0 |
9 |
if $pdl->nelem == 0 or $pdl->ndims < 2 |
892
|
1 |
8 |
if $pdl->slice('(0)')->nelem < 2 |
899
|
0 |
8 |
if $PDL::Bad::Status and $pdl->badflag |
923
|
0 |
8 |
if ($PDL::Bad::Status and $srt->badflag) |
929
|
8 |
0 |
if ($srtdice->nelem > 0) { } |
936
|
1 |
7 |
if ($uniq->nelem > 0) { } |
939
|
7 |
0 |
$srtdice->nelem > 0 ? : |
972
|
0 |
2 |
if ($x->is_inplace) { } |
|
0 |
2 |
elsif ($#_ > 1) { } |
1010
|
0 |
2 |
if ($x->is_inplace) { } |
|
0 |
2 |
elsif ($#_ > 1) { } |
1078
|
0 |
11 |
unless (defined $l or defined $h) |
1080
|
0 |
0 |
if ($x->is_inplace) { } |
1088
|
0 |
11 |
if ($x->is_inplace) { } |
|
0 |
11 |
elsif ($#_ > 2) { } |
1095
|
10 |
1 |
if (defined $l and defined $h) { } |
|
1 |
0 |
elsif (defined $l) { } |
|
0 |
0 |
elsif (defined $h) { } |
1237
|
0 |
19 |
if $#_ > 1 |
1239
|
18 |
1 |
unless defined $weights |
1250
|
4 |
15 |
unless wantarray |
1293
|
0 |
17 |
if $#_ > 1 |
1298
|
1 |
16 |
if (defined $weights) |
1299
|
0 |
1 |
unless UNIVERSAL::isa($weights, 'PDL') |
1300
|
0 |
1 |
if ($weights->ndims != $data->ndims or (pdl($weights->dims) != pdl($data->dims))->or) |
1565
|
0 |
1 |
ref $_[0] && ref $_[0] ne 'PDL::Type' ? : |
1568
|
1 |
0 |
scalar @_ ? : |
1669
|
0 |
6 |
if (defined $x and not ref $x) |
1675
|
0 |
6 |
if (not defined $x or $x->nelem == 0) |
1676
|
0 |
0 |
unless @_ |
1677
|
0 |
0 |
if @_ <= 1 |
1682
|
0 |
6 |
if ($dim - $x->dim(0) > 100) |
1692
|
0 |
8 |
unless defined $y and $y->nelem |
1793
|
1 |
9 |
ref $_[0] && ref $_[0] ne 'PDL::Type' ? : |
1796
|
9 |
1 |
scalar @_ ? : |
1805
|
2 |
0 |
ref $_[0] && ref $_[0] ne 'PDL::Type' ? : |
1808
|
0 |
2 |
scalar @_ ? : |
1842
|
0 |
2 |
ref $_[0] && ref $_[0] ne 'PDL::Type' ? : |
1845
|
2 |
0 |
scalar @_ ? : |
1979
|
147 |
2 |
'HASH' eq ref $_[-1] ? : |
1984
|
0 |
149 |
if not defined $opt->{'mode'} and keys %$opt or keys %$opt > 1 |
1989
|
26 |
0 |
$mode eq 'bin_exclusive' ? : |
|
27 |
26 |
$mode eq 'bin_inclusive' ? : |
|
25 |
53 |
$mode eq 'match' ? : |
|
23 |
78 |
$mode eq 'insert_rightmost' ? : |
|
22 |
101 |
$mode eq 'insert_leftmost' ? : |
|
26 |
123 |
$mode eq 'sample' ? : |
2605
|
0 |
1 |
if ($#_ == 0) { } |
2609
|
0 |
1 |
if $err->any |
2612
|
1 |
0 |
if $#_ == -1 |
2717
|
0 |
16 |
if defined $options and ref $options ne 'HASH' |
2720
|
15 |
1 |
defined $options ? : |
2723
|
5 |
11 |
unless (defined $method) |
2724
|
0 |
5 |
$source->type <= zeroes(long(), 1)->type ? : |
2732
|
6 |
10 |
if ($method =~ /^s(am(p(le)?)?)?/i) { } |
|
9 |
1 |
elsif ($method eq 1 or $method =~ /^l(in(ear)?)?/i) { } |
|
1 |
0 |
elsif ($method eq 3 or $method =~ /^c(u(b(e|ic)?)?)?/i) { } |
|
0 |
0 |
elsif ($method =~ /^f(ft|ourier)?/i) { } |
2774
|
1 |
8 |
if ($PDL::Bad::Status and $source->badflag) |
2830
|
0 |
0 |
unless ref $fftref eq 'ARRAY' |
2831
|
0 |
0 |
if (@$fftref != 2) |
2902
|
0 |
1 |
if $#_ != 1 |
2980
|
279 |
0 |
unless defined $out |
3034
|
1 |
0 |
unless defined $outi |
3035
|
1 |
0 |
unless defined $outni |
3037
|
1 |
0 |
wantarray ? : |
3094
|
0 |
189 |
if $#_ == 0 |
3096
|
188 |
1 |
if ($#_ == 1) { } |
3098
|
19 |
169 |
if $_[0]->getndims > 1 |
3099
|
19 |
169 |
if $_[0]->getndims > 1 |
3102
|
0 |
1 |
if ($_[-1]->getndims > 1) { } |
3167
|
0 |
5 |
if $#_ == 0 |
3188
|
5 |
2 |
if $n > 0 |
3194
|
5 |
0 |
@to_return == 1 ? : |
3263
|
0 |
33 |
unless UNIVERSAL::isa($mask, 'PDL') |
3266
|
0 |
33 |
if (wantarray) |
3267
|
0 |
0 |
if (not defined $PDL::whichND) { } |
|
0 |
0 |
elsif ($PDL::whichND =~ /l/i) { } |
3279
|
2 |
31 |
unless ($mask->nelem) |
3283
|
2 |
29 |
unless ($mask->getndims) |
3284
|
1 |
1 |
$mask ? : |
3288
|
9 |
20 |
if ($ind->nelem == 0) |
3437
|
0 |
5 |
if ($x->ndims > 1 or $y->ndims > 1) |
3449
|
1 |
4 |
if ($op eq 'OR') { } |
|
1 |
3 |
elsif ($op eq 'XOR') { } |
|
3 |
0 |
elsif ($op eq 'AND') { } |
3469
|
1 |
0 |
if $i1->nelem > 0 |
3470
|
1 |
0 |
if $i2->nelem > 0 |
3474
|
1 |
0 |
if ($inds->nelem > 0) { } |