File tree 3 files changed +18
-6
lines changed
3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
1
name = " BlockSparseArrays"
2
2
uuid = " 2c9a651f-6452-4ace-a6ac-809f4280fbb4"
3
3
authors = [
" ITensor developers <[email protected] > and contributors" ]
4
- version = " 0.5.4 "
4
+ version = " 0.5.5 "
5
5
6
6
[deps ]
7
7
Adapt = " 79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -39,7 +39,7 @@ GPUArraysCore = "0.1.0, 0.2"
39
39
LinearAlgebra = " 1.10"
40
40
MacroTools = " 0.5.13"
41
41
MapBroadcast = " 0.1.5"
42
- MatrixAlgebraKit = " 0.1. 2"
42
+ MatrixAlgebraKit = " 0.2"
43
43
SparseArraysBase = " 0.5"
44
44
SplitApplyCombine = " 1.2.3"
45
45
TensorAlgebra = " 0.3.2"
Original file line number Diff line number Diff line change @@ -12,15 +12,27 @@ struct BlockPermutedDiagonalAlgorithm{A<:MatrixAlgebraKit.AbstractAlgorithm} <:
12
12
alg:: A
13
13
end
14
14
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... )
18
16
blocktype (A) <: StridedMatrix{<:LinearAlgebra.BLAS.BlasFloat} ||
19
17
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...)
20
21
alg = MatrixAlgebraKit. LAPACK_DivideAndConquer (; kwargs... )
21
22
return BlockPermutedDiagonalAlgorithm (alg)
22
23
end
23
24
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
+
24
36
function similar_output (
25
37
:: typeof (svd_compact!),
26
38
A,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ DiagonalArrays = "0.3"
28
28
GPUArraysCore = " 0.2"
29
29
JLArrays = " 0.2"
30
30
LinearAlgebra = " 1"
31
- MatrixAlgebraKit = " 0.1 "
31
+ MatrixAlgebraKit = " 0.2 "
32
32
Random = " 1"
33
33
SafeTestsets = " 0.1"
34
34
SparseArraysBase = " 0.5"
You can’t perform that action at this time.
0 commit comments