Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit c4041c8

Browse files
committed
fixed orth_perm -its not used yet but will be useful soon for multi layer BPAs
1 parent b8fbb38 commit c4041c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ function and(B::NTuple{N, Bool}) where N
4141
end
4242

4343
"""
44-
A function to generate the correct permutation to flip an array of dimension `N` to be orthogonal to `dim`
44+
A function to generate the correct permutation to flip an array of dimension `N` to be orthogonal to `dim`, when the Nth dimension is a singleton
4545
"""
4646
function orth_perm(N::Int, dim::Int)
4747
if dim == N
4848
return Vector(1:N)
4949
elseif dim < N
50-
P = experms(N, dim+1)
50+
P = orth_perm(N, dim+1)
5151
P[dim], P[dim+1] = P[dim+1], P[dim]
5252
return P
5353
else

0 commit comments

Comments
 (0)