Skip to content

Commit 1e62663

Browse files
committed
Use DefaultAlgorithm for factorizations
1 parent dcb2294 commit 1e62663

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/linalg/factorizations.jl‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using MatrixAlgebraKit
2-
using MatrixAlgebraKit: AbstractAlgorithm, YALAPACK.BlasMat, Algorithm
2+
using MatrixAlgebraKit: AbstractAlgorithm, YALAPACK.BlasMat, Algorithm, DefaultAlgorithm
33
import MatrixAlgebraKit as MAK
44

55
# Type piracy for defining the MAK rules on BlockArrays!
@@ -23,7 +23,7 @@ for f! in (
2323
:eig_full!, :eigh_full!, :svd_compact!, :svd_full!,
2424
:left_polar!, :right_polar!,
2525
)
26-
@eval function MAK.$f!(t::AbstractBlockTensorMap, F, alg::AbstractAlgorithm)
26+
@eval function MAK.$f!(t::AbstractBlockTensorMap, F, alg::DefaultAlgorithm)
2727
TensorKit.foreachblock(t, F...) do _, (tblock, Fblocks...)
2828
Fblocks′ = MAK.$f!(copy_dense!(similar_dense(tblock), tblock), alg)
2929
# deal with the case where the output is not in-place
@@ -42,7 +42,7 @@ for f! in (
4242
:svd_vals!, :eig_vals!, :eigh_vals!,
4343
:project_hermitian!, :project_antihermitian!, :project_isometric!,
4444
)
45-
@eval function MAK.$f!(t::AbstractBlockTensorMap, N, alg::AbstractAlgorithm)
45+
@eval function MAK.$f!(t::AbstractBlockTensorMap, N, alg::DefaultAlgorithm)
4646
TensorKit.foreachblock(t, N) do _, (tblock, Nblock)
4747
Nblock′ = MAK.$f!(copy_dense!(similar_dense(tblock), tblock), alg)
4848
# deal with the case where the output is not the same as the input

0 commit comments

Comments
 (0)