Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Oct 31, 2023
1 parent 7668e86 commit 5e65813
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions NDTensors/src/blocksparse/linearalgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,13 @@ function eigen(
sort!(d; rev=true, by=abs)

if truncate
d, truncerr, docut = truncate!!(d; mindim, maxdim, cutoff, use_absolute_cutoff, use_relative_cutoff)
d, truncerr, docut = truncate!!(
d; mindim, maxdim, cutoff, use_absolute_cutoff, use_relative_cutoff
)
for n in 1:nnzblocks(T)
blockdim = _truncated_blockdim(Ds[n], docut; min_blockdim, singular_values=false, truncate)
blockdim = _truncated_blockdim(
Ds[n], docut; min_blockdim, singular_values=false, truncate
)
if blockdim == 0
push!(dropblocks, n)
else
Expand Down

0 comments on commit 5e65813

Please sign in to comment.