# numpy 2.5.4 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input

        Return a possibly reshaped matrix.

        Refer to `numpy.squeeze` for more documentation.

        Parameters
        ----------
        axis : None or int or tuple of ints, optional
            Selects a subset of the axes of length one in the shape.
            If an axis is selected with shape entry greater than one,
            an error is raised.

        Returns
        -------
        squeezed : matrix
            The matrix, but as a (1, N) matrix if it had shape (N, 1).

        See Also
        --------
        numpy.squeeze : related function

        Notes
        -----
        If `m` has a single column then that column is returned
        as the single row of a matrix.  Otherwise `m` is returned.
        The returned matrix is always either `m` itself or a view into `m`.
        Supplying an axis keyword argument will not affect the returned matrix
        but it may cause an error to be raised.

        Examples
        --------
        >>> c = np.matrix([[1], [2]])
        >>> c
        matrix([[1],
                [2]])
        >>> c.squeeze()
        matrix([[1, 2]])
        >>> r = c.T
        >>> r
        matrix([[1, 2]])
        >>> r.squeeze()
        matrix([[1, 2]])
        >>> m = np.matrix([[1, 2], [3, 4]])
        >>> m.squeeze()
        matrix([[1, 2],
                [3, 4]])

        
=== parse numpydoc
short_description: 'Return a possibly reshaped matrix.'
long_description: 'Refer to `numpy.squeeze` for more documentation.'
blank_after_short_description: True
blank_after_long_description: True
style: numpydoc
- DocstringParam
  description: |
    Selects a subset of the axes of length one in the shape.
    If an axis is selected with shape entry greater than one,
    an error is raised.
  kind: param
  key: 'param'
  arg_name: 'axis'
  type_name: 'None or int or tuple of ints'
  is_optional: True
  raw_type_name: 'None or int or tuple of ints, optional'
- DocstringReturns
  description: 'The matrix, but as a (1, N) matrix if it had shape (N, 1).'
  kind: returns
  key: 'returns'
  type_name: 'matrix'
  is_generator: False
  return_name: 'squeezed'
- DocstringMeta
  description: 'numpy.squeeze : related function'
  kind: text
  key: 'see_also'
  title: 'See Also'
- DocstringMeta
  description: |
    If `m` has a single column then that column is returned
    as the single row of a matrix.  Otherwise `m` is returned.
    The returned matrix is always either `m` itself or a view into `m`.
    Supplying an axis keyword argument will not affect the returned matrix
    but it may cause an error to be raised.
  kind: text
  key: 'notes'
  title: 'Notes'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> c = np.matrix([[1], [2]])'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> c
    matrix([[1],
            [2]])
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> c.squeeze()
    matrix([[1, 2]])
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> r = c.T'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> r
    matrix([[1, 2]])
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> r.squeeze()
    matrix([[1, 2]])
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> m = np.matrix([[1, 2], [3, 4]])'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> m.squeeze()
    matrix([[1, 2],
            [3, 4]])
=== detect
numpydoc
=== compose numpydoc
Return a possibly reshaped matrix.

Refer to `numpy.squeeze` for more documentation.

Parameters
----------
axis : None or int or tuple of ints, optional
    Selects a subset of the axes of length one in the shape.
    If an axis is selected with shape entry greater than one,
    an error is raised.

Returns
-------
squeezed : matrix
    The matrix, but as a (1, N) matrix if it had shape (N, 1).

See Also
--------
numpy.squeeze : related function

Notes
-----
If `m` has a single column then that column is returned
as the single row of a matrix.  Otherwise `m` is returned.
The returned matrix is always either `m` itself or a view into `m`.
Supplying an axis keyword argument will not affect the returned matrix
but it may cause an error to be raised.

Examples
--------
>>> c = np.matrix([[1], [2]])
>>> c
matrix([[1],
        [2]])
>>> c.squeeze()
matrix([[1, 2]])
>>> r = c.T
>>> r
matrix([[1, 2]])
>>> r.squeeze()
matrix([[1, 2]])
>>> m = np.matrix([[1, 2], [3, 4]])
>>> m.squeeze()
matrix([[1, 2],
        [3, 4]])
