Skip to content

Commit d338050

Browse files
authored
Delete SparseArraysBaseExt and DiagonalArraysExt (#98)
1 parent fb37db0 commit d338050

File tree

8 files changed

+32
-102
lines changed

8 files changed

+32
-102
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "IntegrationTest"
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
tags: '*'
8+
paths:
9+
- 'Project.toml'
10+
pull_request:
11+
paths:
12+
- 'Project.toml'
13+
14+
jobs:
15+
integration-test:
16+
name: "IntegrationTest"
17+
strategy:
18+
matrix:
19+
pkg:
20+
- 'ITensorNetworksNext'
21+
uses: "ITensor/ITensorActions/.github/workflows/IntegrationTest.yml@main"
22+
with:
23+
localregistry: "https://github.com/ITensor/ITensorRegistry.git"
24+
pkg: "${{ matrix.pkg }}"

Project.toml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ITensorBase"
22
uuid = "4795dd04-0d67-49bb-8f44-b89c448a1dc7"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.3.4"
4+
version = "0.4.0"
55

66
[deps]
77
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
@@ -17,25 +17,15 @@ UnallocatedArrays = "43c9e47c-e622-40fb-bf18-a09fc8c466b6"
1717
UnspecifiedTypes = "42b3faec-625b-4613-8ddc-352bf9672b8d"
1818
VectorInterface = "409d34a3-91d5-4945-b6ec-7529ddf182d8"
1919

20-
[weakdeps]
21-
DiagonalArrays = "74fd4be6-21e2-4f6f-823a-4360d37c7a77"
22-
SparseArraysBase = "0d5efcca-f356-4864-8770-e1ed8d78f208"
23-
24-
[extensions]
25-
ITensorBaseDiagonalArraysExt = "DiagonalArrays"
26-
ITensorBaseSparseArraysBaseExt = ["NamedDimsArrays", "SparseArraysBase"]
27-
2820
[compat]
2921
Accessors = "0.1.39"
3022
ConstructionBase = "1.6.0"
3123
DerivableInterfaces = "0.5"
32-
DiagonalArrays = "0.3"
3324
FillArrays = "1.13"
3425
LinearAlgebra = "1.10"
3526
MapBroadcast = "0.1.5"
36-
NamedDimsArrays = "0.8, 0.9"
27+
NamedDimsArrays = "0.10"
3728
Random = "1.10"
38-
SparseArraysBase = "0.7"
3929
TensorAlgebra = "0.3, 0.4, 0.5, 0.6"
4030
UnallocatedArrays = "0.1.1"
4131
UnspecifiedTypes = "0.1.1"

docs/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ ITensorBase = {path = ".."}
99

1010
[compat]
1111
Documenter = "1"
12-
ITensorBase = "0.3"
12+
ITensorBase = "0.4"
1313
Literate = "2"
14-
NamedDimsArrays = "0.8, 0.9"
14+
NamedDimsArrays = "0.10"

examples/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ NamedDimsArrays = "60cbd0c0-df58-4cb7-918c-6f5607b73fde"
77
ITensorBase = {path = ".."}
88

99
[compat]
10-
ITensorBase = "0.3"
10+
ITensorBase = "0.4"
1111
LinearAlgebra = "1.10"
12-
NamedDimsArrays = "0.8, 0.9"
12+
NamedDimsArrays = "0.10"

ext/ITensorBaseDiagonalArraysExt/ITensorBaseDiagonalArraysExt.jl

Lines changed: 0 additions & 28 deletions
This file was deleted.

ext/ITensorBaseSparseArraysBaseExt/ITensorBaseSparseArraysBaseExt.jl

Lines changed: 0 additions & 13 deletions
This file was deleted.

test/Project.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ ITensorBase = {path = ".."}
1515

1616
[compat]
1717
Aqua = "0.8.9"
18-
DiagonalArrays = "0.3"
19-
ITensorBase = "0.3"
20-
NamedDimsArrays = "0.8, 0.9"
18+
ITensorBase = "0.4"
19+
NamedDimsArrays = "0.10"
2120
SafeTestsets = "0.1"
22-
SparseArraysBase = "0.7"
2321
Suppressor = "0.2"
2422
TensorAlgebra = "0.3, 0.4, 0.5, 0.6"
2523
Test = "1.10"

test/test_basics.jl

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
using DiagonalArrays: δ, delta, diagview
21
using ITensorBase: ITensorBase, ITensor, Index, IndexName, gettag, hastag, plev, prime,
32
setplev, settag, tags, unsettag
43
using NamedDimsArrays: dename, inds, mapinds, name, named
5-
using SparseArraysBase: oneelement
64
using LinearAlgebra: factorize
75
using Test: @test, @test_broken, @test_throws, @testset
86

@@ -117,45 +115,6 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
117115
i = Index(2; id, tags = ["X" => "Y"])
118116
@test sprint(show, "text/plain", i) == "Index(length=2|id=$(id % 1000)|\"X\"=>\"Y\")"
119117
end
120-
@testset "delta" begin
121-
i, j = Index.((2, 2))
122-
for a in (
123-
delta(i, j),
124-
delta(Bool, i, j),
125-
delta((i, j)),
126-
delta(Bool, (i, j)),
127-
δ(i, j),
128-
δ(Bool, i, j),
129-
δ((i, j)),
130-
δ(Bool, (i, j)),
131-
)
132-
@test eltype(a) === Bool
133-
# TODO: Fix this.
134-
@test_broken diagview(a)
135-
@test diagview(dename(a)) == ones(2)
136-
end
137-
end
138-
@testset "oneelement" begin
139-
i = Index(3)
140-
a = oneelement(i => 2)
141-
@test a isa ITensor
142-
@test ndims(a) == 1
143-
@test issetequal(inds(a), (i,))
144-
@test eltype(a) === Bool
145-
@test a[1] == 0
146-
@test a[2] == 1
147-
@test a[3] == 0
148-
149-
i = Index(3)
150-
a = oneelement(Float32, i => 2)
151-
@test a isa ITensor
152-
@test ndims(a) == 1
153-
@test issetequal(inds(a), (i,))
154-
@test eltype(a) === Float32
155-
@test a[1] == 0
156-
@test a[2] == 1
157-
@test a[3] == 0
158-
end
159118
@testset "factorize" for elt in elts
160119
i = Index(2)
161120
j = Index(2)

0 commit comments

Comments
 (0)