Skip to content

LSMR init overflow #175

@GJBoth

Description

@GJBoth

Thanks for implementing the LSMR solver - I've been using it for matrix-free Levenberg-Marquardt and it seems to work really well! There's one issue with the initialisation however - one of the initial values gets initialised as 1e100 leading to overflows.. The origin of this value seems to be the scipy implementation, which runs in 64bit by default - but Jax runs in 32. It doesn't seem to affect the result of the solver, though.

Simply changing this line to:

minrbar=jnp.inf

solves the issue for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions