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
LinearAlgebra.mul! returns an invalid result for PDiagMat. Given
LinearAlgebra.mul!
PDiagMat
using LinearAlgebra, PDMats A = PDiagMat([0.25, 0.75]) x = [0.0, 1.0] y = similar(x)
We get
A * x == [0.0, 0.75]
as expected, but mul! gives
mul!
mul!(y, A, x) == [0.0, 0.0]
However,
mul!(y, Matrix(A), x) == [0.0, 0.75]
returns the correct result.
For some reason, LinearAlgebra.generic_matvecmul! doesn't seem to work correctly for PDiagMat.
LinearAlgebra.generic_matvecmul!
Tested with Julia version v1.5.3 on Linux x86_64.
CC @vindex10, who noticed incorrect results caused by this in a actual use case.
The text was updated successfully, but these errors were encountered:
ScalMat
Thanks!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
LinearAlgebra.mul!
returns an invalid result forPDiagMat
. GivenWe get
as expected, but
mul!
givesHowever,
returns the correct result.
For some reason,
LinearAlgebra.generic_matvecmul!
doesn't seem to work correctly forPDiagMat
.Tested with Julia version v1.5.3 on Linux x86_64.
CC @vindex10, who noticed incorrect results caused by this in a actual use case.
The text was updated successfully, but these errors were encountered: