class_docstr: Generalized function class.
  
  .. seealso:: :class:`numpy.vectorize`
docstr: Args:
      pyfunc (callable): The target python function.
      otypes (str or list of dtypes, optional): The output data type.
      doc (str or None): The docstring for the function.
      excluded: Currently not supported.
      cache: Currently Ignored.
      signature: Currently not supported.
code: def __init__(
      self,
      pyfunc,
      otypes=None,
      doc=None,
      excluded=None,
      cache=False,
      signature=None,
  ):
      """
      Args:
          pyfunc (callable): The target python function.
          otypes (str or list of dtypes, optional): The output data type.
          doc (str or None): The docstring for the function.
          excluded: Currently not supported.
          cache: Currently Ignored.
          signature: Currently not supported.
      """
  
      self.pyfunc = pyfunc
      self.__doc__ = doc or pyfunc.__doc__
      self.excluded = excluded
      self.cache = cache
      self.signature = signature
      self._kernel_cache = {}
  
      self.otypes = None
      if otypes is not None:
          self.otypes = "".join([numpy.dtype(t).char for t in otypes])
  
      if excluded is not None:
          raise NotImplementedError(
              "cupy.vectorize does not support `excluded` option currently."
          )
  
      if signature is not None:
          raise NotImplementedError(
              "cupy.vectorize does not support `signature`"
              " option currently."
          )
  
file_path: cupy/cupy/_functional/vectorize.py
imports: import numpy
  from cupy import _core
  from cupyx.jit import _interface
  from cupyx.jit import _cuda_types
label_desc: Use image node_id 1 to create a new vectorize object from inherited base classes: object with example: obj = vectorize(pyfunc, otypes, doc, excluded, cache, signature)