Skip to content

Commit

Permalink
Formatter again [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Apr 10, 2024
1 parent ee9f7d7 commit 571a335
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tensors/indexmanipulations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,9 @@ If `copy=false`, `tdst` might share data with `tsrc` whenever possible. Otherwis
To repartition into an existing destination, see [repartition!](@ref).
"""
Base.@constprop :aggressive function repartition(t::AbstractTensorMap, N₁::Int, N₂::Int=numind(t) - N₁;
copy::Bool=false)
Base.@constprop :aggressive function repartition(t::AbstractTensorMap, N₁::Int,
N₂::Int=numind(t) - N₁;
copy::Bool=false)
N₁ + N₂ == numind(t) ||
throw(ArgumentError("Invalid repartition: $(numind(t)) to ($N₁, $N₂)"))
all_inds = (codomainind(t)..., reverse(domainind(t))...)
Expand Down

0 comments on commit 571a335

Please sign in to comment.