Skip to content

Commit 5e70c2f

Browse files
authored
Fix matrix function tests (#21)
1 parent 826a8cf commit 5e70c2f

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "KroneckerArrays"
22
uuid = "05d0b138-81bc-4ff7-84be-08becefb1ccc"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.1.15"
4+
version = "0.1.16"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -23,7 +23,7 @@ KroneckerArraysBlockSparseArraysExt = ["BlockArrays", "BlockSparseArrays"]
2323
[compat]
2424
Adapt = "4.3.0"
2525
BlockArrays = "1.6"
26-
BlockSparseArrays = "0.7.13"
26+
BlockSparseArrays = "0.7.19"
2727
DerivableInterfaces = "0.5.0"
2828
DiagonalArrays = "0.3.5"
2929
FillArrays = "1.13.0"

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ TestExtras = "5ed8adda-3752-4e41-b88a-e8b09835ee3a"
1919
Adapt = "4"
2020
Aqua = "0.8"
2121
BlockArrays = "1.6"
22-
BlockSparseArrays = "0.7.12"
22+
BlockSparseArrays = "0.7.19"
2323
DerivableInterfaces = "0.5"
2424
FillArrays = "1"
2525
JLArrays = "0.2"

test/test_blocksparsearrays.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@ arrayts = (Array, JLArray)
5656

5757
@test norm(a) norm(Array(a))
5858

59-
if arrayt == Array
59+
if arrayt === Array
6060
@test Array(inv(a)) inv(Array(a))
6161
else
62-
# Broken for JLArray, it seems like `inv` isn't
63-
# type stable.
62+
# Broken on GPU.
6463
@test_broken inv(a)
6564
end
6665

@@ -149,8 +148,14 @@ end
149148
@test_broken svd_compact(a)
150149
end
151150

151+
if arrayt === Array
152+
@test Array(inv(a)) inv(Array(a))
153+
else
154+
# Broken on GPU.
155+
@test_broken inv(a)
156+
end
157+
152158
# Broken operations
153-
@test_broken inv(a)
154159
@test_broken a[Block.(1:2), Block(2)]
155160

156161
@testset "Block deficient" begin

0 commit comments

Comments
 (0)