@@ -2,10 +2,6 @@ using ADTypes: column_coloring, row_coloring, symmetric_coloring
22using LinearAlgebra
33using SparseArrays
44using SparseMatrixColorings
5- using SparseMatrixColorings:
6- structurally_orthogonal_columns,
7- symmetrically_orthogonal_columns,
8- directly_recoverable_columns
95using StableRNGs
106using Test
117
@@ -29,15 +25,11 @@ symmetric_params = vcat(
2925 @testset " $((; m, n, p)) " for (m, n, p) in asymmetric_params
3026 A0 = sprand (rng, m, n, p)
3127 color0 = column_coloring (A0, algo)
32- @test structurally_orthogonal_columns (A0, color0)
33- @test directly_recoverable_columns (A0, color0)
3428 test_coloring_decompression (A0, problem, algo; color0)
3529 end
3630 @testset " $((; n, p)) " for (n, p) in symmetric_params
3731 A0 = sparse (Symmetric (sprand (rng, n, n, p)))
3832 color0 = column_coloring (A0, algo)
39- @test structurally_orthogonal_columns (A0, color0)
40- @test directly_recoverable_columns (A0, color0)
4133 test_coloring_decompression (A0, problem, algo; color0)
4234 end
4335end ;
4840 @testset " $((; m, n, p)) " for (m, n, p) in asymmetric_params
4941 A0 = sprand (rng, m, n, p)
5042 color0 = row_coloring (A0, algo)
51- @test structurally_orthogonal_columns (transpose (A0), color0)
52- @test directly_recoverable_columns (transpose (A0), color0)
5343 test_coloring_decompression (A0, problem, algo; color0)
5444 end
5545 @testset " $((; n, p)) " for (n, p) in symmetric_params
5646 A0 = sparse (Symmetric (sprand (rng, n, n, p)))
5747 color0 = row_coloring (A0, algo)
58- @test structurally_orthogonal_columns (transpose (A0), color0)
59- @test directly_recoverable_columns (transpose (A0), color0)
6048 test_coloring_decompression (A0, problem, algo; color0)
6149 end
6250end ;
6755 @testset " $((; n, p)) " for (n, p) in symmetric_params
6856 A0 = sparse (Symmetric (sprand (rng, n, n, p)))
6957 color0 = symmetric_coloring (A0, algo)
70- @test symmetrically_orthogonal_columns (A0, color0)
71- @test directly_recoverable_columns (A0, color0)
7258 test_coloring_decompression (A0, problem, algo; color0)
7359 end
7460end ;
0 commit comments