JuliaDiff / FiniteDifferences.jl

High accuracy derivatives, estimated via numerical finite differences (formerly FDM.jl)
MIT License
298 stars 26 forks source link

Support Tridiagonal in to_vec #237

Closed oxinabox closed 4 months ago

oxinabox commented 4 months ago

Encountered in https://github.com/JuliaDiff/ChainRules.jl/pull/758 Problem was there is a du2 field which isn't used except as an implementation detail of lu. It is the value on the diag(x, 2)but its not used by==` etc because it's not part of the actual tridiagonal.

Reading this was causing errors with reading undefined values.