@@ -28,7 +28,7 @@ const StaticMatMulLike{s1, s2, T} = Union{
2828 UnitUpperTriangular{T, <: StaticMatrix{s1, s2, T} },
2929 Adjoint{T, <: StaticMatrix{s1, s2, T} },
3030 Transpose{T, <: StaticMatrix{s1, s2, T} },
31- SDiagonal{ s1, T}}
31+ Diagonal{T, <: StaticVector{ s1, T} }}
3232
3333"""
3434 gen_by_access(expr_gen, a::Type{<:AbstractArray}, asym = :wrapped_a)
8181function gen_by_access (expr_gen, a:: Type{<:Adjoint{<:Any, <:StaticVecOrMat}} , asym = :wrapped_a )
8282 return expr_gen (:adjoint )
8383end
84- function gen_by_access (expr_gen, a:: Type{<:SDiagonal } , asym = :wrapped_a )
84+ function gen_by_access (expr_gen, a:: Type{<:Diagonal{<:Any, <:StaticVector} } , asym = :wrapped_a )
8585 return expr_gen (:diagonal )
8686end
8787"""
@@ -166,7 +166,7 @@ function gen_by_access(expr_gen, a::Type{<:Adjoint{<:Any, <:StaticMatrix}}, b::T
166166 end )
167167 end
168168end
169- function gen_by_access (expr_gen, a:: Type{<:SDiagonal } , b:: Type )
169+ function gen_by_access (expr_gen, a:: Type{<:Diagonal{<:Any, <:StaticVector} } , b:: Type )
170170 return quote
171171 return $ (gen_by_access (b, :wrapped_b ) do access_b
172172 expr_gen (:diagonal , access_b)
0 commit comments