Skip to content

Commit 7e67cc1

Browse files
committed
fix
1 parent 10e5e44 commit 7e67cc1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/squidpy/gr/_build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,9 @@ def _transform_a_spectral(a: spmatrix) -> spmatrix:
457457
return a
458458

459459
degrees = np.squeeze(np.array(np.sqrt(1.0 / a.sum(axis=0))))
460-
a = a.multiply(outer(a.indices, a.indptr, degrees))
460+
o = outer(a.indices, a.indptr, degrees)
461+
o = csr_matrix((o, a.indices, a.indptr))
462+
a = a.multiply(o)
461463
a.eliminate_zeros()
462464

463465
return a

0 commit comments

Comments
 (0)