|
1 | 1 | module SparseMatrixColoringsBlockBandedMatricesExt |
2 | 2 |
|
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 |
44 | 22 |
|
45 | 23 | #= |
46 | 24 | This code is partly taken from ArrayInterface.jl and FiniteDiff.jl |
|
0 commit comments