Skip to content

Commit 126b6a1

Browse files
authored
LazyArrays v0.21 (#72)
* Update Project.toml * Add copy for ∞ banded AdjOrTrans
1 parent 352c06a commit 126b6a1

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "InfiniteLinearAlgebra"
22
uuid = "cde9dba0-b1de-11e9-2c62-0bab9446c55c"
3-
version = "0.5.2"
3+
version = "0.5.3"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
@@ -18,11 +18,11 @@ SemiseparableMatrices = "f8ebbe35-cbfb-4060-bf7f-b10e4670cf57"
1818
[compat]
1919
ArrayLayouts = "0.6"
2020
BandedMatrices = "0.16"
21-
BlockArrays = "0.14.5"
21+
BlockArrays = "0.14.5, 0.15"
2222
BlockBandedMatrices = "0.10"
2323
FillArrays = "0.11"
2424
InfiniteArrays = "0.10"
25-
LazyArrays = "0.20.2"
25+
LazyArrays = "0.20.2, 0.21"
2626
LazyBandedMatrices = "0.5"
2727
MatrixFactorizations = "0.8"
2828
SemiseparableMatrices = "0.2.3"

src/banded/infbanded.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,4 +501,9 @@ end
501501
# fall back for Ldiv
502502
triangularlayout(::Type{<:TriangularLayout{UPLO,'N'}}, ::TridiagonalToeplitzLayout) where UPLO = BidiagonalToeplitzLayout()
503503
materialize!(L::MatLdivVec{BidiagonalToeplitzLayout,Lay}) where Lay = materialize!(Ldiv{BidiagonalLayout{FillLayout,FillLayout},Lay}(L.A, L.B))
504-
copyto!(dest::AbstractArray, L::Ldiv{BidiagonalToeplitzLayout,Lay}) where Lay = copyto!(dest, Ldiv{BidiagonalLayout{FillLayout,FillLayout},Lay}(L.A, L.B))
504+
copyto!(dest::AbstractArray, L::Ldiv{BidiagonalToeplitzLayout,Lay}) where Lay = copyto!(dest, Ldiv{BidiagonalLayout{FillLayout,FillLayout},Lay}(L.A, L.B))
505+
506+
507+
# copy for AdjOrTrans
508+
copy(A::Adjoint{T,<:BandedMatrix{T,<:Any,OneToInf{Int}}}) where T = copy(parent(A))'
509+
copy(A::Transpose{T,<:BandedMatrix{T,<:Any,OneToInf{Int}}}) where T = transpose(copy(parent(A)))

test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ import LazyBandedMatrices: BroadcastBandedBlockBandedLayout, BroadcastBandedLayo
114114
@test (A*B)[1:20,1:20] == A[1:20,1:23]*B[1:23,1:20]
115115
end
116116
end
117+
118+
@testset "adjortrans" begin
119+
A = BandedMatrix(0 => 1:∞, 1=> Fill(2.0+im,∞), -1 => Fill(3.0,∞))
120+
@test copy(A')[1:10,1:10] == (A')[1:10,1:10]
121+
@test copy(transpose(A))[1:10,1:10] == transpose(A)[1:10,1:10]
122+
end
117123
end
118124

119125
@testset "∞-block arrays" begin

0 commit comments

Comments
 (0)