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

Useful features #20

Closed
thibmonsel opened this issue Jun 6, 2023 · 1 comment
Closed

Useful features #20

thibmonsel opened this issue Jun 6, 2023 · 1 comment
Labels
feature New feature

Comments

@thibmonsel
Copy link
Contributor

It could probably useful to have some diagonal and triangular block matrices operators lineax.DiagonalBlockMatricesLinearOperator and lineax.TriangularlBlockMatricesLinearOperator ?

@patrick-kidger patrick-kidger added the feature New feature label Jun 6, 2023
@patrick-kidger patrick-kidger mentioned this issue Jun 6, 2023
3 tasks
@patrick-kidger
Copy link
Owner

Our thinking on this front is to introduce a lineax.BlockLinearOperator, which you might call as e.g.

op1 = lineax.MatrixLinearOperator(...)
op2 = lineax.MatrixLinearOperator(...)
op = lineax.BlockLinearOperator([[op1, 0], [0, op2]])

which in the above case is diagonal. It uses nested linear operators to represent the nonzero parts and uses literal 0s to represent the zero parts of the overall operator.

Right now this is on the to-do list, see #4.

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