{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {},
  "_ordered_sections": [],
  "item_file": null,
  "item_line": null,
  "item_type": null,
  "aliases": [],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": null,
  "references": null,
  "qa": "release:1.13.0-notes",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "This release supports Python 2.7 and 3.4 - 3.6."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "NumPy 1.13.0 Release Notes"
        }
      ],
      "level": 0,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Operations like "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "a + b + c"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " will reuse temporaries on some platforms,   resulting in less memory use and faster execution."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Inplace operations check if inputs overlap outputs and create temporaries   to avoid problems."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "New "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "__array_ufunc__"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " attribute provides improved ability for classes to   override default ufunc behavior."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "New "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.block"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " function for creating blocked arrays."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Highlights"
        }
      ],
      "level": 1,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "New "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.positive"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " ufunc."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "New "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.divmod"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " ufunc provides more efficient divmod."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "New "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.isnat"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " ufunc tests for NaT special values."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "New "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.heaviside"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " ufunc computes the Heaviside function."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "New "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.isin"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " function, improves on "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "in1d"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "New "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.block"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " function for creating blocked arrays."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "New "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "PyArray_MapIterArrayCopyIfOverlap"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " added to NumPy C-API."
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "See below for details."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "New functions"
        }
      ],
      "level": 1,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Calling "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.fix"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.isposinf"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", and "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.isneginf"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " with "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "f(x, y=out)"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "   is deprecated - the argument should be passed as "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "f(x, out=out)"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", which   matches other ufunc-like interfaces."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Use of the C-API "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "NPY_CHAR"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " type number deprecated since version 1.7 will   now raise deprecation warnings at runtime. Extensions built with older f2py   versions need to be recompiled to remove the warning."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.ma.argsort"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.ma.minimum.reduce"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", and "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.ma.maximum.reduce"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "   should be called with an explicit "
                    },
                    {
                      "__type": "InlineRole",
                      "__tag": 4003,
                      "value": "axis",
                      "domain": null,
                      "role": null,
                      "inventory": null
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " argument when applied to arrays with   more than 2 dimensions, as the default value of this argument ("
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "None"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ") is   inconsistent with the rest of numpy ("
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "-1"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "0"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", and "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "0"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", respectively)."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.ma.MaskedArray.mini"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " is deprecated, as it almost duplicates the   functionality of "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.MaskedArray.min"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ". Exactly equivalent behaviour   can be obtained with "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.ma.minimum.reduce"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "The single-argument form of "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.ma.minimum"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " and "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.ma.maximum"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " is   deprecated. "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.maximum"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ". "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.ma.minimum(x)"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " should now be spelt   "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.ma.minimum.reduce(x)"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", which is consistent with how this would be done   with "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.minimum"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Calling "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "ndarray.conjugate"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " on non-numeric dtypes is deprecated (it   should match the behavior of "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.conjugate"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", which throws an error)."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Calling "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "expand_dims"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " when the "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "axis"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " keyword does not satisfy   "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "-a.ndim - 1 <= axis <= a.ndim"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", where "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "a"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " is the array being reshaped,   is deprecated."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Deprecations"
        }
      ],
      "level": 1,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Assignment between structured arrays with different field names will change   in NumPy 1.14. Previously, fields in the dst would be set to the value of the   identically-named field in the src. In numpy 1.14 fields will instead be   assigned 'by position': The n-th field of the dst will be set to the n-th   field of the src array. Note that the "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "FutureWarning"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " raised in NumPy 1.12   incorrectly reported this change as scheduled for NumPy 1.13 rather than   NumPy 1.14."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Future Changes"
        }
      ],
      "level": 1,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "numpy.distutils"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " now automatically determines C-file dependencies with   GCC compatible compilers."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Build System Changes"
        }
      ],
      "level": 1,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Compatibility notes"
        }
      ],
      "level": 1,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "numpy.hstack()"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " now throws "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "ValueError"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " instead of "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "IndexError"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " when   input is empty."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Functions taking an axis argument, when that argument is out of range, now   throw "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.AxisError"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " instead of a mixture of "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "IndexError"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " and   "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "ValueError"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ". For backwards compatibility, "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "AxisError"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " subclasses both of   these."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Error type changes"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Support has been removed for certain obscure dtypes that were unintentionally allowed, of the form "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "(old_dtype, new_dtype)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", where either of the dtypes is or contains the "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "object"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " dtype. As an exception, dtypes of the form "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "(object, [('name', object)])"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " are still supported due to evidence of existing use."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Tuple object dtypes"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "See Changes section for more detail."
            }
          ]
        },
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "partition"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", TypeError when non-integer partition index is used."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "NpyIter_AdvancedNew"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", ValueError when "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "oa_ndim == 0"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " and "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "op_axes"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " is NULL"
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "negative(bool_)"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", TypeError when negative applied to booleans."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "subtract(bool_, bool_)"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", TypeError when subtracting boolean from boolean."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.equal, np.not_equal"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", object identity doesn't override failed comparison."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.equal, np.not_equal"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", object identity doesn't override non-boolean comparison."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Deprecated boolean indexing behavior dropped. See Changes below for details."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Deprecated "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.alterdot()"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " and "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.restoredot()"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " removed."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "DeprecationWarning to error"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "See Changes section for more detail."
            }
          ]
        },
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "numpy.average"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " preserves subclasses"
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "array == None"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " and "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "array != None"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " do element-wise comparison."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "np.equal, np.not_equal"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", object identity doesn't override comparison result."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "FutureWarning to changed behavior"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Previously "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "bool(dtype)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " would fall back to the default python implementation, which checked if "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "len(dtype) > 0"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". Since "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "dtype"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " objects implement "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "__len__"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " as the number of record fields, "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "bool"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " of scalar dtypes would evaluate to "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "False"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", which was unintuitive. Now "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "bool(dtype) == True"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " for all dtypes."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "dtypes are now always true"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "When subclassing np.ndarray in Python 2.7, it is no longer _necessary_ to implement "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "__*slice__"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " on the derived class, as "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "__*item__"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " will intercept these calls correctly."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Any code that did implement these will work exactly as before. Code that invokes "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "ndarray.__getslice__"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " (e.g. through "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "super(...).__getslice__"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ") will now issue a DeprecationWarning - "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": ".__getitem__(slice(start, end))"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " should be used instead."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "__getslice__"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " and "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "__setslice__"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " are no longer needed in "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "ndarray"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " subclasses"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "This behavior mirrors that of np.ndarray, and accounts for nested arrays in MaskedArrays of object dtype, and ellipsis combined with other forms of indexing."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Indexing MaskedArrays/Constants with "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "..."
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " (ellipsis) now returns MaskedArray"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "C API changes"
        }
      ],
      "level": 1,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "It is now allowed to remove a zero-sized axis from NpyIter. Which may mean that code removing axes from NpyIter has to add an additional check when accessing the removed dimensions later on."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The largest followup change is that gufuncs are now allowed to have zero-sized inner dimensions. This means that a gufunc now has to anticipate an empty inner dimension, while this was never possible and an error raised instead."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "For most gufuncs no change should be necessary. However, it is now possible for gufuncs with a signature such as "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "(..., N, M) -> (..., M)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " to return a valid result if "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "N=0"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " without further wrapping code."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "GUfuncs on empty arrays and NpyIter axis removal"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Similar to "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "PyArray_MapIterArray"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " but with an additional "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "copy_if_overlap"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " argument. If "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "copy_if_overlap != 0"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ",  checks if input has memory overlap with any of the other arrays and make copies as appropriate to avoid problems if the input is modified during the iteration. See the documentation for more complete documentation."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "PyArray_MapIterArrayCopyIfOverlap"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " added to NumPy C-API"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "New Features"
        }
      ],
      "level": 1,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "This is the renamed and redesigned "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "__numpy_ufunc__"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". Any class, ndarray subclass or not, can define this method or set it to "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "None"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " in order to override the behavior of NumPy's ufuncs. This works quite similarly to Python's "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "__mul__"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " and other binary operation routines. See the documentation for a more detailed description of the implementation and behavior of this new option. The API is provisional, we do not yet guarantee backward compatibility as modifications may be made pending feedback. See "
            },
            {
              "__type": "Link",
              "__tag": 4049,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "NEP 13"
                }
              ],
              "url": "http://www.numpy.org/neps/nep-0013-ufunc-overrides.html",
              "title": ""
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "  and "
            },
            {
              "__type": "CrossRef",
              "__tag": 4002,
              "value": "documentation",
              "reference": {
                "__type": "LocalRef",
                "__tag": 4022,
                "kind": "docs",
                "path": "release:1.13.0-notes"
              },
              "kind": "exists"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " for more details."
            }
          ]
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "NEP 13"
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "__array_ufunc__"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " added"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "This ufunc corresponds to unary "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "+",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", but unlike "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "+",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " on an ndarray it will raise an error if array values do not support numeric operations."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "New "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "positive"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " ufunc"
        }
      ],
      "level": 2,
      "target": "documentation"
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "This ufunc corresponds to the Python builtin "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "divmod",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", and is used to implement "
            },
            {
              "__type": "InlineRole",
              "__tag": 4003,
              "value": "divmod",
              "domain": null,
              "role": null,
              "inventory": null
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " when called on numpy arrays. "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.divmod(x, y)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " calculates a result equivalent to "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "(np.floor_divide(x, y), np.remainder(x, y))"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " but is approximately twice as fast as calling the functions separately."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "New "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "divmod"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " ufunc"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The new ufunc "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.isnat"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " finds the positions of special NaT values within datetime and timedelta arrays. This is analogous to "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.isnan"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "np.isnat"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " ufunc tests for NaT special datetime and timedelta values"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The new function "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.heaviside(x, h0)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " (a ufunc) computes the Heaviside function:"
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": "{ 0   if x < 0,",
          "execution_status": null
        },
        {
          "__type": "DefList",
          "__tag": 4033,
          "children": [
            {
              "__type": "DefListItem",
              "__tag": 4037,
              "dt": {
                "__type": "Paragraph",
                "__tag": 4045,
                "children": [
                  {
                    "__type": "Text",
                    "__tag": 4046,
                    "value": "heaviside(x, h0) = { h0  if x == 0,"
                  }
                ]
              },
              "dd": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "{ 1   if x > 0."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "np.heaviside"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " ufunc computes the Heaviside function"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Add a new "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "block"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " function to the current stacking functions "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "vstack"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "hstack"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", and "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "stack"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". This allows concatenation across multiple axes simultaneously, with a similar syntax to array creation, but where elements can themselves be arrays. For instance      "
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ">>> A = np.eye(2) * 2\n>>> B = np.eye(3) * 3\n>>> np.block([\n...     [A,               np.zeros((2, 3))],\n...     [np.ones((3, 2)), B               ]\n... ])\narray([[ 2.,  0.,  0.,  0.,  0.],\n       [ 0.,  2.,  0.,  0.,  0.],\n       [ 1.,  1.,  3.,  0.,  0.],\n       [ 1.,  1.,  0.,  3.,  0.],\n       [ 1.,  1.,  0.,  0.,  3.]])",
          "execution_status": null
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "While primarily useful for block matrices, this works for arbitrary dimensions of arrays."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "It is similar to Matlab's square bracket notation for creating block matrices."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "np.block"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " function for creating blocked arrays"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The new function "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "isin"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " tests whether each element of an N-dimensional array is present anywhere within a second array. It is an enhancement of "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "in1d"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " that preserves the shape of the first array."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "isin"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " function, improving on "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "in1d"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "On platforms providing the "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "backtrace"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " function NumPy will try to avoid creating temporaries in expression involving basic numeric types. For example "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "d = a + b + c"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is transformed to "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "d = a + b; d += c"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " which can improve performance for large arrays as less memory bandwidth is required to perform the operation."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Temporary elision"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "In an N-dimensional array, the user can now choose the axis along which to look for duplicate N-1-dimensional elements using "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "numpy.unique"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". The original behaviour is recovered if "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "axis=None"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " (default)."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "axes"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " argument for "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "unique"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Users can now specify a not-constant spacing for data. In particular "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.gradient"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " can now take:"
            }
          ]
        },
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": true,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "A single scalar to specify a sample distance for all dimensions."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "N scalars to specify a constant sample distance for each dimension.    i.e. "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "dx"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "dy"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "dz"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", ..."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "N arrays to specify the coordinates of the values along each dimension of F.    The length of the array must match the size of the corresponding dimension"
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Any combination of N scalars/arrays with the meaning of 2. and 3."
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "This means that, e.g., it is now possible to do the following      "
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ">>> f = np.array([[1, 2, 6], [3, 4, 5]], dtype=np.float_)\n>>> dx = 2.\n>>> y = [1., 1.5, 3.5]\n>>> np.gradient(f, dx, y)\n[array([[ 1. ,  1. , -0.5], [ 1. ,  1. , -0.5]]),\n array([[ 2. ,  2. ,  2. ], [ 2. ,  1.7,  0.5]])]",
          "execution_status": null
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "np.gradient"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " now supports unevenly spaced data"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Previously, only scalars or 1D arrays could be returned by the function passed to "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "apply_along_axis"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". Now, it can return an array of any dimensionality (including 0D), and the shape of this array replaces the axis of the array being iterated over."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Support for returning arrays of arbitrary dimensions in "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "apply_along_axis"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "For consistency with "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "ndarray"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " and "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "broadcast"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "d.ndim"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is a shorthand for "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "len(d.shape)"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": ".ndim"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " property added to "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "dtype"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " to complement "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": ".shape"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "NumPy now supports memory tracing with "
            },
            {
              "__type": "CrossRef",
              "__tag": 4002,
              "value": "tracemalloc",
              "reference": {
                "__type": "LocalRef",
                "__tag": 4022,
                "kind": "docs",
                "path": "release:1.13.0-notes"
              },
              "kind": "exists"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " module of Python 3.6 or newer. Memory allocations from NumPy are placed into the domain defined by "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "numpy.lib.tracemalloc_domain"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". Note that NumPy allocation will not show up in "
            },
            {
              "__type": "CrossRef",
              "__tag": 4002,
              "value": "tracemalloc",
              "reference": {
                "__type": "LocalRef",
                "__tag": 4022,
                "kind": "docs",
                "path": "release:1.13.0-notes"
              },
              "kind": "exists"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " of earlier Python versions."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Support for tracemalloc in Python 3.6"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Setting NPY_RELAXED_STRIDES_DEBUG=1 in the environment when relaxed stride checking is enabled will cause NumPy to be compiled with the affected strides set to the maximum value of npy_intp in order to help detect invalid usage of the strides in downstream projects. When enabled, invalid usage often results in an error being raised, but the exact type of error depends on the details of the code. TypeError and OverflowError have been observed in the wild."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "It was previously the case that this option was disabled for releases and enabled in master and changing between the two required editing the code. It is now disabled by default but can be enabled for test builds."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "NumPy may be built with relaxed stride checking debugging"
        }
      ],
      "level": 2,
      "target": "tracemalloc"
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Improvements"
        }
      ],
      "level": 1,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Operations where ufunc input and output operands have memory overlap produced undefined results in previous NumPy versions, due to data dependency issues. In NumPy 1.13.0, results from such operations are now defined to be the same as for equivalent operations where there is no memory overlap."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Operations affected now make temporary copies, as needed to eliminate data dependency. As detecting these cases is computationally expensive, a heuristic is used, which may in rare cases result to needless temporary copies.  For operations where the data dependency is simple enough for the heuristic to analyze, temporary copies will not be made even if the arrays overlap, if it can be deduced copies are not necessary.  As an example,``np.add(a, b, out=a)`` will not involve copies."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "To illustrate a previously undefined operation      "
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ">>> x = np.arange(16).astype(float)\n>>> np.add(x[1:], x[:-1], out=x[1:])",
          "execution_status": null
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "In NumPy 1.13.0 the last line is guaranteed to be equivalent to      "
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ">>> np.add(x[1:].copy(), x[:-1].copy(), out=x[1:])",
          "execution_status": null
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "A similar operation with simple non-problematic data dependence is      "
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ">>> x = np.arange(16).astype(float)\n>>> np.add(x[1:], x[:-1], out=x[:-1])",
          "execution_status": null
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "It will continue to produce the same results as in previous NumPy versions, and will not involve unnecessary temporary copies."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The change applies also to in-place binary operations, for example      "
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ">>> x = np.random.rand(500, 500)\n>>> x += x.T",
          "execution_status": null
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "This statement is now guaranteed to be equivalent to "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "x[...] = x + x.T"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", whereas in previous NumPy versions the results were undefined."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Ufunc behavior for overlapping inputs"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Extensions that incorporate Fortran libraries can now be built using the free "
            },
            {
              "__type": "Link",
              "__tag": 4049,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "MinGW"
                }
              ],
              "url": "https://sf.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/6.2.0/threads-win32/seh/",
              "title": ""
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " toolset, also under Python 3.5. This works best for extensions that only do calculations and uses the runtime modestly (reading and writing from files, for instance). Note that this does not remove the need for Mingwpy; if you make extensive use of the runtime, you will most likely run into "
            },
            {
              "__type": "CrossRef",
              "__tag": 4002,
              "value": "issues",
              "reference": {
                "__type": "LocalRef",
                "__tag": 4022,
                "kind": "docs",
                "path": "release:1.13.0-notes"
              },
              "kind": "exists"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". Instead, it should be regarded as a band-aid until Mingwpy is fully functional."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Extensions can also be compiled using the MinGW toolset using the runtime library from the (moveable) WinPython 3.4 distribution, which can be useful for programs with a PySide1/Qt4 front-end."
            }
          ]
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "MinGW"
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Partial support for 64-bit f2py extensions with MinGW"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The functions "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "numpy.packbits"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " with boolean input and "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "numpy.unpackbits"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " have been optimized to be a significantly faster for contiguous data."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Performance improvements for "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "packbits"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " and "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "unpackbits"
        }
      ],
      "level": 2,
      "target": "issues"
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "In previous versions of NumPy, the "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "finfo"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " function returned invalid information about the "
            },
            {
              "__type": "CrossRef",
              "__tag": 4002,
              "value": "double double",
              "reference": {
                "__type": "LocalRef",
                "__tag": 4022,
                "kind": "docs",
                "path": "release:1.13.0-notes"
              },
              "kind": "exists"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " format of the "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "longdouble"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " float type on Power PC (PPC).  The invalid values resulted from the failure of the NumPy algorithm to deal with the variable number of digits in the significand that are a feature of "
            },
            {
              "__type": "Link",
              "__tag": 4049,
              "children": [
                {
                  "__type": "Text",
                  "__tag": 4046,
                  "value": "PPC long doubles"
                }
              ],
              "url": "https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/com.ibm.aix.genprogc/128bit_long_double_floating-point_datatype.htm",
              "title": ""
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ".  This release by-passes the failing algorithm by using heuristics to detect the presence of the PPC double double format.  A side-effect of using these heuristics is that the "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "finfo"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " function is faster than previous releases."
            }
          ]
        },
        {
          "__type": "Target",
          "__tag": 4061,
          "label": "PPC long doubles"
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Fix for PPC long double floating point information"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Subclasses of ndarray with no "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "repr"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " specialization now correctly indent their data and type lines."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Better default repr for "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "ndarray"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " subclasses"
        }
      ],
      "level": 2,
      "target": "double double"
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Comparisons of masked arrays were buggy for masked scalars and failed for structured arrays with dimension higher than one. Both problems are now solved. In the process, it was ensured that in getting the result for a structured array, masked fields are properly ignored, i.e., the result is equal if all fields that are non-masked in both are equal, thus making the behaviour identical to what one gets by comparing an unstructured masked array and then doing "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": ".all()"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " over some axis."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "More reliable comparisons of masked arrays"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.matrix"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " failed whenever one attempts to use it with booleans, e.g., "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.matrix('True')"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". Now, this works as expected."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "np.matrix with booleans elements can now be created using the string syntax"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "All of the following functions in "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.linalg"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " now work when given input arrays with a 0 in the last two dimensions: "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "det"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "slogdet"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "pinv"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "eigvals"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "eigvalsh"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "eig"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "eigh"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "More "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "linalg"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " operations now accept empty vectors and matrices"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "NumPy comes bundled with a minimal implementation of lapack for systems without a lapack library installed, under the name of "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "lapack_lite"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". This has been upgraded from LAPACK 3.0.0 (June 30, 1999) to LAPACK 3.2.2 (June 30, 2010). See the "
            },
            {
              "__type": "CrossRef",
              "__tag": 4002,
              "value": "LAPACK changelogs",
              "reference": {
                "__type": "LocalRef",
                "__tag": 4022,
                "kind": "docs",
                "path": "release:1.13.0-notes"
              },
              "kind": "exists"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " for details on the all the changes this entails."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "While no new features are exposed through "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "numpy"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", this fixes some bugs regarding \"workspace\" sizes, and in some places may use faster algorithms."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Bundled version of LAPACK is now 3.2.2"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "This now works on empty arrays, returning 0, and can reduce over multiple axes. Previously, a "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "ValueError"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " was thrown in these cases."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "reduce"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " of "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "np.hypot.reduce"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " and "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "np.logical_xor"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " allowed in more cases"
        }
      ],
      "level": 2,
      "target": "LAPACK changelogs"
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Object arrays that contain themselves no longer cause a recursion error."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Object arrays that contain "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "list"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " objects are now printed in a way that makes clear the difference between a 2d object array, and a 1d object array of lists."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Better "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "repr"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " of object arrays"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Changes"
        }
      ],
      "level": 1,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "By default, "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "argsort"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " now places the masked values at the end of the sorted array, in the same way that "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "sort"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " already did. Additionally, the "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "end_with"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " argument is added to "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "argsort"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", for consistency with "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "sort"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". Note that this argument is not added at the end, so breaks any code that passed "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "fill_value"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " as a positional argument."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "argsort"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " on masked arrays takes the same default arguments as "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "sort"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "For ndarray subclasses, "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "numpy.average"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " will now return an instance of the subclass, matching the behavior of most other NumPy functions such as "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "mean"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ". As a consequence, also calls that returned a scalar may now return a subclass array scalar."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "average"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " now preserves subclasses"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Previously these operations returned scalars "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "False"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " and "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "True"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " respectively."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "array == None"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " and "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "array != None"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " do element-wise comparison"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Previously, these functions always treated identical objects as equal. This had the effect of overriding comparison failures, comparison of objects that did not return booleans, such as np.arrays, and comparison of objects where the results differed from object identity, such as NaNs."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "np.equal, np.not_equal"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " for object arrays ignores object identity"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Boolean array-likes (such as lists of python bools) are always treated as   boolean indexes."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Boolean scalars (including python "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "True"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ") are legal boolean indexes and   never treated as integers."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Boolean indexes must match the dimension of the axis that they index."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Boolean indexes used on the lhs of an assignment must match the dimensions of   the rhs."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": "Boolean indexing into scalar arrays return a new 1-d array.  This means that   "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "array(1)[array(True)]"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " gives "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "array([1])"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " and not the original array."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Boolean indexing changes"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "It is now possible to adjust the behavior the function will have when dealing with the covariance matrix by using two new keyword arguments:"
            }
          ]
        },
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "tol"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " can be used to specify a tolerance to use when checking that   the covariance matrix is positive semidefinite."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "check_valid"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " can be used to configure what the function will do in the   presence of a matrix that is not positive semidefinite. Valid options are   "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "ignore"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ", "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "warn"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " and "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "raise"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": ". The default value, "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "warn"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " keeps the   the behavior used on previous releases."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "np.random.multivariate_normal"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " behavior with bad covariance matrix"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Previously, "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.testing.assert_array_less"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " ignored all infinite values. This is not the expected behavior both according to documentation and intuitively. Now, -inf < x < inf is considered "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "True"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " for any real number x and all other cases fail."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "assert_array_less"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " compares "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "np.inf"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " and "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "-np.inf"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " now"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Some warnings that were previously hidden by the "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "assert_array_"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " functions are not hidden anymore. In most cases the warnings should be correct and, should they occur, will require changes to the tests using these functions. For the masked array "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "assert_equal"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " version, warnings may occur when comparing NaT. The function presently does not handle NaT or NaN specifically and it may be best to avoid it at this time should a warning show up due to this change."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "assert_array_"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " and masked arrays "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "assert_equal"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " hide less warnings"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "offset"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " attribute in a "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "memmap"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " object is now set to the offset into the file. This is a behaviour change only for offsets greater than "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "mmap.ALLOCATIONGRANULARITY"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "offset"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " attribute value in "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "memmap"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " objects"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Previously, "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.real"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " and "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.imag"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " used to return array objects when provided a scalar input, which was inconsistent with other functions like "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.angle"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " and "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "np.conj"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "np.real"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " and "
        },
        {
          "__type": "InlineCode",
          "__tag": 4051,
          "value": "np.imag"
        },
        {
          "__type": "Text",
          "__tag": 4046,
          "value": " return scalars for scalar inputs"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The ABCPolyBase class, from which the convenience classes are derived, sets "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "__array_ufun__ = None"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " in order of opt out of ufuncs. If a polynomial convenience class instance is passed as an argument to a ufunc, a "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "TypeError"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " will now be raised."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "The polynomial convenience classes cannot be passed to ufuncs"
        }
      ],
      "level": 2,
      "target": null
    },
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "For calls to ufuncs, it was already possible, and recommended, to use an "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "out"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " argument with a tuple for ufuncs with multiple outputs. This has now been extended to output arguments in the "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "reduce"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "accumulate"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", and "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "reduceat"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " methods. This is mostly for compatibility with "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "__array_ufunc"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "; there are no ufuncs yet that have more than one output."
            }
          ]
        }
      ],
      "title": [
        {
          "__type": "Text",
          "__tag": 4046,
          "value": "Output arguments to ufuncs can be tuples also for ufunc methods"
        }
      ],
      "level": 2,
      "target": null
    }
  ],
  "local_refs": []
}