mfherbst / ReducedBasis.jl

Reduced basis methods for parametrised eigenproblems
https://mfherbst.github.io/ReducedBasis.jl/stable/
MIT License
14 stars 0 forks source link

Reduce memory consumption of `compress` #46

Closed pbrehmer closed 1 year ago

pbrehmer commented 1 year ago

Compressions of AffineDecompositions can suffer from sudden increases of memory usage since all observables (i.e. MPOs) are applied simultaneously. To fix this, the observables are applied one-by-one. To that end, overlap_matrix now has a method which takes a function as the first argument, which is applied to the second provided vector.

mfherbst commented 1 year ago

I think this is included in the previous merg.