Closed d-schindler closed 1 year ago
Implement new method that diagonalizes matrix first and builds for each t the matrix exponential. @michaelschaub has implemented this already, see e.g. Lines 67 and 90 here: https://github.com/michaelschaub/generalizedLouvain/blob/master/MATLAB/quality_functions/louvain_FNL.m
As pointed out in the code, we might be able to come up with better ways to compute matrix exponentials repeatedly: https://github.com/barahona-research-group/PyGenStability/blob/54f7358ec585fa8b18c26f3984f0107fa3351d58/src/pygenstability/constructors.py#L37