original_docstring: Compute a Prewitt filter along the given axis.
  
      Args:
          input (cupy.ndarray): The input array.
          axis (int): The axis of input along which to calculate. Default is -1.
          output (cupy.ndarray, dtype or None): The array in which to place the
              output. Default is is same dtype as the input.
          mode (str): The array borders are handled according to the given mode
              (``'reflect'``, ``'constant'``, ``'nearest'``, ``'mirror'``,
              ``'wrap'``). Default is ``'reflect'``.
          cval (scalar): Value to fill past edges of input if mode is
              ``'constant'``. Default is ``0.0``.
  
      Returns:
          cupy.ndarray: The result of the filtering.
  
      .. seealso:: :func:`scipy.ndimage.prewitt`
  
      .. note::
          When the output data type is integral (or when no output is provided
          and input is integral) the results may not perfectly match the results
          from SciPy due to floating-point rounding of intermediate results.
      
docstring: Compute a Prewitt filter along the given axis.
docstring_tokens: Compute a Prewitt filter along the given axis .
code: def prewitt(input, axis=-1, output=None, mode="reflect", cval=0.0):
      """Compute a Prewitt filter along the given axis.
  
      Args:
          input (cupy.ndarray): The input array.
          axis (int): The axis of input along which to calculate. Default is -1.
          output (cupy.ndarray, dtype or None): The array in which to place the
              output. Default is is same dtype as the input.
          mode (str): The array borders are handled according to the given mode
              (``'reflect'``, ``'constant'``, ``'nearest'``, ``'mirror'``,
              ``'wrap'``). Default is ``'reflect'``.
          cval (scalar): Value to fill past edges of input if mode is
              ``'constant'``. Default is ``0.0``.
  
      Returns:
          cupy.ndarray: The result of the filtering.
  
      .. seealso:: :func:`scipy.ndimage.prewitt`
  
      .. note::
          When the output data type is integral (or when no output is provided
          and input is integral) the results may not perfectly match the results
          from SciPy due to floating-point rounding of intermediate results.
      """
      return _prewitt_or_sobel(input, axis, output, mode, cval, cupy.ones(3))
code_tokens: def prewitt ( input , axis = - 1 , output = None , mode = "reflect" , cval = 0.0 ) : return _prewitt_or_sobel ( input , axis , output , mode , cval , cupy . ones ( 3 ) )
short_docstring: Compute a Prewitt filter along the given axis.
short_docstring_tokens: Compute a Prewitt filter along the given axis .
comment: """Compute a Prewitt filter along the given axis.
  
      Args:
          input (cupy.ndarray): The input array.
          axis (int): The axis of input along which to calculate. Default is -1.
          output (cupy.ndarray, dtype or None): The array in which to place the
              output. Default is is same dtype as the input.
          mode (str): The array borders are handled according to the given mode
              (``'reflect'``, ``'constant'``, ``'nearest'``, ``'mirror'``,
              ``'wrap'``). Default is ``'reflect'``.
          cval (scalar): Value to fill past edges of input if mode is
              ``'constant'``. Default is ``0.0``.
  
      Returns:
          cupy.ndarray: The result of the filtering.
  
      .. seealso:: :func:`scipy.ndimage.prewitt`
  
      .. note::
          When the output data type is integral (or when no output is provided
          and input is integral) the results may not perfectly match the results
          from SciPy due to floating-point rounding of intermediate results.
      """