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

    Return multidimensional Inverse Discrete Cosine Transform along the specified axes.

    Parameters
    ----------
    x : array_like
        The input array.
    type : {1, 2, 3, 4}, optional
        Type of the DCT (see Notes). Default type is 2.
    s : int or array_like of ints or None, optional
        The shape of the result.  If both `s` and `axes` (see below) are
        None, `s` is ``x.shape``; if `s` is None but `axes` is
        not None, then `s` is ``numpy.take(x.shape, axes, axis=0)``.
        If ``s[i] > x.shape[i]``, the ith dimension of the input is padded with zeros.
        If ``s[i] < x.shape[i]``, the ith dimension of the input is truncated to length
        ``s[i]``.
        If any element of `s` is -1, the size of the corresponding dimension of
        `x` is used.
    axes : int or array_like of ints or None, optional
        Axes over which the IDCT is computed. If not given, the last ``len(s)``
        axes are used, or all axes if `s` is also not specified.
    norm : {"backward", "ortho", "forward"}, optional
        Normalization mode (see Notes). Default is "backward".
    overwrite_x : bool, optional
        If True, the contents of `x` can be destroyed; the default is False.
    workers : int, optional
        Maximum number of workers to use for parallel computation. If negative,
        the value wraps around from ``os.cpu_count()``.
        See :func:`~scipy.fft.fft` for more details.
    orthogonalize : bool, optional
        Whether to use the orthogonalized IDCT variant (see Notes).
        Defaults to ``True`` when ``norm="ortho"`` and ``False`` otherwise.

        .. versionadded:: 1.8.0

    Returns
    -------
    y : ndarray of real
        The transformed input array.

    See Also
    --------
    dctn : multidimensional DCT

    Notes
    -----
    For full details of the IDCT types and normalization modes, as well as
    references, see `idct`.

    Examples
    --------
    >>> import numpy as np
    >>> from scipy.fft import dctn, idctn
    >>> rng = np.random.default_rng()
    >>> y = rng.standard_normal((16, 16))
    >>> np.allclose(y, idctn(dctn(y)))
    True

    
=== parse numpydoc
short_description: 'Return multidimensional Inverse Discrete Cosine Transform along the specified axes.'
blank_after_short_description: True
blank_after_long_description: False
style: numpydoc
- DocstringParam
  description: 'The input array.'
  kind: param
  key: 'param'
  arg_name: 'x'
  type_name: 'array_like'
  is_optional: False
- DocstringParam
  description: 'Type of the DCT (see Notes). Default type is 2.'
  kind: param
  key: 'param'
  arg_name: 'type'
  type_name: '{1, 2, 3, 4}'
  is_optional: True
  raw_type_name: '{1, 2, 3, 4}, optional'
- DocstringParam
  description: |
    The shape of the result.  If both `s` and `axes` (see below) are
    None, `s` is ``x.shape``; if `s` is None but `axes` is
    not None, then `s` is ``numpy.take(x.shape, axes, axis=0)``.
    If ``s[i] > x.shape[i]``, the ith dimension of the input is padded with zeros.
    If ``s[i] < x.shape[i]``, the ith dimension of the input is truncated to length
    ``s[i]``.
    If any element of `s` is -1, the size of the corresponding dimension of
    `x` is used.
  kind: param
  key: 'param'
  arg_name: 's'
  type_name: 'int or array_like of ints or None'
  is_optional: True
  raw_type_name: 'int or array_like of ints or None, optional'
- DocstringParam
  description: |
    Axes over which the IDCT is computed. If not given, the last ``len(s)``
    axes are used, or all axes if `s` is also not specified.
  kind: param
  key: 'param'
  arg_name: 'axes'
  type_name: 'int or array_like of ints or None'
  is_optional: True
  raw_type_name: 'int or array_like of ints or None, optional'
- DocstringParam
  description: 'Normalization mode (see Notes). Default is "backward".'
  kind: param
  key: 'param'
  arg_name: 'norm'
  type_name: '{"backward", "ortho", "forward"}'
  is_optional: True
  default: '"backward"'
  raw_type_name: '{"backward", "ortho", "forward"}, optional'
