Branch Coverage

blib/lib/PDL/CCS/Nd.pm
Criterion Covered Total %
branch 2 416 0.4


line true false branch
76 0 0 if ($_[0] < $_[1]) { }
77 0 0 if ($_[0] > $_[1]) { }
110 0 0 unless $p->dims
111 0 0 $p->badflag ? :
0 0 defined $missing ? :
116 0 0 unless defined $flags
117 0 0 $missing->isbad ? :
122 0 0 $pdims->isempty ? :
152 0 0 $nzvals->badflag ? :
0 0 defined $opts{'missing'} ? :
158 0 0 unless UNIVERSAL::isa($pdims, "PDL")
161 0 0 unless UNIVERSAL::isa($vdims, "PDL")
164 0 0 if (CORE::not $opts{'steal'}) { }
0 0 elsif (CORE::not $opts{'sorted'}) { }
166 0 0 unless ($opts{'sorted'})
189 0 0 defined $opts{'flags'} ? :
205 0 0 if ($which->dim(0) != $ccs->[$WHICH]->dim(0))
219 0 0 if $nzi_new->isempty
232 0 0 if ($which->dim(0) != $ccs->[$PDIMS]->nelem)
239 0 0 unless ($which->isempty)
245 0 0 unless ($vals->isempty)
260 0 0 if PDL::CCS::Nd::isa($_[0], __PACKAGE__)
273 0 0 defined $_ ? :
288 0 0 defined $_ ? :
303 0 0 defined $args{'to'} ? :
304 0 0 defined $args{'dims'} ? :
0 0 defined $args{'pdims'} ? :
305 0 0 defined $args{'xdims'} ? :
0 0 defined $args{'vdims'} ? :
306 0 0 $args{'ptrs'} ? :
309 0 0 defined $args{'flags'} ? :
326 0 0 if ($z->isbad) { }
331 0 0 if ($ccs->[$FLAGS] & $CCSND_BAD_IS_MISSING)
336 0 0 if ($ccs->[$FLAGS] & $CCSND_NAN_IS_MISSING)
337 0 0 unless defined $nzmask1
343 0 0 unless ($nzmask->all)
358 0 0 if $_[0][$WHICH]->isempty
369 0 0 unless ($sorti == "PDL"->sequence($P_INDX, $sorti->dims))->all
398 0 0 if (defined $_[1])
408 0 0 if (PDL::CCS::Nd::isa($_[0], __PACKAGE__)) { }
420 0 0 if ($_[0][$FLAGS] & $CCSND_INPLACE)
431 0 0 unless @_
475 0 0 if $_[0][$VDIMS]->ndims == $_[0][$PDIMS]->ndims
485 0 0 if $_[0]->is_physically_indexed
501 0 0 if $_[0]->is_physically_indexed
547 0 0 if @_ > 1
553 0 0 if @_ > 1
560 0 0 if @_ > 1
570 0 0 if @_ > 1
571 0 0 if $_[0][$VALS]->dim(0) <= 1
579 0 0 if @_ > 1
593 0 0 unless defined $dim
594 0 0 unless $ccs->hasptr($dim)
595 0 0 wantarray ? :
602 0 0 unless defined $dim
603 0 0 defined $ccs->[$PTRS][$dim] ? :
614 0 0 if (UNIVERSAL::isa($_[2], 'ARRAY')) { }
629 0 0 unless defined $dim
637 0 0 if @_ > 1
642 0 0 if (@_ > 1)
643 0 0 if ($_[1]) { }
655 0 0 if (@_ > 1)
656 0 0 if ($_[1]) { }
669 0 0 if ($_[1]) { }
674 0 0 $_[0][$FLAGS] & $CCSND_INPLACE ? :
684 0 0 if (@_ > 1)
710 0 0 if ($_[0]->is_inplace)
741 0 0 unless defined $vdimsize
742 0 0 unless defined $vdimi
743 0 0 if $vdimi < 0
744 0 0 if ($vdimi < 0)
777 0 0 if $d1 < 0
778 0 0 if $d2 < 0
779 0 0 $d1 < $d2 ? :
789 0 0 if ($_[0]->ndims == 1) { }
818 0 0 if $ndi->dim(0) != $ccs->[$WHICH]->dim(0) or ($pdimi != "PDL"->sequence($ccs->[$WHICH]->dim(0)))->any
865 0 0 defined $pix ? :
923 0 0 if $axis_v < 0
924 0 0 $axis_v < 0 ? :
0 0 if $axis_v < 0 or $axis_v >= $ndims
927 0 0 $axis < 0 ? :
930 0 0 if $aimin < 0
931 0 0 if $aimax >= $asize
934 0 0 if ($axis < 0)
945 0 0 defined $pi2nzi ? :
948 0 0 unless $which->isempty
958 0 0 $axis == 0 ? :
975 0 0 if ($_[0][$VDIMS]->nelem == $_[0][$PDIMS]->nelem)
976 0 0 if (($_[0][$VDIMS]->index($vpi) == $_[0][$PDIMS]->sequence)->all) { }
984 0 0 wantarray ? :
992 0 0 unless ($wnd->isempty)
1001 0 0 wantarray ? :
1010 0 0 if $_[0][$VDIMS]->nelem == $_[0][$PDIMS]->nelem
1026 0 0 if (($foundi == $_[0][$WHICH]->dim(1))->any) { }
1053 0 28 unless defined $accumsub
1063 0 0 if ($which->dim(0) <= 1) { }
1075 0 0 $allow_bad_missing || $missing->isgood ? :
1084 0 0 unless @dims
1125 0 0 $z->isgood ? :
1126 0 0 $z->isgood ? :
1127 0 0 $z->isgood ? :
1128 0 0 $z->isgood ? :
1133 0 0 $z->isbad ? :
1134 0 0 $z->isgood ? :
1160 0 4 unless defined $accumsub
1170 0 0 if ($which->dim(0) <= 1) { }
1183 0 0 $allow_bad_missing || $missing->isgood ? :
1193 0 0 unless @dims
1257 0 0 if ($_[0]->is_inplace)
1284 0 0 unless defined $opname
1295 0 0 $#vdimsa < $#vdimsb ? :
1300 0 0 $vdima >= 0 ? :
1301 0 0 $vdimb >= 0 ? :
1304 0 0 if $dimsza == 1 or $dimszb == 1
1305 0 0 if $dimsza != $dimszb
1309 0 0 if $vdima >= 0 and $vdimb >= 0
1315 0 0 $#vdimsa > $#vdimsb ? :
1316 0 0 if $_ >= @vdimsa
1317 0 0 if $_ >= @vdimsb
1320 0 0 $vdima >= 0 ? :
1321 0 0 $vdimb >= 0 ? :
1322 0 0 if ($vdima >= 0) { }
0 0 elsif ($vdimb >= 0) { }
1323 0 0 $dimsza >= $dimszb ? :
0 0 if ($vdimb >= 0) { }
1327 0 0 $dimsza >= $dimszb ? :
1337 0 0 if ($_cdsrc[$_] == 0) { }
1338 0 0 if ($vdimsa[$_] < 0) { }
1345 0 0 if ($vdimsb[$_] < 0) { }
1372 0 0 unless defined $swap
1375 0 0 if (CORE::not ref $b or $b->nelem == 1)
1376 0 0 if ($a->is_inplace)
1377 0 0 $noSwap ? :
1381 0 0 $noSwap ? :
1402 0 0 if ($rdpdl->isempty) { }
0 0 elsif (($ra == 'PDL'->sequence($P_INDX, $nrdims))->all) { }
1408 0 0 $nrdims == $ixa->dim(0) ? :
1423 0 0 if ($rdpdl->isempty) { }
0 0 elsif (($rb == 'PDL'->sequence($P_INDX, $nrdims))->all) { }
1429 0 0 $nrdims == $ixb->dim(0) ? :
1441 0 0 $nixa > $nixb ? :
1442 0 0 if $BINOP_BLOCKSIZE_MIN and $blksz < $BINOP_BLOCKSIZE_MIN
1443 0 0 if $BINOP_BLOCKSIZE_MAX and $blksz > $BINOP_BLOCKSIZE_MAX
1450 0 0 $avals->type > $bvals->type ? :
0 0 defined $deftype ? :
1458 0 0 $noSwap ? :
1461 0 0 if $nanismissing and $badismissing
1462 0 0 $zc->isbad ? :
1480 0 0 if ($nzci_max >= 0)
1485 0 0 $noSwap ? :
1488 0 0 $zc_isbad || $nzc_blk->badflag ? :
1489 0 0 if CORE::not $zc_isbad and $badismissing
1490 0 0 if $nanismissing
1491 0 0 if ($cimask_blk->any)
1501 0 0 unless ($apcp->isempty)
1505 0 0 unless ($bpcp->isempty)
1516 0 0 if ($nzai_cur < $nixa or $nzbi_cur < $nixb)
1520 0 0 if ($nzci_nxt + $blksz > $nzai->dim(0))
1536 0 0 if ($nnzc > 0) { }
1558 0 0 if ($a->is_inplace)
1580 0 0 if ($sig =~ /^\s*\(/)
1592 0 0 if ($_ =~ s/^\s*(byte|short|ushort|int|long|longlong|indx|float|double)\s*//)
1597 0 0 if ($_ =~ s/^\s*\[([^\]]*)\]\s*//g)
1602 0 0 if ($_ =~ /^\s*(\S+)\s*\(([^\)]*)\)\s*$/) { }
1604 0 0 if defined $_
1607 0 0 unless defined $errname
1623 0 0 unless defined $opName
1642 0 0 unless (defined $arg_ccs)
1643 0 0 if $arg_sig->{'flags'} =~ /[ot]/
1653 0 0 if (defined($dim_sig = $arg_sig->{'dims'}[$dimi])) { }
1660 0 0 if ($#{$vdims[$argi];} >= $dimi) { }
1662 0 0 if ($pdimi >= 0) { }
1674 0 0 if (CORE::not defined $dims{$dimName}) { }
0 0 elsif ($dims{$dimName}{'size'} != $dimsize) { }
1679 0 0 if ($dims{$dimName}{'size'} == 1) { }
0 0 elsif ($dimsize != 1) { }
1689 0 0 unless ($isvdim)
1694 0 0 if $threadi > $nthreads
1745 0 0 if (CORE::not ref $from or $from->nelem == 1)
1750 0 0 if (PDL::CCS::Nd::isa($from, __PACKAGE__))
1754 0 0 if ($to->[$VALS]->dim(0) <= 1 or $todimp->isempty or ($fromdimp == $todimp)->all)
1787 0 0 if $#_ < 1
1789 0 0 if CORE::not ref $c and defined $c and $c eq ""
1798 0 0 if ($a->dim(0) == 1 and $a->dim(1) == 1 or $b->dim(0) == 1 and $b->dim(1) == 1)
1799 0 0 if (defined $c)
1803 0 0 if ($b->dim(1) != $a->dim(0))
1809 0 0 if (defined $c)
1821 0 0 if CORE::not ref $c and defined $c and $c eq ""
1828 0 0 if ($a->dim(0) == 1 and $a->dim(1) == 1 or $b->dim(0) == 1 and $b->dim(1) == 1)
1829 0 0 if (defined $c)
1834 0 0 if ($b->dim(1) != $a->dim(0))
1840 0 0 if $b->isa(__PACKAGE__)
1845 0 0 unless (defined $zc)
1859 0 0 if CORE::not ref $c and defined $c and $c eq ""
1866 0 0 if ($a->dim(0) == 1 and $a->dim(1) == 1 or $b->dim(0) == 1 and $b->dim(1) == 1)
1867 0 0 if (defined $c)
1872 0 0 if ($b->dim(1) != $a->dim(0))
1878 0 0 if $b->isa(__PACKAGE__)
1904 0 0 unless UNIVERSAL::isa($b, __PACKAGE__)
1919 0 0 unless UNIVERSAL::isa($b, __PACKAGE__)
1927 0 0 @_ ? :
1946 0 0 unless defined $yi
1947 0 0 unless defined $err
1949 0 0 wantarray ? :
1958 0 0 unless defined $yi
1997 0 0 $which->isempty ? :
2092 0 0 if $nelem == 0
2093 0 0 if $nelem != 1