Skip to content

Commit 8e25d9c

Browse files
committed
Remove Requires
1 parent 8621d90 commit 8e25d9c

4 files changed

Lines changed: 32 additions & 83 deletions

File tree

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ SparseMatrixColoringsColorsExt = "Colors"
2828

2929
[compat]
3030
ADTypes = "1.2.1"
31-
BandedMatrices = "1.7.5"
32-
BlockArrays = "1.1.1"
31+
BandedMatrices = "1.9.4"
32+
BlockArrays = "1.6.3"
3333
BlockBandedMatrices = "0.13.1"
3434
CUDA = "5.8.2"
3535
CliqueTrees = "1"

ext/SparseMatrixColoringsBandedMatricesExt.jl

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,16 @@
11
module SparseMatrixColoringsBandedMatricesExt
22

3-
if isdefined(Base, :get_extension)
4-
using BandedMatrices: BandedMatrix, bandrange, bandwidths, colrange, rowrange
5-
using SparseMatrixColorings:
6-
BipartiteGraph,
7-
ColoringProblem,
8-
ColumnColoringResult,
9-
GreedyColoringAlgorithm,
10-
RowColoringResult,
11-
column_colors,
12-
cycle_range,
13-
row_colors
14-
import SparseMatrixColorings as SMC
15-
else
16-
using ..BandedMatrices: BandedMatrix, bandrange, bandwidths, colrange, rowrange
17-
using ..SparseMatrixColorings:
18-
BipartiteGraph,
19-
ColoringProblem,
20-
ColumnColoringResult,
21-
GreedyColoringAlgorithm,
22-
RowColoringResult,
23-
column_colors,
24-
cycle_range,
25-
row_colors
26-
import ..SparseMatrixColorings as SMC
27-
end
3+
using BandedMatrices: BandedMatrix, bandrange, bandwidths, colrange, rowrange
4+
using SparseMatrixColorings:
5+
BipartiteGraph,
6+
ColoringProblem,
7+
ColumnColoringResult,
8+
GreedyColoringAlgorithm,
9+
RowColoringResult,
10+
column_colors,
11+
cycle_range,
12+
row_colors
13+
import SparseMatrixColorings as SMC
2814

2915
#=
3016
This code is partly taken from ArrayInterface.jl and FiniteDiff.jl

ext/SparseMatrixColoringsBlockBandedMatricesExt.jl

Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,24 @@
11
module SparseMatrixColoringsBlockBandedMatricesExt
22

3-
if isdefined(Base, :get_extension)
4-
using BlockArrays: blockaxes, blockfirsts, blocklasts, blocksize, blocklengths
5-
using BlockBandedMatrices:
6-
BandedBlockBandedMatrix,
7-
BlockBandedMatrix,
8-
blockbandrange,
9-
blockbandwidths,
10-
blocklengths,
11-
blocksize,
12-
subblockbandwidths
13-
using SparseMatrixColorings:
14-
BipartiteGraph,
15-
ColoringProblem,
16-
ColumnColoringResult,
17-
GreedyColoringAlgorithm,
18-
RowColoringResult,
19-
column_colors,
20-
cycle_range,
21-
row_colors
22-
import SparseMatrixColorings as SMC
23-
else
24-
using ..BlockArrays: blockaxes, blockfirsts, blocklasts, blocksize, blocklengths
25-
using ..BlockBandedMatrices:
26-
BandedBlockBandedMatrix,
27-
BlockBandedMatrix,
28-
blockbandrange,
29-
blockbandwidths,
30-
blocklengths,
31-
blocksize,
32-
subblockbandwidths
33-
using ..SparseMatrixColorings:
34-
BipartiteGraph,
35-
ColoringProblem,
36-
ColumnColoringResult,
37-
GreedyColoringAlgorithm,
38-
RowColoringResult,
39-
column_colors,
40-
cycle_range,
41-
row_colors
42-
import ..SparseMatrixColorings as SMC
43-
end
3+
using BlockArrays: blockaxes, blockfirsts, blocklasts, blocksize, blocklengths
4+
using BlockBandedMatrices:
5+
BandedBlockBandedMatrix,
6+
BlockBandedMatrix,
7+
blockbandrange,
8+
blockbandwidths,
9+
blocklengths,
10+
blocksize,
11+
subblockbandwidths
12+
using SparseMatrixColorings:
13+
BipartiteGraph,
14+
ColoringProblem,
15+
ColumnColoringResult,
16+
GreedyColoringAlgorithm,
17+
RowColoringResult,
18+
column_colors,
19+
cycle_range,
20+
row_colors
21+
import SparseMatrixColorings as SMC
4422

4523
#=
4624
This code is partly taken from ArrayInterface.jl and FiniteDiff.jl

src/SparseMatrixColorings.jl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,4 @@ export column_groups, row_groups
7373
export sparsity_pattern
7474
export compress, decompress, decompress!, decompress_single_color!
7575

76-
if !isdefined(Base, :get_extension)
77-
using Requires
78-
end
79-
80-
@static if !isdefined(Base, :get_extension)
81-
function __init__()
82-
@require BandedMatrices = "aae01518-5342-5314-be14-df237901396f" include(
83-
"../ext/SparseMatrixColoringsBandedMatricesExt.jl"
84-
)
85-
@require BlockBandedMatrices = "ffab5731-97b5-5995-9138-79e8c1846df0" include(
86-
"../ext/SparseMatrixColoringsBlockBandedMatricesExt.jl"
87-
)
88-
end
89-
end
90-
9176
end

0 commit comments

Comments
 (0)