Memory efficient inverse noise covariance operators for litebird_sim#13
Merged
anand-avinash merged 9 commits intomainfrom Sep 5, 2025
Merged
Memory efficient inverse noise covariance operators for litebird_sim#13anand-avinash merged 9 commits intomainfrom
anand-avinash merged 9 commits intomainfrom
Conversation
…nted similarly to scipy.sparse.linalg.cg(), it causes the stopping criteria to become dynamic, depending on the norm of vector b. This change simplifies the convergence behavior
…cept a dict mapping block size to the noise property as block_input. This enables using a single instance of noise operator multiple times in the block list by reference if the block size and noise properties are same. This saves the memory a lot
… covariance blocks by reference
…rse covariance blocks by reference
…se covariance blocks by reference
…cg converges for inverse Toeplitz covariance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR refactors the definition of inverse noise covariance operators in
litebird_simfor cases where the noise properties are identical across all observations and detectors.Previously, the implementation constructed a separate inverse covariance operator for each stationary chunk, storing the noise properties (power spectrum/covariance) independently for every chunk. With this update, if the noise properties are the same across stationary intervals, only one inverse covariance operator is constructed for each chunk size, and it is reused for all chunks of the same size.
The new implementation lowers the memory footprint significantly and allows faster initialization of the inverse noise covariance operator.