from .. import e, inf, nan, pi

from ._array_object import ndarray
from ._dtypes import float64

import numpy as np

e = ndarray._new(np.array(np.e, dtype=float64))
inf = ndarray._new(np.array(np.inf, dtype=float64))
nan = ndarray._new(np.array(np.nan, dtype=float64))
pi = ndarray._new(np.array(np.pi, dtype=float64))

Make the array API constants into dimension 0 arrays
Make the array API constants into dimension 0 arrays

The spec does not actually specify whether these should be dimension 0 arrays
or Python floats (which they are in NumPy). However, making them dimension 0
arrays is cleaner, and ensures they also have all the methods and attributes
that are implemented on the ndarray object.
