167167#  Lazy Broadcasting
168168for  typ in  (:Ones , :Zeros , :Fill )
169169    @eval  begin 
170-         BroadcastStyle (:: Type{$typ{T,N,NTuple{N,<:OneToInf}}} ) where  {T,N} =  LazyArrayStyle {N} ()
171-         BroadcastStyle (:: Type{$typ{T,2,<:Tuple{<:Any,<:OneToInf}}} ) where  {T} =  LazyArrayStyle {2} ()
172-         BroadcastStyle (:: Type{$typ{T,2,<:Tuple{<:OneToInf,<:Any}}} ) where  {T} =  LazyArrayStyle {2} ()
170+         BroadcastStyle (:: Type {<: $typ{T,N,<:Tuple{OneToInf, Vararg{OneToInf}}} }) where  {T,N} =  LazyArrayStyle {N} ()
171+         BroadcastStyle (:: Type{<:$typ{T,2,<:Tuple{Any,OneToInf}}} ) where  {T} =  LazyArrayStyle {2} ()
172+         BroadcastStyle (:: Type{<:$typ{T,2,<:Tuple{OneToInf,Any}}} ) where  {T} =  LazyArrayStyle {2} ()
173+         BroadcastStyle (:: Type{<:$typ{T,2,<:Tuple{OneToInf,OneToInf}}} ) where  {T} =  LazyArrayStyle {2} ()
173174    end 
174175end 
175176
@@ -430,4 +431,4 @@ LazyArrays.cache_getindex(::InfiniteCardinal{0}, A::AbstractVector, I, J...) = l
430431LazyArrays. cache_getindex (:: InfiniteCardinal{0} , A:: CachedVector{<:Any,<:AbstractVector,<:AbstractFill{<:Any,1}} , I:: AbstractVector ) =  LazyArrays. cache_getindex (nothing , A, I)
431432
432433
433- * (a:: AbstractVector , b:: AbstractFill{<:Any,2,Tuple{OneTo{Int},OneToInf{Int}}} ) =  ApplyArray (* ,a,b)
434+ * (a:: AbstractVector , b:: AbstractFill{<:Any,2,Tuple{OneTo{Int},OneToInf{Int}}} ) =  ApplyArray (* ,a,b)
0 commit comments