glass-dev / glass

Generator for Large Scale Structure
https://glass.readthedocs.io
MIT License
31 stars 7 forks source link

least-squares partition() can return negative densities #140

Closed ntessore closed 10 months ago

ntessore commented 10 months ago

Since partition() is a general-purpose function, using its least-squares solver on non-negative distributions can return negative contributions for individual shells.

To prevent this from happening, it would be good to add a new non-negative least-squares solver.