Skip to content

Commit

Permalink
ENH: ensure lag_spatial is compatible with both W and Graph
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis committed Aug 29, 2024
1 parent bef1e81 commit 4b9970d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpysal/weights/spatial_lag.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def lag_spatial(w, y):
[6. , 2. ],
[6. , 2. ]])
"""
return w.sparse * y
return w.sparse @ y


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

0 comments on commit 4b9970d

Please sign in to comment.