Skip to content
Merged
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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "BlockTensorKit"
uuid = "5f87ffc2-9cf1-4a46-8172-465d160bd8cd"
version = "0.3.10"
version = "0.3.11"
authors = ["Lukas Devos <ldevos98@gmail.com> and contributors"]

[deps]
Expand Down
21 changes: 21 additions & 0 deletions src/linalg/factorizations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,27 @@ for f! in (
end
end

# Default algorithm
# -----------------
# Needed for disambiguation
for f in [
:lq_full, :lq_compact, :lq_null,
:qr_full, :qr_compact, :qr_null,
:schur_full, :schur_vals,
:eig_full, :eig_vals, :eig_trunc, :eig_trunc_no_error,
:eigh_full, :eigh_vals, :eigh_trunc, :eigh_trunc_no_error,
:svd_full, :svd_compact, :svd_trunc, :svd_trunc_no_error, :svd_vals,
:left_polar, :right_polar,
:left_orth, :right_orth, :left_null, :right_null,
:project_hermitian, :project_antihermitian, :project_isometric,
]
f! = Symbol(f, :!)
@eval MAK.$f!(t::AbstractBlockTensorMap, alg::DefaultAlgorithm) =
MAK.$f!(t, MAK.select_algorithm(MAK.$f!, t, nothing; alg.kwargs...))
@eval MAK.$f!(t::AbstractBlockTensorMap, out, alg::DefaultAlgorithm) =
MAK.$f!(t, out, MAK.select_algorithm(MAK.$f!, t, nothing; alg.kwargs...))
end

# specializations until fixes in base package
function MAK.is_left_isometric(A::BlockMatrix; atol::Real = 0, rtol::Real = MAK.defaulttol(A), norm = LinearAlgebra.norm)
P = A' * A
Expand Down
Loading