Skip to content

Commit 514917f

Browse files
authored
Merge pull request #765 from martinfleis/lag-compat
ENH: ensure lag_spatial is compatible with both W and Graph
2 parents bef1e81 + 4b9970d commit 514917f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpysal/weights/spatial_lag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def lag_spatial(w, y):
8585
[6. , 2. ],
8686
[6. , 2. ]])
8787
"""
88-
return w.sparse * y
88+
return w.sparse @ y
8989

9090

9191
def lag_categorical(w, y, ties="tryself"):

0 commit comments

Comments
 (0)