@@ -28,7 +28,7 @@ const StaticMatMulLike{s1, s2, T} = Union{
28
28
UnitUpperTriangular{T, <: StaticMatrix{s1, s2, T} },
29
29
Adjoint{T, <: StaticMatrix{s1, s2, T} },
30
30
Transpose{T, <: StaticMatrix{s1, s2, T} },
31
- SDiagonal{ s1, T}}
31
+ Diagonal{T, <: StaticVector{ s1, T} }}
32
32
33
33
"""
34
34
gen_by_access(expr_gen, a::Type{<:AbstractArray}, asym = :wrapped_a)
81
81
function gen_by_access (expr_gen, a:: Type{<:Adjoint{<:Any, <:StaticVecOrMat}} , asym = :wrapped_a )
82
82
return expr_gen (:adjoint )
83
83
end
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 )
85
85
return expr_gen (:diagonal )
86
86
end
87
87
"""
@@ -166,7 +166,7 @@ function gen_by_access(expr_gen, a::Type{<:Adjoint{<:Any, <:StaticMatrix}}, b::T
166
166
end )
167
167
end
168
168
end
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 )
170
170
return quote
171
171
return $ (gen_by_access (b, :wrapped_b ) do access_b
172
172
expr_gen (:diagonal , access_b)
0 commit comments