JamesYang007 / adelie

A fast and flexible Python package for solving group lasso and elastic net problems.
https://jamesyang007.github.io/adelie/
MIT License
16 stars 1 forks source link

Copy user inputs everywhere in the codebase #94

Closed JamesYang007 closed 4 months ago

JamesYang007 commented 4 months ago

It's not a good idea to keep a reference of user inputs when constructing any object (e.g. matrix, state, etc.). C++ code should still reference as much as it can. Python wrappers just need some amending to make sure user inputs are copied and a reference is kept.