Skip to content

Commit

Permalink
Don't export names not owned by the package (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub authored May 17, 2024
1 parent 1425899 commit 80eb954
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ storing the entries in the non-zero bands.
A `BlockBandedMatrix` is a subtype of `BlockMatrix` of [BlockArrays.jl](https://github.com/JuliaArrays/BlockArrays.jl)
whose layout of non-zero blocks is banded. We can construct a `BlockBandedMatrix` as follows:
```julia
using FillArrays, LinearAlgebra
l,u = 2,1 # block bandwidths
N = M = 4 # number of row/column blocks
cols = rows = 1:N # block sizes
Expand All @@ -35,10 +36,12 @@ A `BandedBlockBandedMatrix` has the added structure that the blocks themselves a
banded, and conform to the banded matrix interface of [BandedMatrices.jl](https://github.com/JuliaLinearAlgebra/BandedMatrices.jl).
We can construct a `BandedBlockBandedMatrix` as follows:
```julia
using FillArrays, LinearAlgebra
l,u = 2,1 # block bandwidths
λ,μ = 1,2 # sub-block bandwidths: the bandwidths of each block
N = M = 4 # number of row/column blocks
cols = rows = 1:N # block sizes

BandedBlockBandedMatrix(Zeros(sum(rows),sum(cols)), rows,cols, (l,u), (λ,μ)) # creates a banded-block-banded matrix of zeros
BandedBlockBandedMatrix(Ones(sum(rows),sum(cols)), rows,cols, (l,u), (λ,μ)) # creates a banded-block-banded matrix with ones in the non-zero entries
BandedBlockBandedMatrix(I, rows,cols, (l,u), (λ,μ)) # creates a banded-block-banded identity matrix
Expand Down
2 changes: 1 addition & 1 deletion src/BlockBandedMatrices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import MatrixFactorizations: AdjQLPackedQLayout, QR, QRPackedQ, _ql, ql, ql!


export BandedBlockBandedMatrix, BlockBandedMatrix, BlockSkylineMatrix, blockbandwidth, blockbandwidths,
subblockbandwidth, subblockbandwidths, Ones, Zeros, Fill, Block, BlockTridiagonal, BlockBidiagonal, isblockbanded
subblockbandwidth, subblockbandwidths, BlockTridiagonal, BlockBidiagonal, isblockbanded


const Block1 = Block{1,Int}
Expand Down
2 changes: 1 addition & 1 deletion test/test_adjtransblockbanded.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module TestAdjTransBlockBanded

using ArrayLayouts, BlockBandedMatrices, Test
using ArrayLayouts, BlockBandedMatrices, Test, FillArrays, BlockArrays
import BlockBandedMatrices: BandedBlockBandedRowMajor, BandedBlockBandedRows,
BandedBlockBandedColumns, BlockBandedRows,
BlockBandedColumns, blockcolsupport, blockrowsupport
Expand Down
1 change: 1 addition & 0 deletions test/test_blockskyline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module TestBlockSkyline
using ArrayLayouts
using BlockArrays
using BlockBandedMatrices
using FillArrays
using LinearAlgebra
using Random
using Test
Expand Down
1 change: 1 addition & 0 deletions test/test_broadcasting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ using ArrayLayouts
using BandedMatrices
using BlockArrays
using BlockBandedMatrices
using FillArrays
using LinearAlgebra
using Test

Expand Down
1 change: 1 addition & 0 deletions test/test_linalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ using ArrayLayouts
using BandedMatrices
using BlockArrays
using BlockBandedMatrices
using FillArrays
using LinearAlgebra
using Test

Expand Down
1 change: 1 addition & 0 deletions test/test_misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ using ArrayLayouts
using BandedMatrices
using BlockArrays
using BlockBandedMatrices
using FillArrays
using LinearAlgebra
using Test

Expand Down

0 comments on commit 80eb954

Please sign in to comment.