NumPy 1.16.6 發行說明#

NumPy 1.16.6 版本修復了針對 1.16.5 版本回報的錯誤,並且從 master 分支回溯移植了一些增強功能,這些功能似乎適用於最後一個支援 Python 2.7 的發行系列。PyPI 上的 wheels 連結到 OpenBLAS v0.3.7,這應該可以修復 Skylake 系列 CPU 上的錯誤。

建置此版本的下游開發者應使用 Cython >= 0.29.2,如果使用 OpenBLAS,則應使用 OpenBLAS >= v0.3.7。支援的 Python 版本為 2.7 和 3.5-3.7。

重點#

  • np.testing.utils 函數已從 1.19.0-dev0 更新。這改進了函數文件和錯誤訊息,並將 assert_array_compare 函數擴展到其他類型。

新功能#

允許 matmul (@ 運算子) 處理物件陣列。#

這是 NumPy 1.17 中新增的增強功能,並且似乎合理地包含在 LTS 1.16 發行系列中。

相容性注意事項#

修復布林類型 matmul (@ 運算子) 中的回歸錯誤#

布林值被視為整數而不是布林值,這是先前行為的回歸。

改進#

陣列比較斷言包含最大差異#

來自陣列比較測試(例如 testing.assert_allclose)的錯誤訊息現在包含「最大絕對差異」和「最大相對差異」,以及先前的「不匹配」百分比。此資訊使更新絕對和相對誤差容限變得更容易。

貢獻者#

共有 10 人為此版本做出了貢獻。

  • CakeWithSteak

  • Charles Harris

  • Chris Burr

  • Eric Wieser

  • Fernando Saravia

  • Lars Grueter

  • Matti Picus

  • Maxwell Aladago

  • Qiming Sun

  • Warren Weckesser

合併的提取請求#

此版本總共合併了 14 個提取請求。

  • #14211: BUG: Fix uint-overflow if padding with linear_ramp and negative…

  • #14275: BUG: fixing to allow unpickling of PY3 pickles from PY2

  • #14340: BUG: Fix misuse of .names and .fields in various places (backport…

  • #14423: BUG: test, fix regression in converting to ctypes.

  • #14434: BUG: Fixed maximum relative error reporting in assert_allclose

  • #14509: BUG: Fix regression in boolean matmul.

  • #14686: BUG: properly define PyArray_DescrCheck

  • #14853: BLD: add ‘apt update’ to shippable

  • #14854: BUG: Fix _ctypes class circular reference. (#13808)

  • #14856: BUG: Fix np.einsum errors on Power9 Linux and z/Linux

  • #14863: BLD: Prevent -flto from optimising long double representation…

  • #14864: BUG: lib: Fix histogram problem with signed integer arrays.

  • #15172: ENH: Backport improvements to testing functions.

  • #15191: REL: Prepare for 1.16.6 release.