star_update_by_edge¶
- paminco.linalg.star_update_by_edge(net, lstar, edge: int, delta_c: float)[source]¶
Update the Laplace pseudoinverse
lstar
when edge weight changes.\[\mathbf{L}^{\ast}_{t^{i+1}} = ( \mathbf{I}_n - \frac {\Delta c_e} {1 + \Delta c_e \gamma_e^T \mathbf{L}^{\ast}_{t^{i}} \gamma_e} \mathbf{L}^{\ast}_{t^{i}} \gamma_e \gamma_e^T ) \mathbf{L}^{\ast}_{t^{i}}\]- Parameters
- netNetwork
The network to which
lstar
belongs.- lstarndarray, scipy.sparse.spmatrix, or CholeskyInverse
The current lstar inverse.
- edgeint
The index of the edge.
- delta_cfloat
The amount of change in the edge weight.
- Returns
- ndarray or CholeskyInverse
The updated inverse.