JamesYang007 / adelie

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

`sp_btmul` change API? #92

Closed JamesYang007 closed 2 months ago

JamesYang007 commented 2 months ago

Pybind11 doesn't allow passing a map of sparse matrix. Simplest solution is to ask the user to pass in a map of outer, inner, and value vector. sp_btmul can take in Map. The exposed function takes in a wrapper function that constructs from outer, inner, value -> map.

JamesYang007 commented 2 months ago

Doesn't seem worth the effort to change the whole API for such small performance gains.