Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pullbacks/eig.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ across eigenvectors associated with degenerate eigenvalues), so the correspondin
`ΔV` are projected out.
"""
function remove_eig_gauge_dependence!(
ΔV, D, V, ind = axes(ΔV, 2);
ΔV, D, V, ind = Colon();
degeneracy_atol = MatrixAlgebraKit.default_pullback_gauge_atol(D)
)
length(ind) == size(ΔV, 2) || throw(DimensionMismatch())
indV = axes(V, 2)[ind]
length(indV) == size(ΔV, 2) || throw(DimensionMismatch("Incompatible size of selected `ind` and `ΔV`"))
Vp = view(V, :, indV)
Ddiag = view(diagview(D), indV)
gaugepart = Vp' * ΔV
Expand Down
4 changes: 2 additions & 2 deletions src/pullbacks/eigh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ across eigenvectors associated with degenerate eigenvalues), so the correspondin
components of `V' * ΔV` are projected out.
"""
function remove_eigh_gauge_dependence!(
ΔV, D, V, ind = axes(ΔV, 2);
ΔV, D, V, ind = Colon();
degeneracy_atol = MatrixAlgebraKit.default_pullback_gauge_atol(D)
)
length(ind) == size(ΔV, 2) || throw(DimensionMismatch())
indV = axes(V, 2)[ind]
length(indV) == size(ΔV, 2) || throw(DimensionMismatch("Incompatible size of selected `ind` and `ΔV`"))
Vp = view(V, :, indV)
Ddiag = view(diagview(D), indV)
gaugepart = project_antihermitian!(Vp' * ΔV)
Expand Down
Loading