def __array_wrap__(self, array):
        """Return a new tensor wrapping the ``array``.

        Parameters
        ----------
        array : `numpy.ndarray`
            Array to be wrapped.

        Returns
        -------
        wrapper : `Tensor`
            Tensor wrapping ``array``.
        """
        if array.ndim == 0:
            return self.space.field.element(array)
        else:
            return self.space.element(array)
def __array_wrap__ ( self , array ) : if array . ndim == 0 : return self . space . field . element ( array ) else : return self . space . element ( array )
Return a new tensor wrapping the ``array``.

        Parameters
        ----------
        array : `numpy.ndarray`
            Array to be wrapped.

        Returns
        -------
        wrapper : `Tensor`
            Tensor wrapping ``array``.