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

SNP unphased and phased optimization #83

Closed JamesYang007 closed 3 months ago

JamesYang007 commented 3 months ago

They have more structure than just being sparse. The values are only 0,1,2, so we could just keep an array of size 3 and increment dot-product quantities corresponding to each value (nothing needs to be done when 0). Then multiply one time later like a[1] + 2 * a[2] as the full dot-product.