You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>using PDMats, Distributions, LinearAlgebra
julia>ScalMat(3, 1) *MvNormal(I(3))
ERROR: MethodError:*(::ScalMat{Int64}, ::Falses{1, Tuple{Base.OneTo{Int64}}}) is ambiguous.
Candidates:*(a::ScalMat, x::AbstractVector)
@ PDMats ~/.julia/packages/PDMats/cAM9h/src/scalmat.jl:43*(a::AbstractMatrix{T}, b::FillArrays.AbstractZeros{T, 1}where T) where T
@ FillArrays ~/.julia/packages/FillArrays/lVl4c/src/fillalgebra.jl:103
Possible fix, define
*(::ScalMat{T}, ::FillArrays.AbstractZeros{T, 1}where T) where T<:Real
This is due to the compatibility issue of ScalMat and FillArrays and can be fixed by, e.g., replacing the Falses(3) mean vector with zeros(3) or the ScalMat(3, 1) with I(3). Maybe I should submit this issue to FillArrays or PDMats?
The text was updated successfully, but these errors were encountered:
Wu-Chenyang
changed the title
Multiplication is ambiguous
Multiplication of ScalMat and FillArray is ambiguous
Dec 13, 2024
Yes, to me this seems to be an issue of FillArrays + PDMats. Note that FillArrays already has an extension for PDMats, so IMO the missing method should be defined there.
The following code runs into errors.
This is due to the compatibility issue of
ScalMat
andFillArrays
and can be fixed by, e.g., replacing theFalses(3)
mean vector withzeros(3)
or theScalMat(3, 1)
withI(3)
. Maybe I should submit this issue toFillArrays
orPDMats
?The text was updated successfully, but these errors were encountered: