Skip to content

LSMR init overflow, pt 2. #177

@GJBoth

Description

@GJBoth

If max_steps is not given to the LSMR solver (and I guess the other solvers too?), max steps gets initialised as:

if self.max_steps is None:
    max_steps = min_dim * 10  # for consistency with other iterative solvers

For large scale solving this results in an overflow - easily fixed by just setting a max_steps, but the error doesn't tell you where. I think adding an extra safety here so the int32 doesn't overflow would be helpful!

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