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

    Return the companion matrix of c.

    The companion matrix for power series cannot be made symmetric by
    scaling the basis, so this function differs from those for the
    orthogonal polynomials.

    Parameters
    ----------
    c : array_like
        1-D array of polynomial coefficients ordered from low to high
        degree.

    Returns
    -------
    mat : ndarray
        Companion matrix of dimensions (deg, deg).

    Examples
    --------
    >>> from numpy.polynomial import polynomial as P
    >>> c = (1, 2, 3)
    >>> P.polycompanion(c)
    array([[ 0.        , -0.33333333],
           [ 1.        , -0.66666667]])

    
=== parse numpydoc
short_description: 'Return the companion matrix of c.'
long_description: |
  The companion matrix for power series cannot be made symmetric by
  scaling the basis, so this function differs from those for the
  orthogonal polynomials.
blank_after_short_description: True
blank_after_long_description: True
style: numpydoc
- DocstringParam
  description: |
    1-D array of polynomial coefficients ordered from low to high
    degree.
  kind: param
  key: 'param'
  arg_name: 'c'
  type_name: 'array_like'
  is_optional: False
- DocstringReturns
  description: 'Companion matrix of dimensions (deg, deg).'
  kind: returns
  key: 'returns'
  type_name: 'ndarray'
  is_generator: False
  return_name: 'mat'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> from numpy.polynomial import polynomial as P'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> c = (1, 2, 3)'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> P.polycompanion(c)
    array([[ 0.        , -0.33333333],
           [ 1.        , -0.66666667]])
=== detect
numpydoc
=== compose numpydoc
Return the companion matrix of c.

The companion matrix for power series cannot be made symmetric by
scaling the basis, so this function differs from those for the
orthogonal polynomials.

Parameters
----------
c : array_like
    1-D array of polynomial coefficients ordered from low to high
    degree.

Returns
-------
mat : ndarray
    Companion matrix of dimensions (deg, deg).

Examples
--------
>>> from numpy.polynomial import polynomial as P
>>> c = (1, 2, 3)
>>> P.polycompanion(c)
array([[ 0.        , -0.33333333],
       [ 1.        , -0.66666667]])
