tensor4all/QuanticsGrids.jl

`grid_max` should return the last grid point rather than the upper bound of the interval for `includeendpoint=false`

Opened this issue · 2 comments

If includeendpoint=false, grid_max should return the last point of the grid, rather than the supremum.

We could introduce grid_supremum returning b for $[a, b)$.

I got my head around this point. supremum is mathematically correct, but sounds unfamiliar. How about the following.

  • Rename the attributes of DiscretizedGrid as grid_max -> upper_bound and grid_min to lower_bound.
  • grid_max function returns the last grid point.
  • We introduce upper_bound and lower_bound functions.