Skip to content

Commit

Permalink
Merge pull request pysal#765 from martinfleis/lag-compat
Browse files Browse the repository at this point in the history
ENH: ensure lag_spatial is compatible with both W and Graph
  • Loading branch information
knaaptime authored Aug 29, 2024
2 parents bef1e81 + 4b9970d commit 514917f
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 514917f

Please sign in to comment.