Branch Coverage

/root/.cpan/build/PDL-CCS-1.23.11-0/blib/lib/PDL/CCS/Nd.pm
Criterion Covered Total %
branch 2 432 0.4


line true false branch
76 0 0 $_[0] < $_[1] ? :
77 0 0 $_[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'})
167 0 0 $wnd->isempty ? :
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 isa($_[0], 'PDL::CCS::Nd')
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'} ? :
327 0 0 if ($z->isbad) { }
332 0 0 if ($ccs->[$FLAGS] & $CCSND_BAD_IS_MISSING)
338 0 0 if ($ccs->[$FLAGS] & $CCSND_NAN_IS_MISSING)
339 0 0 unless defined $nzmask1
345 0 0 unless ($nzmask->all)
360 0 0 if $_[0][$WHICH]->isempty
371 0 0 unless ($sorti == 'PDL'->sequence($P_INDX, $sorti->dims))->all
400 0 0 if (defined $_[1])
410 0 0 isa($_[0], 'PDL::CCS::Nd') ? :
421 0 0 if ($_[0][$FLAGS] & $CCSND_INPLACE)
432 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)
740 0 0 unless defined $vdimsize
741 0 0 unless defined $vdimi
742 0 0 if $vdimi < 0
743 0 0 if ($vdimi < 0)
776 0 0 if $d1 < 0
777 0 0 if $d2 < 0
778 0 0 $d1 < $d2 ? :
788 0 0 if ($_[0]->ndims == 1) { }
817 0 0 if $ndi->dim(0) != $ccs->[$WHICH]->dim(0) or ($pdimi != 'PDL'->sequence($ccs->[$WHICH]->dim(0)))->any
864 0 0 defined $pix ? :
922 0 0 if $axis_v < 0
923 0 0 $axis_v < 0 ? :
0 0 if $axis_v < 0 or $axis_v >= $ndims
926 0 0 $axis < 0 ? :
929 0 0 if $aimin < 0
930 0 0 if $aimax >= $asize
933 0 0 if ($axis < 0)
944 0 0 defined $pi2nzi ? :
947 0 0 unless $which->isempty
957 0 0 $axis == 0 ? :
974 0 0 if ($_[0][$VDIMS]->nelem == $_[0][$PDIMS]->nelem)
975 0 0 if (($_[0][$VDIMS]->index($vpi) == $_[0][$PDIMS]->sequence)->all) { }
983 0 0 wantarray ? :
991 0 0 unless ($wnd->isempty)
1000 0 0 wantarray ? :
1009 0 0 if $_[0][$VDIMS]->nelem == $_[0][$PDIMS]->nelem
1025 0 0 if (($foundi == $_[0][$WHICH]->dim(1))->any) { }
1052 0 56 unless defined $accumsub
1062 0 0 if ($which->dim(0) <= 1) { }
1074 0 0 $allow_bad_missing || $missing->isgood ? :
1081 0 0 unless @dims
1120 0 0 $z->isgood ? :
1121 0 0 $z->isgood ? :
1122 0 0 $z->isgood ? :
1123 0 0 $z->isgood ? :
1128 0 0 $z->isbad ? :
1129 0 0 $z->isgood ? :
1155 0 8 unless defined $accumsub
1165 0 0 if ($which->dim(0) <= 1) { }
1178 0 0 $allow_bad_missing || $missing->isgood ? :
1188 0 0 unless @dims
1252 0 0 if ($_[0]->is_inplace)
1278 0 0 unless defined $opname
1289 0 0 $#vdimsa < $#vdimsb ? :
1294 0 0 $vdima >= 0 ? :
1295 0 0 $vdimb >= 0 ? :
1298 0 0 if $dimsza == 1 or $dimszb == 1
1299 0 0 if $dimsza != $dimszb
1303 0 0 if $vdima >= 0 and $vdimb >= 0
1309 0 0 $#vdimsa > $#vdimsb ? :
1310 0 0 if $_ >= @vdimsa
1311 0 0 if $_ >= @vdimsb
1314 0 0 $vdima >= 0 ? :
1315 0 0 $vdimb >= 0 ? :
1316 0 0 if ($vdima >= 0) { }
0 0 elsif ($vdimb >= 0) { }
1317 0 0 $dimsza >= $dimszb ? :
0 0 if ($vdimb >= 0) { }
1321 0 0 $dimsza >= $dimszb ? :
1331 0 0 if ($_cdsrc[$_] == 0) { }
1332 0 0 if ($vdimsa[$_] < 0) { }
1339 0 0 if ($vdimsb[$_] < 0) { }
1366 0 0 unless defined $swap
1369 0 0 if (CORE::not ref $b or $b->nelem == 1)
1370 0 0 if ($a->is_inplace)
1371 0 0 $noSwap ? :
1375 0 0 $noSwap ? :
1396 0 0 if ($rdpdl->isempty) { }
0 0 elsif (($ra == 'PDL'->sequence($P_INDX, $nrdims))->all) { }
1402 0 0 $nrdims == $ixa->dim(0) ? :
1406 0 0 $ixar->isempty ? :
1417 0 0 if ($rdpdl->isempty) { }
0 0 elsif (($rb == 'PDL'->sequence($P_INDX, $nrdims))->all) { }
1423 0 0 $nrdims == $ixb->dim(0) ? :
1427 0 0 $ixbr->isempty ? :
1435 0 0 $nixa > $nixb ? :
1436 0 0 if $BINOP_BLOCKSIZE_MIN and $blksz < $BINOP_BLOCKSIZE_MIN
1437 0 0 if $BINOP_BLOCKSIZE_MAX and $blksz > $BINOP_BLOCKSIZE_MAX
1444 0 0 $avals->type > $bvals->type ? :
0 0 defined $deftype ? :
1452 0 0 $noSwap ? :
1455 0 0 if $nanismissing and $badismissing
1456 0 0 $zc->isbad ? :
1474 0 0 if ($nzci_max >= 0)
1479 0 0 $noSwap ? :
1482 0 0 $zc_isbad || $nzc_blk->badflag ? :
1483 0 0 if CORE::not $zc_isbad and $badismissing
1484 0 0 if $nanismissing
1485 0 0 if ($cimask_blk->any)
1495 0 0 unless ($apcp->isempty)
1499 0 0 unless ($bpcp->isempty)
1510 0 0 if ($nzai_cur < $nixa or $nzbi_cur < $nixb)
1514 0 0 if ($nzci_nxt + $blksz > $nzai->dim(0))
1530 0 0 if ($nnzc > 0) { }
1552 0 0 if ($a->is_inplace)
1574 0 0 if ($sig =~ /^\s*\(/)
1586 0 0 if ($_ =~ s/^\s*(byte|short|ushort|int|long|longlong|indx|float|double)\s*//)
1591 0 0 if ($_ =~ s/^\s*\[([^\]]*)\]\s*//g)
1596 0 0 if ($_ =~ /^\s*(\S+)\s*\(([^\)]*)\)\s*$/) { }
1598 0 0 if defined $_
1601 0 0 unless defined $errname
1617 0 0 unless defined $opName
1636 0 0 unless (defined $arg_ccs)
1637 0 0 if $arg_sig->{'flags'} =~ /[ot]/
1647 0 0 if (defined($dim_sig = $arg_sig->{'dims'}[$dimi])) { }
1654 0 0 if ($#{$vdims[$argi];} >= $dimi) { }
1656 0 0 if ($pdimi >= 0) { }
1668 0 0 if (CORE::not defined $dims{$dimName}) { }
0 0 elsif ($dims{$dimName}{'size'} != $dimsize) { }
1673 0 0 if ($dims{$dimName}{'size'} == 1) { }
0 0 elsif ($dimsize != 1) { }
1683 0 0 unless ($isvdim)
1688 0 0 if $threadi > $nthreads
1737 0 0 if (CORE::not ref $from or $from->nelem == 1)
1742 0 0 if (isa($from, 'PDL::CCS::Nd'))
1746 0 0 if ($to->[$VALS]->dim(0) <= 1 or $todimp->isempty or ($fromdimp == $todimp)->all)
1779 0 0 if $#_ < 1
1781 0 0 if CORE::not ref $c and defined $c and $c eq ''
1790 0 0 if ($a->dim(0) == 1 and $a->dim(1) == 1 or $b->dim(0) == 1 and $b->dim(1) == 1)
1791 0 0 if (defined $c)
1795 0 0 if ($b->dim(1) != $a->dim(0))
1801 0 0 if (defined $c)
1813 0 0 if CORE::not ref $c and defined $c and $c eq ''
1820 0 0 if ($a->dim(0) == 1 and $a->dim(1) == 1 or $b->dim(0) == 1 and $b->dim(1) == 1)
1821 0 0 if (defined $c)
1826 0 0 if ($b->dim(1) != $a->dim(0))
1832 0 0 if $b->isa('PDL::CCS::Nd')
1834 0 0 unless (defined $c)
1835 0 0 $a->type > $b->type ? :
1840 0 0 unless (defined $zc)
1854 0 0 if CORE::not ref $c and defined $c and $c eq ''
1861 0 0 if ($a->dim(0) == 1 and $a->dim(1) == 1 or $b->dim(0) == 1 and $b->dim(1) == 1)
1862 0 0 if (defined $c)
1867 0 0 if ($b->dim(1) != $a->dim(0))
1873 0 0 if $b->isa('PDL::CCS::Nd')
1875 0 0 unless (defined $c)
1876 0 0 $a->type > $b->type ? :
1891 0 0 unless defined $vnorm
1905 0 0 unless UNIVERSAL::isa($b, 'PDL::CCS::Nd')
1920 0 0 unless UNIVERSAL::isa($b, 'PDL::CCS::Nd')
1928 0 0 @_ ? :
1947 0 0 unless defined $yi
1948 0 0 unless defined $err
1950 0 0 wantarray ? :
1959 0 0 unless defined $yi
1998 0 0 $which->isempty ? :
2093 0 0 if $nelem == 0
2094 0 0 if $nelem != 1