Skip to content

Commit 1599633

Browse files
authored
Avoid ambiguity in view triggered in BlockBandedMatrices.jl (#253)
1 parent 91c88bb commit 1599633

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "BlockArrays"
22
uuid = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"
3-
version = "0.16.26"
3+
version = "0.16.27"
44

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

src/blocklinalg.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,8 @@ sub_materialize(::ArrayLayouts.OnesLayout, V, ax::Tuple{<:AbstractUnitRange,<:Bl
103103
sub_materialize(::ArrayLayouts.ZerosLayout, V, ax::Tuple{<:AbstractUnitRange,<:BlockedUnitRange}) =
104104
Zeros{eltype(V)}(ax)
105105

106-
@propagate_inbounds Base.view(A::FillArrays.AbstractFill{<:Any,N}, I::Vararg{Union{Real, AbstractArray, Block}, N}) where N =
106+
@propagate_inbounds Base.view(A::FillArrays.AbstractFill, I::Union{Real, AbstractArray, Block}...) =
107107
FillArrays._fill_getindex(A, Base.to_indices(A, I)...)
108-
@propagate_inbounds Base.view(A::FillArrays.AbstractFill{<:Any,N}, I::Block{N}) where N =
109-
FillArrays._fill_getindex(A, Base.to_indices(A, (I,))...)
110-
@propagate_inbounds Base.view(A::FillArrays.AbstractFill{<:Any,1}, I::Block{1}) =
111-
FillArrays._fill_getindex(A, Base.to_indices(A, (I,))...)
112108

113109
conjlayout(::Type{T}, ::BlockLayout{MLAY,BLAY}) where {T<:Complex,MLAY,BLAY} = BlockLayout{MLAY,typeof(conjlayout(T,BLAY()))}()
114110
conjlayout(::Type{T}, ::BlockLayout{MLAY,BLAY}) where {T<:Real,MLAY,BLAY} = BlockLayout{MLAY,BLAY}()

0 commit comments

Comments
 (0)