Skip to content

Commit 738b550

Browse files
committed
return ftdst
1 parent d56ca07 commit 738b550

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/permutedims/permutedims.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function fusiontensor_permutedims!(ftdst, ftsrc, biperm::AbstractBlockPermutatio
4646
if ndims_codomain(ftdst) == ndims_codomain(ftsrc) # compile time
4747
if Tuple(biperm) == ntuple(identity, ndims(ftdst))
4848
copy!(data_matrix(ftdst), data_matrix(ftsrc))
49-
return nothing
49+
return ftdst
5050
end
5151
end
5252
return permute_data!(SymmetryStyle(ftdst), ftdst, ftsrc, Tuple(biperm))
@@ -62,6 +62,7 @@ function permute_data!(::AbelianStyle, ftdst, ftsrc, flatperm)
6262
old_block = view(ftsrc, old_trees...)
6363
@strided new_block .= permutedims(old_block, flatperm)
6464
end
65+
return ftdst
6566
end
6667

6768
function permute_data!(::NotAbelianStyle, ftdst, ftsrc, flatperm)
@@ -72,4 +73,5 @@ function permute_data!(::NotAbelianStyle, ftdst, ftsrc, flatperm)
7273
old_block = view(ftsrc, old_trees...)
7374
@strided new_block .+= coeff .* permutedims(old_block, flatperm)
7475
end
76+
return ftdst
7577
end

0 commit comments

Comments
 (0)