We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Looks like there are still a few things hiding out that use Matrix instead of AbstractMatrix.
Matrix
AbstractMatrix
Here's one example:
julia> a=PDMat(SMatrix{3,3}([ 0.880022 0.646205 0.598234 0.646205 0.578793 0.449772 0.598234 0.449772 1.33728])) 3×3 PDMat{Float64, SMatrix{3, 3, Float64, 9}}: 0.880022 0.646205 0.598234 0.646205 0.578793 0.449772 0.598234 0.449772 1.33728 julia> b = PDiagMat(SVector{3}([0.558713 0.384665 0.469067])) 3×3 PDiagMat{Float64, SVector{3, Float64}}: 0.558713 0.0 0.0 0.0 0.384665 0.0 0.0 0.0 0.469067 julia> a+b ERROR: MethodError: no method matching _adddiag(::SMatrix{3, 3, Float64, 9}, ::SVector{3, Float64})
However, a+a and b+b work. So does a+b when both are constructing from normal matrices.
a+a
b+b
a+b
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Looks like there are still a few things hiding out that use
Matrix
instead ofAbstractMatrix
.Here's one example:
However,
a+a
andb+b
work. So doesa+b
when both are constructing from normal matrices.The text was updated successfully, but these errors were encountered: