From 950147c7bfbf3eaffbf11dff052c805b78c7554b Mon Sep 17 00:00:00 2001 From: Daniel Pozsar Date: Fri, 8 Nov 2024 14:30:14 +0100 Subject: [PATCH] added onsite projection slicing --- src/grogu_magn/core.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/grogu_magn/core.py b/src/grogu_magn/core.py index 8e3ab4e..23e4dcd 100644 --- a/src/grogu_magn/core.py +++ b/src/grogu_magn/core.py @@ -275,17 +275,3 @@ def onsite_projection(matrix, idx1, idx2): """ return matrix[..., idx1, :][..., idx2] - - -def onsite_projection(matrix, idx): - """_summary_ - - Args: - matrix (_type_): _description_ - idx (_type_): _description_ - - Returns: - _type_: _description_ - """ - - return matrix[..., idx, :][..., idx]