Closed pkofod closed 5 years ago
Is it possible to swap out the Jacobian type? I would like to see a test that does gmres with a matrix-free representation of the Jacobian given by a LinearMaps.jl FunctionMap.
Is it possible to swap out the Jacobian type? I would like to see a test that does gmres with a matrix-free representation of the Jacobian given by a LinearMaps.jl FunctionMap.
That should be possible, yes. Let me see if I can find the appropriate types you're talking about and come up with an example (if you have a link handy that shows how it works I'd be happy to see it)
That should be possible, yes. Let me see if I can find the appropriate types you're talking about and come up with an example (if you have a link handy that shows how it works I'd be happy to see it)
Yeah it probably isn't ready right now. The problem is that some internals assume .=
will work, and I suspect you're asking for some sort of immutable storage type, righT?
oh okay. But things like sparse work?
If you’re willing to reuse the object, sure. What sparse problem could benefit from this? Are you thinking calling some nonjulia library?
This works so I'm putting it in. I'm going to collect some examples and maybe make some corrections to better handle immutable jacobians before tagging a version.
Seems to work fine with
gmres!
andidrs!
. Other examples from other (?) packages are welcome as well.