79142780

Date: 2024-10-30 21:06:39
Score: 1.5
Natty:
Report link

I know it is late; but I came across a similar issue. You could use the symmetry of the matrix, something like: from scipy.sparse.linalg import eigsh and eigsh(A, k=1, which='LM', return_eigenvectors=False). np.linalg.norm(A, ord=2) is painfully slow.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hugo d