Skip to content

Commit

Permalink
saner default
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLapous committed Oct 7, 2024
1 parent c859167 commit 2fa9839
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmarks/stuff.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def fill_timing(arg, f):
s = mp.Slicer(st, vineyard=(vine == "vine"), dtype=dtype, column_type=col).minpres(
degree=degree
)
box = mpg.compute_bounding_box(s)
box = mpg.compute_bounding_box(s).T
s.minpres_degree = -1 ## makes it non-minpres again
if inv == "mma":
if vine == "vine":
Expand Down
8 changes: 7 additions & 1 deletion multipers/grids.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,13 @@ def _todo_partition(some_float[:] data,int resolution, bool unique):


def compute_bounding_box(stuff):
return np.array(compute_grid(stuff,strategy="regular",resolution=2))
r"""
Returns a array of shape (2, num_parameters)
such that for any filtration value $y$ of something in stuff,
then if (x,z) is the output of this function, we have
$x\le y \le z$.
"""
return np.array(compute_grid(stuff,strategy="regular",resolution=2)).T

def push_to_grid(some_float[:,:] points, grid, bool return_coordinate=False):
"""
Expand Down

0 comments on commit 2fa9839

Please sign in to comment.