Skip to content

Commit 6404059

Browse files
committed
clean imports
1 parent 9e1c646 commit 6404059

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

test/Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ DiagonalArrays = "74fd4be6-21e2-4f6f-823a-4360d37c7a77"
88
GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527"
99
JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb"
1010
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
11-
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1211
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1312
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
1413
SparseArraysBase = "0d5efcca-f356-4864-8770-e1ed8d78f208"
@@ -28,7 +27,6 @@ DiagonalArrays = "0.3"
2827
GPUArraysCore = "0.2"
2928
JLArrays = "0.2"
3029
LinearAlgebra = "1"
31-
Pkg = "1"
3230
Random = "1"
3331
SafeTestsets = "0.1"
3432
SparseArraysBase = "0.5"

test/test_basics.jl

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ using BlockArrays:
44
BlockArrays,
55
Block,
66
BlockArray,
7-
BlockIndexRange,
87
BlockRange,
9-
BlockSlice,
108
BlockVector,
119
BlockedOneTo,
12-
BlockedUnitRange,
1310
BlockedArray,
1411
BlockedVector,
1512
blockedrange,
@@ -35,9 +32,8 @@ using BlockSparseArrays:
3532
view!
3633
using GPUArraysCore: @allowscalar
3734
using JLArrays: JLArray, JLMatrix
38-
using LinearAlgebra: Adjoint, Transpose, dot, mul!, norm
35+
using LinearAlgebra: Adjoint, Transpose, dot, norm
3936
using SparseArraysBase: SparseArrayDOK, SparseMatrixDOK, SparseVectorDOK, storedlength
40-
using TensorAlgebra: contract
4137
using Test: @test, @test_broken, @test_throws, @testset, @inferred
4238
using TestExtras: @constinferred
4339
using TypeParameterAccessors: TypeParameterAccessors, Position
@@ -1120,20 +1116,7 @@ arrayts = (Array, JLArray)
11201116
@test a_dest[Block(2, 1)] == a1[Block(2, 1)]
11211117
@test a_dest[Block(3, 4)] == a2[Block(1, 2)]
11221118
end
1123-
@testset "TensorAlgebra" begin
1124-
a1 = dev(BlockSparseArray{elt}(undef, [2, 3], [2, 3]))
1125-
a1[Block(1, 1)] = dev(randn(elt, size(@view(a1[Block(1, 1)]))))
1126-
a2 = dev(BlockSparseArray{elt}(undef, [2, 3], [2, 3]))
1127-
a2[Block(1, 1)] = dev(randn(elt, size(@view(a1[Block(1, 1)]))))
1128-
# TODO: Make this work, requires customization of `TensorAlgebra.fusedims` and
1129-
# `TensorAlgebra.splitdims` in terms of `BlockSparseArrays.blockreshape`,
1130-
# and customization of `TensorAlgebra.:⊗` in terms of `GradedUnitRanges.tensor_product`.
1131-
a_dest, dimnames_dest = contract(a1, (1, -1), a2, (-1, 2))
1132-
@allowscalar begin
1133-
a_dest_dense, dimnames_dest_dense = contract(Array(a1), (1, -1), Array(a2), (-1, 2))
1134-
@test a_dest a_dest_dense
1135-
end
1136-
end
1119+
11371120
@testset "blockreshape" begin
11381121
a = dev(BlockSparseArray{elt}(undef, ([3, 4], [2, 3])))
11391122
a[Block(1, 2)] = dev(randn(elt, size(@view(a[Block(1, 2)]))))

0 commit comments

Comments
 (0)