BaseSurface
Surface base class which can be subclassed for relevant cases
__init__(self, data, dimension):
LLM Docstring
Store the core surface data and its dimension.
data:Anythe surface’s backing data (interpreted by the subclass)
dimension:int | Nonethe dimensionality of the surface’s input space
evaluate(self, points, **kwargs):
Evaluates the function at the points based off of “data”
points:Any:returns:_
check_dimension(self, gridpoints, target=None, raise_exception=True):
LLM Docstring
Check that a set of grid points matches the surface’s expected dimension, optionally raising on a mismatch.
gridpoints:np.ndarraythe points to check
target:int | Nonethe expected dimension (defaults to the surface’s)
raise_exception:boolraise (rather than return
False) on a mismatch:returns:boolwhether the dimension matches
__call__(self, gridpoints, **kwargs):
gridpoints:np.ndarraykwargs:Any:returns:_