Skip to content

Commit 8ca9745

Browse files
committed
$pdl->inplace->transpose to throw error
1 parent eff9dc0 commit 8ca9745

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- PP operation for inverse Transform::t_spherical
33
- add PDL::Guide::NumPy doc (#361)
44
- norm works inplace
5+
- $pdl->inplace->transpose now throws error
56

67
2.103 2026-03-03
78
- fix regression in *linvals so takes ndarrays as start and end again

lib/PDL/Basic.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ transpose rows and columns.
667667

668668
sub PDL::transpose {
669669
my ($this) = @_;
670+
barf "\$pdl->inplace->transpose is meaningless" if $this->is_inplace;
670671
my $ndims = $this->dims;
671672
$ndims > 1 ? $this->xchg(0,1) :
672673
$ndims > 0 ? $this->dummy(0) :

0 commit comments

Comments
 (0)