File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name = " BlockSparseArrays"
22uuid = " 2c9a651f-6452-4ace-a6ac-809f4280fbb4"
33authors = [" ITensor developers <support@itensor.org> and contributors" ]
4- version = " 0.5.4 "
4+ version = " 0.5.5 "
55
66[deps ]
77Adapt = " 79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -39,7 +39,7 @@ GPUArraysCore = "0.1.0, 0.2"
3939LinearAlgebra = " 1.10"
4040MacroTools = " 0.5.13"
4141MapBroadcast = " 0.1.5"
42- MatrixAlgebraKit = " 0.1. 2"
42+ MatrixAlgebraKit = " 0.2"
4343SparseArraysBase = " 0.5"
4444SplitApplyCombine = " 1.2.3"
4545TensorAlgebra = " 0.3.2"
Original file line number Diff line number Diff line change @@ -12,15 +12,27 @@ struct BlockPermutedDiagonalAlgorithm{A<:MatrixAlgebraKit.AbstractAlgorithm} <:
1212 alg:: A
1313end
1414
15- # TODO : this is a hardcoded for now to get around this function not being defined in the
16- # type domain
17- function MatrixAlgebraKit. default_svd_algorithm (A:: AbstractBlockSparseMatrix ; kwargs... )
15+ function default_blocksparse_svd_algorithm (f, A; kwargs... )
1816 blocktype (A) <: StridedMatrix{<:LinearAlgebra.BLAS.BlasFloat} ||
1917 error (" unsupported type: $(blocktype (A)) " )
18+ # TODO : this is a hardcoded for now to get around this function not being defined in the
19+ # type domain
20+ # alg = MatrixAlgebraKit.default_algorithm(f, blocktype(A); kwargs...)
2021 alg = MatrixAlgebraKit. LAPACK_DivideAndConquer (; kwargs... )
2122 return BlockPermutedDiagonalAlgorithm (alg)
2223end
2324
25+ function MatrixAlgebraKit. default_algorithm (
26+ f:: typeof (svd_compact!), A:: AbstractBlockSparseMatrix ; kwargs...
27+ )
28+ return default_blocksparse_svd_algorithm (f, A; kwargs... )
29+ end
30+ function MatrixAlgebraKit. default_algorithm (
31+ f:: typeof (svd_full!), A:: AbstractBlockSparseMatrix ; kwargs...
32+ )
33+ return default_blocksparse_svd_algorithm (f, A; kwargs... )
34+ end
35+
2436function similar_output (
2537 :: typeof (svd_compact!),
2638 A,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ DiagonalArrays = "0.3"
2828GPUArraysCore = " 0.2"
2929JLArrays = " 0.2"
3030LinearAlgebra = " 1"
31- MatrixAlgebraKit = " 0.1 "
31+ MatrixAlgebraKit = " 0.2 "
3232Random = " 1"
3333SafeTestsets = " 0.1"
3434SparseArraysBase = " 0.5"
You can’t perform that action at this time.
0 commit comments