Closed jvansanten closed 6 days ago
That's cool. Could that also be used in the StandardMatrixLLH
?
Quick answer is yes. For StandardMatrixLLH
there is no gamma dependence of the signal spatial, so it corresponds to the first if statement in the StdMatrixKDEEnabledLLH
where the SoB and weighting are decoupled
Multiplying a CSR matrix row-wise and then summing over rows is ~40x faster than masked assignments to a LIL matrix followed by a row-wise sum for 100 sources. For 1000 sources, the speedup is ~200x; for 10000, ~1900x (800 ms per gamma point vs 27 minutes). Who knew?