Skip to content

Commit a469643

Browse files
authored
Merge pull request #50 from janbruedigam/zero_dim_mul_fix
Fix zero dim matrix mulitply
2 parents 0fba35b + 7ac08e0 commit a469643

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/util/custom_static.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,5 @@ zerodimstaticadjoint(A) = A'
6363
zerodimstaticadjoint(::SMatrix{0,N,T,0}) where {T,N} = SMatrix{N,0,T,0}()
6464
zerodimstaticadjoint(::SMatrix{N,0,T,0}) where {T,N} = SMatrix{0,N,T,0}()
6565
Base.:*(x::LinearAlgebra.AdjointAbsVec, A::SMatrix{0,N,T,0}) where {T,N} = (zerodimstaticadjoint(A)*x')'
66-
Base.:*(A::SMatrix{N,0,T,0},x::SVector{0}) where {T,N} = szeros(T,N)
66+
Base.:*(A::SMatrix{N,0,T,0},x::SVector{0}) where {T,N} = szeros(T,N)
67+
Base.:*(A::SMatrix{N,0,T,0},B::SMatrix{0,M,T,0}) where {T,N,M} = szeros(T,N,M)

0 commit comments

Comments
 (0)