We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10e5e44 commit 7e67cc1Copy full SHA for 7e67cc1
1 file changed
src/squidpy/gr/_build.py
@@ -457,7 +457,9 @@ def _transform_a_spectral(a: spmatrix) -> spmatrix:
457
return a
458
459
degrees = np.squeeze(np.array(np.sqrt(1.0 / a.sum(axis=0))))
460
- a = a.multiply(outer(a.indices, a.indptr, degrees))
+ o = outer(a.indices, a.indptr, degrees)
461
+ o = csr_matrix((o, a.indices, a.indptr))
462
+ a = a.multiply(o)
463
a.eliminate_zeros()
464
465
0 commit comments