diff --git a/Project.toml b/Project.toml index e46a534..dcf111f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "LazyArrays" uuid = "5078a376-72f3-5289-bfd5-ec5146d43c02" -version = "2.1.7" +version = "2.1.8" [deps] ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a" diff --git a/src/linalg/inv.jl b/src/linalg/inv.jl index 030a157..33b5591 100644 --- a/src/linalg/inv.jl +++ b/src/linalg/inv.jl @@ -184,17 +184,4 @@ getindex(L::ApplyMatrix{<:Any,typeof(/)}, k::Integer, ::Colon) = permutedims(L.a getindex(L::ApplyMatrix{<:Any,typeof(/)}, k::Integer, j::Integer) = L[k,:][j] -inv_layout(::LazyLayouts, _, A) = ApplyArray(inv, A) - -### -# row/colsupport triangular -### -function colsupport(lay::AbstractInvLayout{<:TriangularLayout}, A, j) - B, = arguments(lay, A) - return colsupport(B, j) -end - -function rowsupport(lay::AbstractInvLayout{<:TriangularLayout}, A, k) - B, = arguments(lay, A) - return rowsupport(B, k) -end \ No newline at end of file +inv_layout(::LazyLayouts, _, A) = ApplyArray(inv, A) \ No newline at end of file diff --git a/test/ldivtests.jl b/test/ldivtests.jl index 0d8d7fa..94573bf 100644 --- a/test/ldivtests.jl +++ b/test/ldivtests.jl @@ -181,20 +181,4 @@ end @test Z \ Y ≈ [-2.0 1.0; 1.5 -0.5] end -@testset "Issue #329" begin - for op in (UpperTriangular, UnitUpperTriangular) - A = UpperTriangular(ApplyArray(inv, rand(5, 5))) - B = inv(A) - @test colsupport.(Ref(B), 1:5) == Base.OneTo.(1:5) - @test rowsupport.(Ref(B), 1:5) == range.(1:5, 5) - end - - for op in (LowerTriangular, UnitLowerTriangular) - A = LowerTriangular(ApplyArray(inv, rand(15, 15))) - B = inv(A) - @test colsupport.(Ref(B), 1:15) == range.(1:15, 15) - @test rowsupport.(Ref(B), 1:15) == Base.OneTo.(1:15) - end -end - end # module