Skip to content

Commit 1a474f5

Browse files
authored
Upgrade to MatrixAlgebraKit v0.4 (#178)
1 parent 88cee75 commit 1a474f5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "BlockSparseArrays"
22
uuid = "2c9a651f-6452-4ace-a6ac-809f4280fbb4"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.10.4"
4+
version = "0.10.5"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -41,7 +41,7 @@ GPUArraysCore = "0.1, 0.2"
4141
LinearAlgebra = "1.10"
4242
MacroTools = "0.5.13"
4343
MapBroadcast = "0.1.5"
44-
MatrixAlgebraKit = "0.2.2, 0.3"
44+
MatrixAlgebraKit = "0.2.2, 0.3, 0.4"
4545
SparseArraysBase = "0.7.1"
4646
SplitApplyCombine = "1.2.3"
4747
TensorAlgebra = "0.3, 0.4"

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ DiagonalArrays = "0.3"
3131
GPUArraysCore = "0.2"
3232
JLArrays = "0.2"
3333
LinearAlgebra = "1"
34-
MatrixAlgebraKit = "0.2.5, 0.3"
34+
MatrixAlgebraKit = "0.4"
3535
Random = "1"
3636
SafeTestsets = "0.1"
3737
SparseArraysBase = "0.7"

test/test_factorizations.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ end
230230
@test (V1ᴴ * V1ᴴ' LinearAlgebra.I)
231231

232232
atol = minimum(LinearAlgebra.diag(S1)) + 10 * eps(real(T))
233-
trunc = trunctol(atol)
233+
trunc = trunctol(; atol)
234234

235235
U1, S1, V1ᴴ = svd_trunc(a; trunc)
236236
U2, S2, V2ᴴ = svd_trunc(Matrix(a); trunc)
@@ -246,7 +246,7 @@ end
246246
rng = StableRNG(123)
247247
perm = Random.randperm(rng, length(m))
248248
b = a[Block.(perm), Block.(1:length(n))]
249-
for trunc in (truncrank(r), trunctol(atol))
249+
for trunc in (truncrank(r), trunctol(; atol))
250250
U1, S1, V1ᴴ = svd_trunc(b; trunc)
251251
U2, S2, V2ᴴ = svd_trunc(Matrix(b); trunc)
252252
@test size(U1) == size(U2)
@@ -262,7 +262,7 @@ end
262262
I_removed = rand(eachblockstoredindex(b))
263263
c = copy(b)
264264
delete!(blocks(c).storage, CartesianIndex(Int.(Tuple(I_removed))))
265-
for trunc in (truncrank(r), trunctol(atol))
265+
for trunc in (truncrank(r), trunctol(; atol))
266266
U1, S1, V1ᴴ = svd_trunc(c; trunc)
267267
U2, S2, V2ᴴ = svd_trunc(Matrix(c); trunc)
268268
@test size(U1) == size(U2)

0 commit comments

Comments
 (0)