willwerscheid / flashier

A faster and angrier package for EBMF.
https://willwerscheid.github.io/flashier/
Other
10 stars 12 forks source link

Avoid multiple computation of sum(Y^2) #118

Closed YushaLiu closed 7 months ago

YushaLiu commented 7 months ago

sum(Y^2) gets recomputed every time flash_update_data() is called. This is wasteful when only the diagonal changes. Add an argument to flash_update_data to prevent this, say Y2_diff.

willwerscheid commented 7 months ago

this has now been implemented