Condition Coverage

lib/PDL/MatrixOps.pd
Criterion Covered Total %
condition 25 75 33.3


and 3 conditions

line !l l&&!r l&&r condition
253 0 0 47 UNIVERSAL::isa($x, "PDL") and $x->dims >= 2
0 0 47 UNIVERSAL::isa($x, "PDL") and $x->dims >= 2 and $x->dim(0) == $x->dim(1)
260 9 0 38 exists $opt->{'lu'} and ref $opt->{'lu'} eq "ARRAY"
9 1 37 exists $opt->{'lu'} and ref $opt->{'lu'} eq "ARRAY" and ref $opt->{'lu'}[0] eq "PDL"
339 4 37 1 exists $opt->{'lu'} and ref $opt->{'lu'} eq "ARRAY"
392 0 0 6 UNIVERSAL::isa($x, "PDL") and $x->getndims >= 2
0 0 6 UNIVERSAL::isa($x, "PDL") and $x->getndims >= 2 and ($n = $x->dim(0)) == $x->dim(1)
1095 0 0 52 UNIVERSAL::isa($lu, "PDL") and UNIVERSAL::isa($perm, "PDL")
0 0 52 UNIVERSAL::isa($lu, "PDL") and UNIVERSAL::isa($perm, "PDL") and UNIVERSAL::isa($y, "PDL")
1125 0 0 52 $ludims->slice(0) == $m and $ludims->slice(1) == $m
0 0 52 $ludims->slice(0) == $m and $ludims->slice(1) == $m and $permdims->slice(0) == $m
0 0 52 $ludims->slice(0) == $m and $ludims->slice(1) == $m and $permdims->slice(0) == $m and $bdims->slice(0) == $m
1133 0 0 52 $lunumthr == $permnumthr and ($ludims->slice("1:-1") == $permdims)->all
1138 48 0 4 $bnumthr == $permnumthr and ($bdims == $permdims)->all

or 3 conditions

line l !l&&r !l&&!r condition
274 3 43 1 $det->nelem > 1 or $det
771 0 0 58 not UNIVERSAL::isa($in, "PDL") or $in->ndims < 2
0 0 58 not UNIVERSAL::isa($in, "PDL") or $in->ndims < 2 or $in->dim(0) != $in->dim(1)
783 0 0 0 not UNIVERSAL::isa($permute, "PDL") or $permute->ndims != 1
0 0 0 not UNIVERSAL::isa($permute, "PDL") or $permute->ndims != 1 or $permute->dim(0) != $out->dim(0)
793 0 0 0 not UNIVERSAL::isa($parity, "PDL") or $parity->dim(0) != 1
925 0 0 0 not UNIVERSAL::isa($in, "PDL") or $in->ndims < 2
0 0 0 not UNIVERSAL::isa($in, "PDL") or $in->ndims < 2 or $in->dim(0) != $in->dim(1)
937 0 0 0 not UNIVERSAL::isa($perm, "PDL") or $perm->ndims != 1
0 0 0 not UNIVERSAL::isa($perm, "PDL") or $perm->ndims != 1 or $perm->dim(0) != $out->dim(0)
947 0 0 0 not UNIVERSAL::isa($par, "PDL") or $par->nelem != 1