Skip to content

Commit 55eabfc

Browse files
committed
whichND needs to sever dummy, not physicalise, because mutate independently
1 parent 937aa06 commit 55eabfc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/PDL/Primitive.pd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3823,9 +3823,7 @@ sub PDL::whichND {
38233823
my $ndims = $mask->getndims;
38243824
return PDL->new_from_specification(indx,$ndims,0) if !$mask->nelem;
38253825
return $mask ? pdl(indx,0) : PDL->new_from_specification(indx,0) if !$ndims;
3826-
3827-
my $ind = $mask->flat->which->dummy(0,$ndims)->make_physical;
3828-
_one2nd($mask, $ind);
3826+
_one2nd($mask, $mask->flat->which->dummy(0,$ndims)->sever);
38293827
}
38303828
EOD
38313829

0 commit comments

Comments
 (0)