parameters: (a, dtype=None, bohrium=None)
return_statement: return b
docstring: Return an array of ones with the same shape and type as a given array.
  
      With default parameters, is equivalent to ``a.copy().fill(1)``.
  
      Parameters
      ----------
      a : array_like
          The shape and data-type of `a` define these same attributes of
          the returned array.
      dtype : data-type, optional
          Overrides the data type of the result.
      bohrium : boolean, optional
          Determines whether it is a Bohrium-enabled array or a regular NumPy array
  
      Returns
      -------
      out : ndarray
          Array of zeros with the same shape and type as `a`.
  
      See Also
      --------
      zeros_like : Return an array of zeros with shape and type of input.
      empty_like : Return an empty array with shape and type of input.
      zeros : Return a new array setting values to zero.
      ones : Return a new array setting values to one.
      empty : Return a new uninitialized array.
  
      Notes
      -----
      The order of the data in memory is always row-major (C-style).
  
      Examples
      --------
      >>> x = np.arange(6)
      >>> x = x.reshape((2, 3))
      >>> x
      array([[0, 1, 2],
             [3, 4, 5]])
      >>> np.ones_like(x)
      array([[1, 1, 1],
             [1, 1, 1]])
  
      >>> y = np.arange(3, dtype=np.float)
      >>> y
      array([ 0.,  1.,  2.])
      >>> np.ones_like(y)
      array([ 1.,  1.,  1.])
docstring_summary: Return an array of ones with the same shape and type as a given array.
docstring_tokens: Return an array of ones with the same shape and type as a given array .
function: def ones_like(a, dtype=None, bohrium=None):
      """
      Return an array of ones with the same shape and type as a given array.
  
      With default parameters, is equivalent to ``a.copy().fill(1)``.
  
      Parameters
      ----------
      a : array_like
          The shape and data-type of `a` define these same attributes of
          the returned array.
      dtype : data-type, optional
          Overrides the data type of the result.
      bohrium : boolean, optional
          Determines whether it is a Bohrium-enabled array or a regular NumPy array
  
      Returns
      -------
      out : ndarray
          Array of zeros with the same shape and type as `a`.
  
      See Also
      --------
      zeros_like : Return an array of zeros with shape and type of input.
      empty_like : Return an empty array with shape and type of input.
      zeros : Return a new array setting values to zero.
      ones : Return a new array setting values to one.
      empty : Return a new uninitialized array.
  
      Notes
      -----
      The order of the data in memory is always row-major (C-style).
  
      Examples
      --------
      >>> x = np.arange(6)
      >>> x = x.reshape((2, 3))
      >>> x
      array([[0, 1, 2],
             [3, 4, 5]])
      >>> np.ones_like(x)
      array([[1, 1, 1],
             [1, 1, 1]])
  
      >>> y = np.arange(3, dtype=np.float)
      >>> y
      array([ 0.,  1.,  2.])
      >>> np.ones_like(y)
      array([ 1.,  1.,  1.])
  
      """
      if dtype is None:
          dtype = a.dtype
  
      if bohrium is None:
          bohrium = bhary.check(a)
  
      if bohrium and not dtype_support(dtype):
          _warn_dtype(dtype, 3)
          return numpy.ones_like(a, dtype=dtype)
  
      b = empty_like(a, dtype=dtype, bohrium=bohrium)
      b[...] = b.dtype.type(1)
  
      return b
function_tokens: def ones_like ( a , dtype = None , bohrium = None ) : if dtype is None : dtype = a . dtype if bohrium is None : bohrium = bhary . check ( a ) if bohrium and not dtype_support ( dtype ) : _warn_dtype ( dtype , 3 ) return numpy . ones_like ( a , dtype = dtype ) b = empty_like ( a , dtype = dtype , bohrium = bohrium ) b [ ... ] = b . dtype . type ( 1 ) return b