utils.solver.validate_monotonic_grid

utils.solver.validate_monotonic_grid(values, name='grid')

Validate a strictly increasing 1-D coordinate array.

Parameters

values : array - like

Coordinate values to validate.

name : str = 'grid'

Label used in error messages. Default 'grid'.

Returns

arr : ndarray

Validated, flattened float array.

Raises

: ValueError

If the array has fewer than 2 points or is not strictly increasing.