We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ae469e commit 77d32d5Copy full SHA for 77d32d5
1 file changed
test/structured.jl
@@ -2,6 +2,7 @@ using ArrayInterface: ArrayInterface
2
using BandedMatrices: BandedMatrix, brand
3
using BlockBandedMatrices: BandedBlockBandedMatrix, BlockBandedMatrix
4
using LinearAlgebra
5
+using SparseArrays
6
using SparseMatrixColorings
7
using Test
8
@@ -58,8 +59,8 @@ end;
58
59
end;
60
61
# See https://github.com/gdalle/SparseMatrixColorings.jl/pull/299
-@testset "SparsityPatternCSC" begin
62
- S = sparse([
+@testset "SparsityPatternCSC $T" for T in [Int, Float32]
63
+ S = sparse(T[
64
0 0 1 1 0 1
65
1 0 0 0 1 0
66
0 1 0 0 1 0
@@ -70,5 +71,5 @@ end;
70
71
algo = GreedyColoringAlgorithm()
72
result = coloring(P, problem, algo)
73
B = compress(S, result)
- @test decompress(B, result) isa SparseMatrixCSC{Int,Int}
74
+ @test decompress(B, result) isa SparseMatrixCSC{T,Int}
75
0 commit comments