as_numpy_scalar

probnum.utils.as_numpy_scalar(x, dtype=None)[source]

Convert a scalar into a scalar NumPy array.

Parameters:
Raises:

ValueError – If x can not be interpreted as a scalar.

Return type:

ndarray