Open alfredjmduncan opened 3 years ago
huh, I really though that definition for mul!
would fix things correctly.
I will have to look closely,
Oh.
I think it needs a .
LinearAlgebra.mul!(C, ::ChainRulesCore.ZeroTangent, ::Any, ::Any, b) = C .*=b
though that seems likely to be less efficient for bools (thyough it might still optimize out, so it might need a if
)
I'm getting incorrect results when working with the rrule for cholesky where A <: LinearAlgebra.HermOrSym
Passing the input matrix through Matrix fixes the issue. The
mul!
fix relates to this issue.