Branch Coverage

blib/lib/PDLA/MatrixOps.pm
Criterion Covered Total %
branch 62 134 46.2


line true false branch
162 0 0 $n->getndims > 0 ? :
0 1 UNIVERSAL::isa($n, 'PDLA') ? :
258 3 2 unless defined $opt
261 0 5 unless UNIVERSAL::isa($x, 'PDLA') and $x->dims >= 2 and $x->dim(0) == $x->dim(1)
268 0 5 if (exists $opt->{'lu'} and ref $opt->{'lu'} eq 'ARRAY' and ref $opt->{'lu'}[0] eq 'PDLA') { }
275 1 4 if ref $opt->{'lu'} eq 'ARRAY'
278 5 0 defined $lu ? :
280 0 5 if exists $opt->{'det'}
282 1 4 unless ($det->nelem > 1 or $det)
284 1 0 if $opt->{'s'}
292 4 0 unless $x->is_inplace
343 3 2 unless defined $opt
346 1 4 if (exists $opt->{'lu'} and ref $opt->{'lu'} eq 'ARRAY') { }
351 1 3 if exists $opt->{'lu'}
354 5 0 defined $lu ? :
396 0 6 unless UNIVERSAL::isa($x, 'PDLA') and $x->getndims >= 2 and ($n = $x->dim(0)) == $x->dim(1)
401 0 6 if $n == 1
402 0 6 if ($n == 2)
406 5 1 if ($n == 3)
429 0 2 if ($el == 0)->all
501 0 1 if $#d < 1 or $d[0] != $d[1]
506 0 1 if $err == 0
509 0 0 if $err > 1e-05 and $PDLA::debug
526 0 1 if wantarray
619 0 2 if $#d < 1 or $d[0] != $d[1]
622 2 0 if ($deviation <= 1e-05) { }
634 2 0 if wantarray
638 0 0 if ($PDLA::verbose or $PDLA::debug)
641 0 0 unless ($PDLA::eigens_bug_ack or $ENV{'PDLA_EIGENS_ACK'})
655 0 0 if wantarray
823 0 12 if not UNIVERSAL::isa($in, 'PDLA') or $in->ndims < 2 or $in->dim(0) != $in->dim(1)
832 0 12 $inplace ? :
835 0 12 if (defined $permute) { }
836 0 0 if not UNIVERSAL::isa($permute, 'PDLA') or $permute->ndims != 1 or $permute->dim(0) != $out->dim(0)
845 0 12 if (defined $parity) { }
846 0 0 if not UNIVERSAL::isa($parity, 'PDLA') or $parity->dim(0) != 1
856 0 12 if (($scales == 0)->sum)
867 7 45 $row < $col ? :
868 33 19 if ($klim > 0)
879 19 12 if ($col < $n1)
915 12 0 if (wantarray)
981 0 0 if not UNIVERSAL::isa($in, 'PDLA') or $in->ndims < 2 or $in->dim(0) != $in->dim(1)
990 0 0 $inplace ? :
993 0 0 if (defined $perm) { }
994 0 0 if not UNIVERSAL::isa($perm, 'PDLA') or $perm->ndims != 1 or $perm->dim(0) != $out->dim(0)
1003 0 0 if (defined $par) { }
1004 0 0 if not UNIVERSAL::isa($par, 'PDLA') or $par->nelem != 1
1017 0 0 $row < $col ? :
1018 0 0 if ($klim > 0)
1029 0 0 if ($col < $n1)
1037 0 0 if (wantarray)
1100 0 5 if $PDLA::debug
1101 1 4 if (@_ == 3) { }
4 0 elsif (@_ == 4) { }
1107 0 5 unless defined $lu
1110 0 5 unless UNIVERSAL::isa($lu, 'PDLA') and UNIVERSAL::isa($perm, 'PDLA') and UNIVERSAL::isa($y, 'PDLA')
1137 0 5 if $PDLA::debug
1140 0 5 unless ($ludims->slice(0) == $m and $ludims->slice(1) == $m and $permdims->slice(0) == $m and $bdims->slice(0) == $m)
1148 0 5 unless ($lunumthr == $permnumthr and ($ludims->slice([1, -1]) == $permdims)->all)
1153 1 4 if ($bnumthr == $permnumthr and ($bdims == $permdims)->all)
1154 0 1 if $PDLA::debug
1178 2 3 if ($nontrivial) { }
1179 0 2 if ($y->is_inplace) { }
1188 0 3 $y->is_inplace ? :
1190 0 5 if $PDLA::debug
1194 0 5 if ($out->ndims < $lu->ndims - 1)
1195 0 0 if $PDLA::debug