Skip to content

Commit 66ae7a2

Browse files
authored
Revert *support Inv(Tri) (#338)
1 parent 0bfe6e5 commit 66ae7a2

File tree

3 files changed

+2
-31
lines changed

3 files changed

+2
-31
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "LazyArrays"
22
uuid = "5078a376-72f3-5289-bfd5-ec5146d43c02"
3-
version = "2.1.7"
3+
version = "2.1.8"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"

src/linalg/inv.jl

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,4 @@ getindex(L::ApplyMatrix{<:Any,typeof(/)}, k::Integer, ::Colon) = permutedims(L.a
184184
getindex(L::ApplyMatrix{<:Any,typeof(/)}, k::Integer, j::Integer) = L[k,:][j]
185185

186186

187-
inv_layout(::LazyLayouts, _, A) = ApplyArray(inv, A)
188-
189-
###
190-
# row/colsupport triangular
191-
###
192-
function colsupport(lay::AbstractInvLayout{<:TriangularLayout}, A, j)
193-
B, = arguments(lay, A)
194-
return colsupport(B, j)
195-
end
196-
197-
function rowsupport(lay::AbstractInvLayout{<:TriangularLayout}, A, k)
198-
B, = arguments(lay, A)
199-
return rowsupport(B, k)
200-
end
187+
inv_layout(::LazyLayouts, _, A) = ApplyArray(inv, A)

test/ldivtests.jl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -181,20 +181,4 @@ end
181181
@test Z \ Y [-2.0 1.0; 1.5 -0.5]
182182
end
183183

184-
@testset "Issue #329" begin
185-
for op in (UpperTriangular, UnitUpperTriangular)
186-
A = UpperTriangular(ApplyArray(inv, rand(5, 5)))
187-
B = inv(A)
188-
@test colsupport.(Ref(B), 1:5) == Base.OneTo.(1:5)
189-
@test rowsupport.(Ref(B), 1:5) == range.(1:5, 5)
190-
end
191-
192-
for op in (LowerTriangular, UnitLowerTriangular)
193-
A = LowerTriangular(ApplyArray(inv, rand(15, 15)))
194-
B = inv(A)
195-
@test colsupport.(Ref(B), 1:15) == range.(1:15, 15)
196-
@test rowsupport.(Ref(B), 1:15) == Base.OneTo.(1:15)
197-
end
198-
end
199-
200184
end # module

0 commit comments

Comments
 (0)