Skip to content

Commit

Permalink
formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Mar 18, 2024
1 parent 1dd699c commit ebf4ade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/planar/planaroperations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function planartrace!(C::AbstractTensorMap,
(N₃ = length(q₁)) == length(q₂) ||
throw(IndexError("number of trace indices does not match"))
N₁, N₂ = length(p₁), length(p₂)

@boundscheck begin
numout(C) == N₁ || throw(IndexError("number of output indices does not match"))
numin(C) == N₂ || throw(IndexError("number of input indices does not match"))
Expand Down
6 changes: 3 additions & 3 deletions src/tensors/tensoroperations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ function trace_permute!(tdst::AbstractTensorMap,
end
(N₃ = length(q₁)) == length(q₂) ||
throw(IndexError("number of trace indices does not match"))

N₁, N₂ = length(p₁), length(p₂)

@boundscheck begin
numout(tdst) == N₁ || throw(IndexError("number of output indices does not match"))
numin(tdst) == N₂ || throw(IndexError("number of input indices does not match"))
Expand Down Expand Up @@ -238,7 +238,7 @@ function contract!(C::AbstractTensorMap,
length(cindA) == length(cindB) ||
throw(IndexError("number of contracted indices does not match"))
N₁, N₂ = length(oindA), length(oindB)

# find optimal contraction scheme
hsp = has_shared_permute
ipC = TupleTools.invperm((p₁..., p₂...))
Expand Down

0 comments on commit ebf4ade

Please sign in to comment.