From 4b9970ddcb0f3433830ae248db67c63095c2f2a4 Mon Sep 17 00:00:00 2001 From: Martin Fleischmann Date: Thu, 29 Aug 2024 10:56:04 +0200 Subject: [PATCH] ENH: ensure lag_spatial is compatible with both W and Graph --- libpysal/weights/spatial_lag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpysal/weights/spatial_lag.py b/libpysal/weights/spatial_lag.py index 7528f6f4f..e41bfc5b6 100644 --- a/libpysal/weights/spatial_lag.py +++ b/libpysal/weights/spatial_lag.py @@ -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"):