You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pasting in the original message from @Pseudomanifold Bastien Rieck in here. The idea is to modify the magnitude function computation to do this version as an option.
Sorry, don't know how to properly add to this request...but here's some code that calculates magnitude using a Cholesky decomposition.
The idea is that the similarity matrix $\zeta$ is positive definite (under nice conditions), so it affords a Cholesky decomposition, which factorises as $L L^T$ for $L$ a lower-triangular matrix. Magnitude can be written as $\textrm{Mag}(X) = \mathbb{1}^T \zeta^{-1} \mathbb{1}$, i.e. a quadratic form (since we are taking row sums). Thus, calculating magnitude is equivalent to calculating $x^T x$ with $x$ defined by $Lx = \mathbb{1}$.
(We have described this a little bit in Appendix B of a recent preprint)
Pasting in the original message from @Pseudomanifold Bastien Rieck in here. The idea is to modify the magnitude function computation to do this version as an option.
Sorry, don't know how to properly add to this request...but here's some code that calculates magnitude using a Cholesky decomposition.
The idea is that the similarity matrix$\zeta$ is positive definite (under nice conditions), so it affords a Cholesky decomposition, which factorises as $L L^T$ for $L$ a lower-triangular matrix. Magnitude can be written as $\textrm{Mag}(X) = \mathbb{1}^T \zeta^{-1} \mathbb{1}$ , i.e. a quadratic form (since we are taking row sums). Thus, calculating magnitude is equivalent to calculating $x^T x$ with $x$ defined by $Lx = \mathbb{1}$ .
(We have described this a little bit in Appendix B of a recent preprint)
Hope that helps!
Originally posted by @Pseudomanifold in #89 (comment)
The text was updated successfully, but these errors were encountered: