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

Add MaskedLinearOperator #69

Merged
merged 5 commits into from
Jul 6, 2023

Conversation

Turakar
Copy link
Contributor

@Turakar Turakar commented Jun 7, 2023

For cornellius-gp/gpytorch#2288

This PR adds a new MaskedLinearOperator (documented, tested, linted), that supports wrapping a base LinearOperator using two boolean masks, one for the rows and one for the columns.

I also changed LinearOperator.type() to only work on floating-point types and ignore integral arguments, to avoid workarounds like they were present in InterpolatedLinearOperator.

@Turakar Turakar marked this pull request as draft June 7, 2023 13:03
@Turakar Turakar marked this pull request as ready for review June 7, 2023 16:28
@gpleiss gpleiss merged commit 4e4ec54 into cornellius-gp:main Jul 6, 2023
@Turakar Turakar deleted the masked_linear_operator branch July 16, 2023 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants