Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "BlockBandedMatrices"
uuid = "ffab5731-97b5-5995-9138-79e8c1846df0"
version = "0.13.5"
version = "0.13.2"

[deps]
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
Expand Down
4 changes: 4 additions & 0 deletions src/BandedBlockBandedMatrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ convert(::Type{AbstractMatrix{T}}, B::BandedBlockBandedMatrix) where T = _Banded
convert(::Type{AbstractArray{T}}, B::BandedBlockBandedMatrix{T}) where T = B
convert(::Type{AbstractMatrix{T}}, B::BandedBlockBandedMatrix{T}) where T = B

copy(A::Adjoint{T,<:BandedBlockBandedMatrix}) where T = copy(parent(A))'
copy(A::Transpose{T,<:BandedBlockBandedMatrix}) where T = transpose(copy(parent(A)))



similar(A::BandedBlockBandedMatrix, ::Type{T}, axes::NTuple{2,AbstractUnitRange{Int}}) where T =
BandedBlockBandedMatrix{T}(undef, axes, blockbandwidths(A), subblockbandwidths(A))
Expand Down
13 changes: 13 additions & 0 deletions test/test_bandedblockbanded.jl
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,19 @@ import ArrayLayouts: RangeCumsum
A = _BandedBlockBandedMatrix(data, rows, cols, (l, u), (λ, μ))
@test similar(A, Float64, (Base.OneTo(5), axes(A,2))) isa BandedBlockBandedMatrix
end

@testset "adj/trans" begin
l , u = 2,1
λ , μ = 1,2
N = M = 4
cols = rows = 1:N
data = reshape(Vector(1:(λ+μ+1)*(l+u+1)*sum(cols)), ((λ+μ+1)*(l+u+1), sum(cols)))
A = _BandedBlockBandedMatrix(data, rows,cols, (l,u), (λ,μ))
@test copy(A') isa Adjoint
@test copy(A') == copy(A)'
@test copy(transpose(A)) isa Transpose
@test copy(transpose(A)) == transpose(copy(A))
end
end

if false # turned off since tests have check-bounds=yes
Expand Down
5 changes: 1 addition & 4 deletions test/test_docstrings.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using Documenter
@testset "docstrings" begin
# don't test docstrings on old versions to avoid failures due to changes in types
if VERSION >= v"1.9"
DocMeta.setdocmeta!(BlockBandedMatrices, :DocTestSetup, :(using BlockBandedMatrices); recursive=true)
DocMeta.setdocmeta!(BlockBandedMatrices, :DocTestSetup, :(using BlockBandedMatrices); recursive=true)
doctest(BlockBandedMatrices)
end
end
Loading