summaryrefslogtreecommitdiff
path: root/dev-python/pyamg/files
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
commita3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch)
tree0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-python/pyamg/files
parentbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff)
downloadbaldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip
Adding metadata
Diffstat (limited to 'dev-python/pyamg/files')
-rw-r--r--dev-python/pyamg/files/pyamg-5.3.0-backport.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/dev-python/pyamg/files/pyamg-5.3.0-backport.patch b/dev-python/pyamg/files/pyamg-5.3.0-backport.patch
deleted file mode 100644
index b69bc3e2730b..000000000000
--- a/dev-python/pyamg/files/pyamg-5.3.0-backport.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 9f8299bcf1141e627503c3f208eda413bc1e28e6 Mon Sep 17 00:00:00 2001
-From: Stephen Huan <stephen.huan@cgdct.moe>
-Date: Tue, 24 Mar 2026 21:47:30 -0400
-Subject: [PATCH] fix(util/utils): duplicate zeros in filter_operator
-
-The explicit zeros added to A to match C's nonzeros can be redundant
-with the existing entries in A. These duplicate entries are acted on
-independently by amg_core.satisfy_constraints_helper, causing the
-update to effectively happen multiple times when duplicate entries in
-sparse arrays are added together according to scipy's semantics.
----
- pyamg/util/utils.py | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/pyamg/util/utils.py b/pyamg/util/utils.py
-index 69ed1507..4a955253 100644
---- a/pyamg/util/utils.py
-+++ b/pyamg/util/utils.py
-@@ -1242,7 +1242,7 @@ def filter_operator(A, C, B, Bf, BtBinv=None):
- C = C.copy()
- C.data[:] = 1
- A = A.multiply(C)
-- # add explicit zeros to A wherever C is nonzero, but A is zero
-+ # add explicit zeros to A wherever C is nonzero
- A = A.tocoo()
- C = C.tocoo()
- A.data = np.hstack((np.zeros(C.data.shape, dtype=A.dtype), A.data))
-@@ -1252,6 +1252,8 @@ def filter_operator(A, C, B, Bf, BtBinv=None):
- A = A.tobsr((rows_per_block, cols_per_block))
- else:
- A = A.tocsr()
-+ # eliminate redundant zeros created by the above
-+ A.sum_duplicates()
-
- # Calculate difference between A @ B and Bf
- diff = A @ B - Bf