NumPy 1.14.4 發行說明#

這是 1.14.3 版本發行後回報的錯誤修正版本。最重要的修正是

  • 修正了編譯器指令重新排序導致 NaN 未在 np.maxnp.min 中正確傳播的問題,

  • 修正了由於不正確的對齊檢查導致 SPARC 和舊款 ARM 上的匯流排錯誤。

此外,還改進了在 PPC 平台上列印 long double 的功能。在該平台上仍未臻完善,空白填充仍然不正確,將在 numpy 1.15 中修正,因此 NumPy 在 ppc 系統上仍然未能通過一些與列印相關的(以及其他)單元測試。但是,列印的值現在是正確的。

請注意,如果 NumPy 偵測到不正確的 float32 dot 結果,則會在匯入時發生錯誤。這個問題已在 Mac 上使用 Anaconda 環境時發現,是由於 MKL 和 PyQt5 之間的微妙互動所造成。這嚴格來說並非 NumPy 的問題,但最好讓使用者知道此事。請參閱 gh-8577 NumPy 問題以取得更多資訊。

此版本支援的 Python 版本為 2.7 和 3.4 - 3.6。從 PIP 提供的 Python 3.6 wheels 是使用 Python 3.6.2 建置的,應與所有先前的 Python 3.6 版本相容。原始碼發行版本已使用 Cython 0.28.2 進行 Cython 化,應適用於即將推出的 Python 3.7。

貢獻者#

總共有 7 人為此版本做出貢獻。姓名旁有「+」號的人是首次貢獻補丁。

  • Allan Haldane

  • Charles Harris

  • Marten van Kerkwijk

  • Matti Picus

  • Pauli Virtanen

  • Ryan Soklaski +

  • Sebastian Berg

合併的 Pull Request#

此版本總共合併了 11 個 pull request。

  • #11104: BUG: str of DOUBLE_DOUBLE format wrong on ppc64

  • #11170: TST: linalg: add regression test for gh-8577

  • #11174: MAINT: add sanity-checks to be run at import time

  • #11181: BUG: void dtype setup checked offset not actual pointer for alignment

  • #11194: BUG: Python2 doubles don’t print correctly in interactive shell.

  • #11198: BUG: optimizing compilers can reorder call to npy_get_floatstatus

  • #11199: BUG: reduce using SSE only warns if inside SSE loop

  • #11203: BUG: Bytes delimiter/comments in genfromtxt should be decoded

  • #11211: BUG: Fix reference count/memory leak exposed by better testing

  • #11219: BUG: Fixes einsum broadcasting bug when optimize=True

  • #11251: DOC: Document 1.14.4 release.