Skip to content

Commit

Permalink
increase default workspace
Browse files Browse the repository at this point in the history
This should be a parameter.
  • Loading branch information
lukeolson committed Apr 12, 2024
1 parent 09113ab commit c03b75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyamg/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def balanced_lloyd_cluster(G, centers, maxiter=5, rebalance_iters=5, tiebreaking

# create work arrays for C++
# empty() values are initialized in the kernel
maxsize = int(8*np.ceil((n / num_clusters)))
maxsize = int(12*np.ceil((n / num_clusters)))

d = np.full(n, np.inf, dtype=G.dtype) # distance to cluster center (inf)
m = np.full(n, -1, dtype=np.int32) # cluster membership or index (-1)
Expand Down

0 comments on commit c03b75c

Please sign in to comment.