- DocstringParam
  description: 'If True, the contents of `x` can be destroyed; the default is False.'
  kind: param
  key: 'param'
  arg_name: 'overwrite_x'
  type_name: 'bool'
  is_optional: True
  default: 'False'
  raw_type_name: 'bool, optional'
- DocstringParam
  description: |
    Maximum number of workers to use for parallel computation. If negative,
    the value wraps around from ``os.cpu_count()``.
    See :func:`~scipy.fft.fft` for more details.
  kind: param
  key: 'param'
  arg_name: 'workers'
  type_name: 'int'
  is_optional: True
  raw_type_name: 'int, optional'
- DocstringParam
  description: |
    Whether to use the orthogonalized IDCT variant (see Notes).
    Defaults to ``True`` when ``norm="ortho"`` and ``False`` otherwise.
    
    .. versionadded:: 1.8.0
  kind: param
  key: 'param'
  arg_name: 'orthogonalize'
  type_name: 'bool'
  is_optional: True
  default: 'True'
  raw_type_name: 'bool, optional'
- DocstringReturns
  description: 'The transformed input array.'
  kind: returns
  key: 'returns'
  type_name: 'ndarray of real'
  is_generator: False
  return_name: 'y'
- DocstringMeta
  description: 'dctn : multidimensional DCT'
  kind: text
  key: 'see_also'
  title: 'See Also'
- DocstringMeta
  description: |
    For full details of the IDCT types and normalization modes, as well as
    references, see `idct`.
  kind: text
  key: 'notes'
  title: 'Notes'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> import numpy as np'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> from scipy.fft import dctn, idctn'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> rng = np.random.default_rng()'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> y = rng.standard_normal((16, 16))'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> np.allclose(y, idctn(dctn(y)))
    True
=== detect
numpydoc
=== compose numpydoc
Return multidimensional Inverse Discrete Cosine Transform along the specified axes.

Parameters
----------
x : array_like
    The input array.
type : {1, 2, 3, 4}, optional
    Type of the DCT (see Notes). Default type is 2.
s : int or array_like of ints or None, optional
    The shape of the result.  If both `s` and `axes` (see below) are
    None, `s` is ``x.shape``; if `s` is None but `axes` is
    not None, then `s` is ``numpy.take(x.shape, axes, axis=0)``.
    If ``s[i] > x.shape[i]``, the ith dimension of the input is padded with zeros.
    If ``s[i] < x.shape[i]``, the ith dimension of the input is truncated to length
    ``s[i]``.
    If any element of `s` is -1, the size of the corresponding dimension of
    `x` is used.
axes : int or array_like of ints or None, optional
    Axes over which the IDCT is computed. If not given, the last ``len(s)``
    axes are used, or all axes if `s` is also not specified.
norm : {"backward", "ortho", "forward"}, optional
    Normalization mode (see Notes). Default is "backward".
overwrite_x : bool, optional
    If True, the contents of `x` can be destroyed; the default is False.
workers : int, optional
    Maximum number of workers to use for parallel computation. If negative,
    the value wraps around from ``os.cpu_count()``.
    See :func:`~scipy.fft.fft` for more details.
orthogonalize : bool, optional
    Whether to use the orthogonalized IDCT variant (see Notes).
    Defaults to ``True`` when ``norm="ortho"`` and ``False`` otherwise.

    .. versionadded:: 1.8.0

Returns
-------
y : ndarray of real
    The transformed input array.

See Also
--------
dctn : multidimensional DCT

Notes
-----
For full details of the IDCT types and normalization modes, as well as
references, see `idct`.

Examples
--------
>>> import numpy as np
>>> from scipy.fft import dctn, idctn
>>> rng = np.random.default_rng()
>>> y = rng.standard_normal((16, 16))
>>> np.allclose(y, idctn(dctn(y)))
True
