Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMG support? #113

Open
MRiabov opened this issue Nov 14, 2024 · 1 comment
Open

AMG support? #113

MRiabov opened this issue Nov 14, 2024 · 1 comment
Labels
feature New feature

Comments

@MRiabov
Copy link

MRiabov commented Nov 14, 2024

Hello Lineax,
I'm currently developing a multiphysics, multibody solver - kind of like Project Chrono on Jax.

The absolute best solver type on the market would be algebraic multigrid (AMG), and wow should it go with jax.jit and vmap well. It doesn't have an open-source Jax implementation yet, however.

Would it be possible that you implement AMG in some observable future?

Cheers.

@patrick-kidger
Copy link
Owner

See also the recent discussion around AMG here: #8

Unfortunately I think it's unlikely we'll have an implementation, available by default, in Lineax in the near future. I'm cautious about adding new solvers as they can easily become difficult to maintain.

That said, it should be essentially straightforward for you to use this with Lineax: subclass lineax.AbstractLinearSolver and implement the relevant abstract methods with your chosen implementation of AMG. This will then be compatible with all of Lineax, and all of its usage in downstream libraries (Optimistix, Diffrax, ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants