diff --git a/Project.toml b/Project.toml index 310cf6c..f22daa0 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "BlockSparseArrays" uuid = "2c9a651f-6452-4ace-a6ac-809f4280fbb4" authors = ["ITensor developers and contributors"] -version = "0.10.4" +version = "0.10.5" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" @@ -41,7 +41,7 @@ GPUArraysCore = "0.1, 0.2" LinearAlgebra = "1.10" MacroTools = "0.5.13" MapBroadcast = "0.1.5" -MatrixAlgebraKit = "0.2.2, 0.3" +MatrixAlgebraKit = "0.2.2, 0.3, 0.4" SparseArraysBase = "0.7.1" SplitApplyCombine = "1.2.3" TensorAlgebra = "0.3, 0.4" diff --git a/test/Project.toml b/test/Project.toml index ff27ace..410ea2b 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -31,7 +31,7 @@ DiagonalArrays = "0.3" GPUArraysCore = "0.2" JLArrays = "0.2" LinearAlgebra = "1" -MatrixAlgebraKit = "0.2.5, 0.3" +MatrixAlgebraKit = "0.4" Random = "1" SafeTestsets = "0.1" SparseArraysBase = "0.7" diff --git a/test/test_factorizations.jl b/test/test_factorizations.jl index cb60b26..6c6a695 100644 --- a/test/test_factorizations.jl +++ b/test/test_factorizations.jl @@ -230,7 +230,7 @@ end @test (V1ᴴ * V1ᴴ' ≈ LinearAlgebra.I) atol = minimum(LinearAlgebra.diag(S1)) + 10 * eps(real(T)) - trunc = trunctol(atol) + trunc = trunctol(; atol) U1, S1, V1ᴴ = svd_trunc(a; trunc) U2, S2, V2ᴴ = svd_trunc(Matrix(a); trunc) @@ -246,7 +246,7 @@ end rng = StableRNG(123) perm = Random.randperm(rng, length(m)) b = a[Block.(perm), Block.(1:length(n))] - for trunc in (truncrank(r), trunctol(atol)) + for trunc in (truncrank(r), trunctol(; atol)) U1, S1, V1ᴴ = svd_trunc(b; trunc) U2, S2, V2ᴴ = svd_trunc(Matrix(b); trunc) @test size(U1) == size(U2) @@ -262,7 +262,7 @@ end I_removed = rand(eachblockstoredindex(b)) c = copy(b) delete!(blocks(c).storage, CartesianIndex(Int.(Tuple(I_removed)))) - for trunc in (truncrank(r), trunctol(atol)) + for trunc in (truncrank(r), trunctol(; atol)) U1, S1, V1ᴴ = svd_trunc(c; trunc) U2, S2, V2ᴴ = svd_trunc(Matrix(c); trunc) @test size(U1) == size(U2)