{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {
    "Notes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Raises": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Yields": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Methods": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Returns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Parameters",
          "__tag": 4026,
          "children": [
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "A",
              "annotation": "(len(c), len(r)) ndarray",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "The Hankel matrix. Dtype is the same as "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "(c[0] + r[0]).dtype"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Construct a Hankel matrix."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Receives": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warnings": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Attributes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Parameters",
          "__tag": 4026,
          "children": [
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "c",
              "annotation": "array_like",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "First column of the matrix."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "DocParam",
              "__tag": 4016,
              "name": "r",
              "annotation": "array_like, optional",
              "desc": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Last row of the matrix. If None, "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "r = zeros_like(c)"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " is assumed. r[0] is ignored; the last row of the returned matrix is "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "[c[-1], r[1:]]"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "."
                    }
                  ]
                },
                {
                  "__type": "Admonition",
                  "__tag": 4056,
                  "kind": "warning",
                  "base_type": "warning",
                  "children": [
                    {
                      "__type": "AdmonitionTitle",
                      "__tag": 4055,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "warning "
                        }
                      ]
                    },
                    {
                      "__type": "Paragraph",
                      "__tag": 4045,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "Beginning in SciPy 1.19, multidimensional input will be treated as a batch, not "
                        },
                        {
                          "__type": "InlineCode",
                          "__tag": 4051,
                          "value": "ravel"
                        },
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "ed. To preserve the existing behavior, "
                        },
                        {
                          "__type": "InlineCode",
                          "__tag": 4051,
                          "value": "ravel"
                        },
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": " arguments before passing them to "
                        },
                        {
                          "__type": "CrossRef",
                          "__tag": 4002,
                          "value": "toeplitz",
                          "reference": {
                            "__type": "LocalRef",
                            "__tag": 4022,
                            "kind": "module",
                            "path": "scipy.linalg._special_matrices:toeplitz"
                          },
                          "kind": "module"
                        },
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "."
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Extended Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The Hankel matrix has constant anti-diagonals, with "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "c"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " as its first column and "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "r"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " as its last row. If the first element of "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "r"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " differs from the last element of "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "c"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", the first element of "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "r"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is replaced by the last element of "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "c"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " to ensure that anti-diagonals remain constant. If "
            },
            {
              "__type": "ParamRef",
              "__tag": 4071,
              "name": "r"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is not given, then "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "r = zeros_like(c)",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is assumed."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Other Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    }
  },
  "_ordered_sections": [
    "Summary",
    "Extended Summary",
    "Parameters",
    "Attributes",
    "Methods",
    "Returns",
    "Yields",
    "Receives",
    "Other Parameters",
    "Raises",
    "Warns",
    "Warnings",
    "Notes"
  ],
  "item_file": "/scipy/linalg/_special_matrices.py",
  "item_line": 158,
  "item_type": "function",
  "aliases": [
    "scipy.linalg.hankel"
  ],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [
      {
        "__type": "Code",
        "__tag": 4050,
        "value": "from scipy.linalg import hankel\nhankel([1, 17, 99])\nhankel([1,2,3,4], [4,7,7,8,9])\n",
        "execution_status": "success"
      }
    ],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [
    {
      "__type": "SeeAlsoItem",
      "__tag": 4028,
      "name": {
        "__type": "CrossRef",
        "__tag": 4002,
        "value": "circulant",
        "reference": {
          "__type": "LocalRef",
          "__tag": 4022,
          "kind": "module",
          "path": "scipy.linalg._special_matrices:circulant"
        },
        "kind": "module"
      },
      "descriptions": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "circulant matrix"
            }
          ]
        }
      ],
      "type": null
    },
    {
      "__type": "SeeAlsoItem",
      "__tag": 4028,
      "name": {
        "__type": "CrossRef",
        "__tag": 4002,
        "value": "toeplitz",
        "reference": {
          "__type": "LocalRef",
          "__tag": 4022,
          "kind": "module",
          "path": "scipy.linalg._special_matrices:toeplitz"
        },
        "kind": "module"
      },
      "descriptions": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Toeplitz matrix"
            }
          ]
        }
      ],
      "type": null
    }
  ],
  "signature": {
    "__type": "SignatureNode",
    "__tag": 4029,
    "kind": "function",
    "parameters": [
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "c",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": {
          "__type": "Empty",
          "__tag": 4031
        }
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "r",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": "None"
      }
    ],
    "return_annotation": {
      "__type": "Empty",
      "__tag": 4031
    },
    "target_name": "hankel"
  },
  "references": null,
  "qa": "scipy.linalg._special_matrices:hankel",
  "arbitrary": [],
  "local_refs": [
    "A",
    "c",
    "r"
  ]
}