parameters: (x, deg)
return_statement: return np.rollaxis(v, 0, v.ndim)
docstring: Vandermonde matrix of given degree.
  
      Returns the Vandermonde matrix of degree `deg` and sample points `x`.
      This isn't a true Vandermonde matrix because `x` can be an arbitrary
      ndarray and the Hermite polynomials aren't powers. If ``V`` is the
      returned matrix and `x` is a 2d array, then the elements of ``V`` are
      ``V[i,j,k] = P_k(x[i,j])``, where ``P_k`` is the Hermite polynomial
      of degree ``k``.
  
      Parameters
      ----------
      x : array_like
          Array of points. The values are converted to double or complex
          doubles. If x is scalar it is converted to a 1D array.
      deg : integer
          Degree of the resulting matrix.
  
      Returns
      -------
      vander : Vandermonde matrix.
          The shape of the returned matrix is ``x.shape + (deg+1,)``. The last
          index is the degree.
  
      Examples
      --------
      >>> from numpy.polynomial.hermite_e import hermevander
      >>> x = np.array([-1, 0, 1])
      >>> hermevander(x, 3)
      array([[ 1., -1.,  0.,  2.],
             [ 1.,  0., -1., -0.],
             [ 1.,  1.,  0., -2.]])
docstring_summary: Vandermonde matrix of given degree.
docstring_tokens: Vandermonde matrix of given degree .
function: def hermevander(x, deg) :
      """Vandermonde matrix of given degree.
  
      Returns the Vandermonde matrix of degree `deg` and sample points `x`.
      This isn't a true Vandermonde matrix because `x` can be an arbitrary
      ndarray and the Hermite polynomials aren't powers. If ``V`` is the
      returned matrix and `x` is a 2d array, then the elements of ``V`` are
      ``V[i,j,k] = P_k(x[i,j])``, where ``P_k`` is the Hermite polynomial
      of degree ``k``.
  
      Parameters
      ----------
      x : array_like
          Array of points. The values are converted to double or complex
          doubles. If x is scalar it is converted to a 1D array.
      deg : integer
          Degree of the resulting matrix.
  
      Returns
      -------
      vander : Vandermonde matrix.
          The shape of the returned matrix is ``x.shape + (deg+1,)``. The last
          index is the degree.
  
      Examples
      --------
      >>> from numpy.polynomial.hermite_e import hermevander
      >>> x = np.array([-1, 0, 1])
      >>> hermevander(x, 3)
      array([[ 1., -1.,  0.,  2.],
             [ 1.,  0., -1., -0.],
             [ 1.,  1.,  0., -2.]])
  
      """
      ideg = int(deg)
      if ideg != deg:
          raise ValueError("deg must be integer")
      if ideg < 0:
          raise ValueError("deg must be non-negative")
  
      x = np.array(x, copy=0, ndmin=1) + 0.0
      v = np.empty((ideg + 1,) + x.shape, dtype=x.dtype)
      v[0] = x*0 + 1
      if ideg > 0 :
          v[1] = x
          for i in range(2, ideg + 1) :
              v[i] = (v[i-1]*x - v[i-2]*(i - 1))
      return np.rollaxis(v, 0, v.ndim)
function_tokens: def hermevander ( x , deg ) : ideg = int ( deg ) if ideg != deg : raise ValueError ( "deg must be integer" ) if ideg < 0 : raise ValueError ( "deg must be non-negative" ) x = np . array ( x , copy = 0 , ndmin = 1 ) + 0.0 v = np . empty ( ( ideg + 1 , ) + x . shape , dtype = x . dtype ) v [ 0 ] = x * 0 + 1 if ideg > 0 : v [ 1 ] = x for i in range ( 2 , ideg + 1 ) : v [ i ] = ( v [ i - 1 ] * x - v [ i - 2 ] * ( i - 1 ) ) return np . rollaxis ( v , 0 , v . ndim )