NumPy Changelog

What's new in NumPy 1.11.2

Oct 15, 2016
  • Fixes bugs and regressions found in Numpy 1.11.1 and includes several build related improvements:
  • #7736 BUG: Many functions silently drop 'keepdims' kwarg.
  • #7738 ENH: Add extra kwargs and update doc of many MA methods.
  • #7778 DOC: Update Numpy 1.11.1 release notes.
  • #7793 BUG: MaskedArray.count treats negative axes incorrectly.
  • #7816 BUG: Fix array too big error for wide dtypes.
  • #7821 BUG: Make sure npy_mul_with_overflow_ detects overflow.
  • #7824 MAINT: Allocate fewer bytes for empty arrays.
  • #7847 MAINT,DOC: Fix some imp module uses and update f2py.compile docstring.
  • #7849 MAINT: Fix remaining uses of deprecated Python imp module.
  • #7851 BLD: Fix ATLAS version detection.
  • #7896 BUG: Construct ma.array from np.array which contains padding.
  • #7904 BUG: Fix float16 type not being called due to wrong ordering.
  • #7917 BUG: Production install of numpy should not require nose.
  • #7919 BLD: Fixed MKL detection for recent versions of this library.
  • #7920 BUG: Fix for issue #7835 (ma.median of 1d).
  • #7932 BUG: Monkey-patch _msvccompile.gen_lib_option like other compilers.
  • #7939 BUG: Check for HAVE_LDOUBLE_DOUBLE_DOUBLE_LE in npy_math_complex.
  • #7953 BUG: Guard against buggy comparisons in generic quicksort.
  • #7954 BUG: Use keyword arguments to initialize Extension base class.
  • #7955 BUG: Make sure numpy globals keep identity after reload.
  • #7972 BUG: MSVCCompiler grows 'lib' & 'include' env strings exponentially.
  • #8005 BLD: Remove __NUMPY_SETUP__ from builtins at end of setup.py.
  • #8010 MAINT: Remove leftover imp module imports.
  • #8020 BUG: Fix return of np.ma.count if keepdims is True and axis is None.
  • #8024 BUG: Fix numpy.ma.median.
  • #8031 BUG: Fix np.ma.median with only one non-masked value.
  • #8044 BUG: Fix bug in NpyIter buffering with discontinuous arrays.

New in NumPy 1.11.1 (Jun 26, 2016)

  • Fixes Merged:
  • #7506 BUG: Make sure numpy imports on python 2.6 when nose is unavailable.
  • #7530 BUG: Floating exception with invalid axis in np.lexsort.
  • #7535 BUG: Extend glibc complex trig functions blacklist to glibc < 2.18.
  • #7551 BUG: Allow graceful recovery for no compiler.
  • #7558 BUG: Constant padding expected wrong type in constant_values.
  • #7578 BUG: Fix OverflowError in Python 3.x. in swig interface.
  • #7590 BLD: Fix configparser.InterpolationSyntaxError.
  • #7597 BUG: Make np.ma.take work on scalars.
  • #7608 BUG: linalg.norm(): Don't convert object arrays to float.
  • #7638 BLD: Correct C compiler customization in system_info.py.
  • #7654 BUG: ma.median of 1d array should return a scalar.
  • #7656 BLD: Remove hardcoded Intel compiler flag -xSSE4.2.
  • #7660 BUG: Temporary fix for str(mvoid) for object field types.
  • #7665 BUG: Fix incorrect printing of 1D masked arrays.
  • #7670 BUG: Correct initial index estimate in histogram.
  • #7671 BUG: Boolean assignment no GIL release when transfer needs API.
  • #7676 BUG: Fix handling of right edge of final histogram bin.
  • #7680 BUG: Fix np.clip bug NaN handling for Visual Studio 2015.
  • #7724 BUG: Fix segfaults in np.random.shuffle.
  • #7731 MAINT: Change mkl_info.dir_env_var from MKL to MKLROOT.
  • #7737 BUG: Fix issue on OS X with Python 3.x, npymath.ini not installed.

New in NumPy 1.11.1 RC 1 (May 27, 2016)

  • MAINT: Fix up C++ style comment in arraytypes.c.src.
  • Fix np.clip bug NaN handling for Visual Studio 2015 by disabling loop vectorization and add test.

New in NumPy 1.11.0 (Mar 28, 2016)

  • The datetime64 type is now timezone naive.
  • A dtype parameter has been added to ``randint``.
  • Improved detection of two arrays possibly sharing memory.
  • Automatic bin size estimation for ``np.histogram``.
  • Speed optimization of A @ A.T and dot(A, A.T).
  • New function ``np.moveaxis`` for reordering array axes.

New in NumPy 1.11.0 Beta 1 (Jan 26, 2016)

  • Highlights:
  • The datetime64 type is now timezone naive.
  • A dtype parameter has been added to ``randint``.
  • Improved detection of two arrays possibly sharing memory.
  • Automatic bin size estimation for ``np.histogram``.
  • Speed optimization of A @ A.T and dot(A, A.T).
  • New function ``np.moveaxis`` for reordering array axes.
  • Build System Changes:
  • Numpy now uses ``setuptools`` for its builds instead of plain distutils. This fixes usage of ``install_requires='numpy'`` in the ``setup.py`` files of projects that depend on Numpy (see gh-6551). It potentially affects the way that build/install methods for Numpy itself behave though. Please report any unexpected behavior on the Numpy issue tracker.
  • Bento build support and related files have been removed.
  • Single file build support and related files have been removed.

New in NumPy 1.10.4 (Jan 15, 2016)

  • Compatibility notes:
  • The trace function now calls the trace method on subclasses of ndarray, except for matrix, for which the current behavior is preserved. This is to help with the units package of AstroPy and hopefully will not cause problems.
  • Issues Fixed:
  • gh-6922 BUG: numpy.recarray.sort segfaults on Windows.
  • gh-6937 BUG: busday_offset does the wrong thing with modifiedpreceding roll.
  • gh-6949 BUG: Type is lost when slicing a subclass of recarray.
  • Merged PRs:
  • gh-6840 TST: Update travis testing script in 1.10.x
  • gh-6843 BUG: Fix use of python 3 only FileNotFoundError in test_f2py.
  • gh-6884 REL: Update pavement.py and setup.py to reflect current version.
  • gh-6916 BUG: Fix test_f2py so it runs correctly in runtests.py.
  • gh-6924 BUG: Fix segfault gh-6922.
  • gh-6942 Fix datetime roll='modifiedpreceding' bug.
  • gh-6943 DOC,BUG: Fix some latex generation problems.
  • gh-6950 BUG trace is not subclass aware, np.trace(ma) != ma.trace().
  • gh-6952 BUG recarray slices should preserve subclass.

New in NumPy 1.10.2 (Jan 15, 2016)

  • Issues Fixed:
  • gh-6019 Masked array repr fails for structured array with multi-dimensional column.
  • gh-6462 Median of empty array produces IndexError.
  • gh-6467 Performance regression for record array access.
  • gh-6468 numpy.interp uses 'left' value even when x[0]==xp[0].
  • gh-6475 np.allclose returns a memmap when one of its arguments is a memmap.
  • gh-6491 Error in broadcasting stride_tricks array.
  • gh-6495 Unrecognized command line option '-ffpe-summary' in gfortran.
  • gh-6497 Failure of reduce operation on recarrays.
  • gh-6498 Mention change in default casting rule in 1.10 release notes.
  • gh-6530 The partition function errors out on empty input.
  • gh-6532 numpy.inner return wrong inaccurate value sometimes.
  • gh-6563 Intent(out) broken in recent versions of f2py.
  • gh-6569 Cannot run tests after 'python setup.py build_ext -i'
  • gh-6572 Error in broadcasting stride_tricks array component.
  • gh-6575 BUG: Split produces empty arrays with wrong number of dimensions
  • gh-6590 Fortran Array problem in numpy 1.10.
  • gh-6602 Random __all__ missing choice and dirichlet.
  • gh-6611 ma.dot no longer always returns a masked array in 1.10.
  • gh-6618 NPY_FORTRANORDER in make_fortran() in numpy.i
  • gh-6636 Memory leak in nested dtypes in numpy.recarray
  • gh-6641 Subsetting recarray by fields yields a structured array.
  • gh-6667 ma.make_mask handles ma.nomask input incorrectly.
  • gh-6675 Optimized blas detection broken in master and 1.10.
  • gh-6678 Getting unexpected error from: X.dtype = complex (or Y = X.view(complex))
  • gh-6718 f2py test fail in pip installed numpy-1.10.1 in virtualenv.
  • gh-6719 Error compiling Cython file: Pythonic division not allowed without gil.
  • gh-6771 Numpy.rec.fromarrays losing dtype metadata between versions 1.9.2 and 1.10.1
  • gh-6781 The travis-ci script in maintenance/1.10.x needs fixing.
  • gh-6807 Windows testing errors for 1.10.2
  • Merged PRs:
  • gh-5773 MAINT: Hide testing helper tracebacks when using them with pytest.
  • gh-6094 BUG: Fixed a bug with string representation of masked structured arrays.
  • gh-6208 MAINT: Speedup field access by removing unneeded safety checks.
  • gh-6460 BUG: Replacing the os.environ.clear by less invasive procedure.
  • gh-6470 BUG: Fix AttributeError in numpy distutils.
  • gh-6472 MAINT: Use Python 3.5 instead of 3.5-dev for travis 3.5 testing.
  • gh-6474 REL: Update Paver script for sdist and auto-switch test warnings.
  • gh-6478 BUG: Fix Intel compiler flags for OS X build.
  • gh-6481 MAINT: LIBPATH with spaces is now supported Python 2.7+ and Win32.
  • gh-6487 BUG: Allow nested use of parameters in definition of arrays in f2py.
  • gh-6488 BUG: Extend common blocks rather than overwriting in f2py.
  • gh-6499 DOC: Mention that default casting for inplace operations has changed.
  • gh-6500 BUG: Recarrays viewed as subarrays don't convert to np.record type.
  • gh-6501 REL: Add "make upload" command for built docs, update "make dist".
  • gh-6526 BUG: Fix use of __doc__ in setup.py for -OO mode.
  • gh-6527 BUG: Fix the IndexError when taking the median of an empty array.
  • gh-6537 BUG: Make ma.atleast_with scalar argument return arrays.
  • gh-6538 BUG: Fix ma.masked_values does not shrink mask if requested.
  • gh-6546 BUG: Fix inner product regression for non-contiguous arrays.
  • gh-6553 BUG: Fix partition and argpartition error for empty input.
  • gh-6556 BUG: Error in broadcast_arrays with as_strided array.
  • gh-6558 MAINT: Minor update to "make upload" doc build command.
  • gh-6562 BUG: Disable view safety checks in recarray.
  • gh-6567 BUG: Revert some import fixes in f2py.
  • gh-6574 DOC: Release notes for Numpy 1.10.2.
  • gh-6577 BUG: Fix for #6569, allowing build_ext --inplace
  • gh-6579 MAINT: Fix mistake in doc upload rule.
  • gh-6596 BUG: Fix swig for relaxed stride checking.
  • gh-6606 DOC: Update 1.10.2 release notes.
  • gh-6614 BUG: Add choice and dirichlet to numpy.random.__all__.
  • gh-6621 BUG: Fix swig make_fortran function.
  • gh-6628 BUG: Make allclose return python bool.
  • gh-6642 BUG: Fix memleak in _convert_from_dict.
  • gh-6643 ENH: make recarray.getitem return a recarray.
  • gh-6653 BUG: Fix ma dot to always return masked array.
  • gh-6668 BUG: ma.make_mask should always return nomask for nomask argument.
  • gh-6686 BUG: Fix a bug in assert_string_equal.
  • gh-6695 BUG: Fix removing tempdirs created during build.
  • gh-6697 MAINT: Fix spurious semicolon in macro definition of PyArray_FROM_OT.
  • gh-6698 TST: test np.rint bug for large integers.
  • gh-6717 BUG: Readd fallback CBLAS detection on linux.
  • gh-6721 BUG: Fix for #6719.
  • gh-6726 BUG: Fix bugs exposed by relaxed stride rollback.
  • gh-6757 BUG: link cblas library if cblas is detected.
  • gh-6756 TST: only test f2py, not f2py2.7 etc, fixes #6718.
  • gh-6747 DEP: Deprecate changing shape of non-C-contiguous array via descr.
  • gh-6775 MAINT: Include from __future__ boilerplate in some files missing it.
  • gh-6780 BUG: metadata is not copied to base_dtype.
  • gh-6783 BUG: Fix travis ci testing for new google infrastructure.
  • gh-6785 BUG: Quick and dirty fix for interp.
  • gh-6813 TST,BUG: Make test_mvoid_multidim_print work for 32 bit systems.
  • gh-6817 BUG: Disable 32-bit msvc9 compiler optimizations for npy_rint.
  • gh-6819 TST: Fix test_mvoid_multidim_print failures on Python 2.x for Windows.

New in NumPy 1.10.2 RC2 (Jan 15, 2016)

  • Issues Fixed:
  • gh-6019 Masked array repr fails for structured array with multi-dimensional column.
  • gh-6462 Median of empty array produces IndexError.
  • gh-6467 Performance regression for record array access.
  • gh-6468 numpy.interp uses 'left' value even when x[0]==xp[0].
  • gh-6475 np.allclose returns a memmap when one of its arguments is a memmap.
  • gh-6491 Error in broadcasting stride_tricks array.
  • gh-6495 Unrecognized command line option '-ffpe-summary' in gfortran.
  • gh-6497 Failure of reduce operation on recarrays.
  • gh-6498 Mention change in default casting rule in 1.10 release notes.
  • gh-6530 The partition function errors out on empty input.
  • gh-6532 numpy.inner return wrong inaccurate value sometimes.
  • gh-6563 Intent(out) broken in recent versions of f2py.
  • gh-6569 Cannot run tests after 'python setup.py build_ext -i'
  • gh-6572 Error in broadcasting stride_tricks array component.
  • gh-6575 BUG: Split produces empty arrays with wrong number of dimensions
  • gh-6590 Fortran Array problem in numpy 1.10.
  • gh-6602 Random __all__ missing choice and dirichlet.
  • gh-6611 ma.dot no longer always returns a masked array in 1.10.
  • gh-6618 NPY_FORTRANORDER in make_fortran() in numpy.i
  • gh-6636 Memory leak in nested dtypes in numpy.recarray
  • gh-6641 Subsetting recarray by fields yields a structured array.
  • gh-6667 ma.make_mask handles ma.nomask input incorrectly.
  • gh-6675 Optimized blas detection broken in master and 1.10.
  • gh-6678 Getting unexpected error from: X.dtype = complex (or Y = X.view(complex))
  • gh-6718 f2py test fail in pip installed numpy-1.10.1 in virtualenv.
  • gh-6719 Error compiling Cython file: Pythonic division not allowed without gil.
  • gh-6771 Numpy.rec.fromarrays losing dtype metadata between versions 1.9.2 and 1.10.1
  • gh-6781 The travis-ci script in maintenance/1.10.x needs fixing.
  • Merged PRs:
  • gh-5773 MAINT: Hide testing helper tracebacks when using them with pytest.
  • gh-6094 BUG: Fixed a bug with string representation of masked structured arrays.
  • gh-6208 MAINT: Speedup field access by removing unneeded safety checks.
  • gh-6460 BUG: Replacing the os.environ.clear by less invasive procedure.
  • gh-6470 BUG: Fix AttributeError in numpy distutils.
  • gh-6472 MAINT: Use Python 3.5 instead of 3.5-dev for travis 3.5 testing.
  • gh-6474 REL: Update Paver script for sdist and auto-switch test warnings.
  • gh-6478 BUG: Fix Intel compiler flags for OS X build.
  • gh-6481 MAINT: LIBPATH with spaces is now supported Python 2.7+ and Win32.
  • gh-6487 BUG: Allow nested use of parameters in definition of arrays in f2py.
  • gh-6488 BUG: Extend common blocks rather than overwriting in f2py.
  • gh-6499 DOC: Mention that default casting for inplace operations has changed.
  • gh-6500 BUG: Recarrays viewed as subarrays don't convert to np.record type.
  • gh-6501 REL: Add "make upload" command for built docs, update "make dist".
  • gh-6526 BUG: Fix use of __doc__ in setup.py for -OO mode.
  • gh-6527 BUG: Fix the IndexError when taking the median of an empty array.
  • gh-6537 BUG: Make ma.atleast_with scalar argument return arrays.
  • gh-6538 BUG: Fix ma.masked_values does not shrink mask if requested.
  • gh-6546 BUG: Fix inner product regression for non-contiguous arrays.
  • gh-6553 BUG: Fix partition and argpartition error for empty input.
  • gh-6556 BUG: Error in broadcast_arrays with as_strided array.
  • gh-6558 MAINT: Minor update to "make upload" doc build command.
  • gh-6562 BUG: Disable view safety checks in recarray.
  • gh-6567 BUG: Revert some import fixes in f2py.
  • gh-6574 DOC: Release notes for Numpy 1.10.2.
  • gh-6577 BUG: Fix for #6569, allowing build_ext --inplace
  • gh-6579 MAINT: Fix mistake in doc upload rule.
  • gh-6596 BUG: Fix swig for relaxed stride checking.
  • gh-6606 DOC: Update 1.10.2 release notes.
  • gh-6614 BUG: Add choice and dirichlet to numpy.random.__all__.
  • gh-6621 BUG: Fix swig make_fortran function.
  • gh-6628 BUG: Make allclose return python bool.
  • gh-6642 BUG: Fix memleak in _convert_from_dict.
  • gh-6643 ENH: make recarray.getitem return a recarray.
  • gh-6653 BUG: Fix ma dot to always return masked array.
  • gh-6668 BUG: ma.make_mask should always return nomask for nomask argument.
  • gh-6686 BUG: Fix a bug in assert_string_equal.
  • gh-6695 BUG: Fix removing tempdirs created during build.
  • gh-6697 MAINT: Fix spurious semicolon in macro definition of PyArray_FROM_OT.
  • gh-6698 TST: test np.rint bug for large integers.
  • gh-6717 BUG: Readd fallback CBLAS detection on linux.
  • gh-6721 BUG: Fix for #6719.
  • gh-6726 BUG: Fix bugs exposed by relaxed stride rollback.
  • gh-6757 BUG: link cblas library if cblas is detected.
  • gh-6756 TST: only test f2py, not f2py2.7 etc, fixes #6718.
  • gh-6747 DEP: Deprecate changing shape of non-C-contiguous array via descr.
  • gh-6775 MAINT: Include from __future__ boilerplate in some files missing it.
  • gh-6780 BUG: metadata is not copied to base_dtype.
  • gh-6783 BUG: Fix travis ci testing for new google infrastructure.
  • gh-6785 BUG: Quick and dirty fix for interp.

New in NumPy 1.10.2 RC1 (Jan 15, 2016)

  • Issues Fixed:
  • gh-6462 Median of empty array produces IndexError.
  • gh-6467 Performance regression for record array access.
  • gh-6475 np.allclose returns a memmap when one of its arguments is a memmap.
  • gh-6491 Error in broadcasting stride_tricks array.
  • gh-6495 Unrecognized command line option '-ffpe-summary' in gfortran.
  • gh-6497 Failure of reduce operation on recarrays.
  • gh-6498 Mention change in default casting rule in 1.10 release notes.
  • gh-6530 The partition function errors out on empty input.
  • gh-6563 Intent(out) broken in recent versions of f2py.
  • gh-6569 Cannot run tests after 'python setup.py build_ext -i'
  • gh-6572 Error in broadcasting stride_tricks array component.
  • gh-6575 BUG: Split produces empty arrays with wrong number of dimensions
  • gh-6590 Fortran Array problem in numpy 1.10.
  • gh-6602 Random __all__ missing choice and dirichlet.
  • gh-6611 ma.dot no longer always returns a masked array in 1.10.
  • gh-6618 NPY_FORTRANORDER in make_fortran() in numpy.i
  • gh-6636 Memory leak in nested dtypes in numpy.recarray
  • gh-6641 Subsetting recarray by fields yields a structured array.
  • gh-6667 ma.make_mask handles ma.nomask input incorrectly.
  • Merged PRs:
  • gh-5773 MAINT: Hide testing helper tracebacks when using them with pytest.
  • gh-6208 MAINT: Speedup field access by removing unneeded safety checks.
  • gh-6460 BUG: Replacing the os.environ.clear by less invasive procedure.
  • gh-6470 BUG: Fix AttributeError in numpy distutils.
  • gh-6472 MAINT: Use Python 3.5 instead of 3.5-dev for travis 3.5 testing.
  • gh-6474 REL: Update Paver script for sdist and auto-switch test warnings.
  • gh-6478 BUG: Fix Intel compiler flags for OS X build.
  • gh-6481 MAINT: LIBPATH with spaces is now supported Python 2.7+ and Win32.
  • gh-6487 BUG: Allow nested use of parameters in definition of arrays in f2py.
  • gh-6488 BUG: Extend common blocks rather than overwriting in f2py.
  • gh-6499 DOC: Mention that default casting for inplace operations has changed.
  • gh-6500 BUG: Recarrays viewed as subarrays don't convert to np.record type.
  • gh-6501 REL: Add "make upload" command for built docs, update "make dist".
  • gh-6526 BUG: Fix use of __doc__ in setup.py for -OO mode.
  • gh-6527 BUG: Fix the IndexError when taking the median of an empty array.
  • gh-6537 BUG: Make ma.atleast_with scalar argument return arrays.
  • gh-6538 BUG: Fix ma.masked_values does not shrink mask if requested.
  • gh-6546 BUG: Fix inner product regression for non-contiguous arrays.
  • gh-6553 BUG: Fix partition and argpartition error for empty input.
  • gh-6556 BUG: Error in broadcast_arrays with as_strided array.
  • gh-6558 MAINT: Minor update to "make upload" doc build command.
  • gh-6562 BUG: Disable view safety checks in recarray.
  • gh-6567 BUG: Revert some import fixes in f2py.
  • gh-6574 DOC: Release notes for Numpy 1.10.2.
  • gh-6577 BUG: Fix for #6569, allowing build_ext --inplace
  • gh-6579 MAINT: Fix mistake in doc upload rule.
  • gh-6596 BUG: Fix swig for relaxed stride checking.
  • gh-6606 DOC: Update 1.10.2 release notes.
  • gh-6614 BUG: Add choice and dirichlet to numpy.random.__all__.
  • gh-6621 BUG: Fix swig make_fortran function.
  • gh-6628 BUG: Make allclose return python bool.
  • gh-6642 BUG: Fix memleak in _convert_from_dict.
  • gh-6643 ENH: make recarray.getitem return a recarray.
  • gh-6653 BUG: Fix ma dot to always return masked array.
  • gh-6668 BUG: ma.make_mask should always return nomask for nomask argument.

New in NumPy 1.10.1 (Jan 15, 2016)

  • Make compiling with VS2008 python2.7 SDK easier
  • Change Intel compiler options so that code will also be generated to support systems without SSE4.2.
  • Some _config test functions needed an explicit integer return in order to avoid the openSUSE rpmlinter erring out.
  • We ran into a problem with pipy not allowing reuse of filenames and a resulting proliferation of *.*.*.postN releases. Not only were the names getting out of hand, some packages were unable to work with the postN suffix.

New in NumPy 1.10.0 Beta 1 (Aug 12, 2015)

  • Highlights:
  • numpy.distutils now supports parallel compilation via the --parallel/-j argument passed to setup.py build
  • numpy.distutils now supports additional customization via site.cfg to control compilation parameters, i.e. runtime libraries, extra linking/compilation flags.
  • Addition of *np.linalg.multi_dot*: compute the dot product of two or more arrays in a single function call, while automatically selecting the fastest evaluation order.
  • The new function `np.stack` provides a general interface for joining a sequence of arrays along a new axis, complementing `np.concatenate` for joining along an existing axis.
  • Addition of `nanprod` to the set of nanfunctions.
  • Support for the '@' operator in Python 3.5.

New in NumPy 1.9.2 (Mar 2, 2015)

  • This is a bugfix only release in the 1.9.x series.
  • Issues fixed:
  • `#5316 `__: fix too large dtype alignment of strings and complex types
  • `#5424 `__: fix ma.median when used on ndarrays
  • `#5481 `__: Fix astype for structured array fields of different byte order
  • `#5354 `__: fix segfault when clipping complex arrays
  • `#5524 `__: allow np.argpartition on non ndarrays
  • `#5612 `__: Fixes ndarray.fill to accept full range of uint64
  • `#5155 `__: Fix loadtxt with comments=None and a string None data
  • `#4476 `__: Masked array view fails if structured dtype has datetime component
  • `#5388 `__: Make RandomState.set_state and RandomState.get_state threadsafe
  • `#5390 `__: make seed, randint and shuffle threadsafe
  • `#5374 `__: Fixed incorrect assert_array_almost_equal_nulp documentation
  • `#5393 `__: Add support for ATLAS > 3.9.33.
  • `#5313 `__: PyArray_AsCArray caused segfault for 3d arrays
  • `#5492 `__: handle out of memory in rfftf
  • `#4181 `__: fix a few bugs in the random.pareto docstring
  • `#5359 `__: minor changes to linspace docstring
  • `#4723 `__: fix a compile issues on AIX

New in NumPy 1.9.2 RC 1 (Feb 2, 2015)

  • This is a bugfix only release in the 1.9.x series.
  • Issues fixed:
  • gh-5316: fix too large dtype alignment of strings and complex types
  • gh-5424: fix ma.median when used on ndarrays
  • gh-5481: Fix astype for structured array fields of different byte order
  • gh-5155: Fix loadtxt with comments=None and a string None data
  • gh-4476: Masked array view fails if structured dtype has datetime component
  • gh-5388: Make RandomState.set_state and RandomState.get_state threadsafe
  • gh-5390: make seed, randint and shuffle threadsafe
  • gh-5374: Fixed incorrect assert_array_almost_equal_nulp documentation
  • gh-5393: Add support for ATLAS > 3.9.33.
  • gh-5313: PyArray_AsCArray caused segfault for 3d arrays
  • gh-5492: handle out of memory in rfftf
  • gh-4181: fix a few bugs in the random.pareto docstring
  • gh-5359: minor changes to linspace docstring
  • gh-4723: fix a compile issues on AIX

New in NumPy 1.9.1 (Nov 3, 2014)

  • Issues fixed:
  • gh-5184: restore linear edge behavior of gradient to as it was in < 1.9. The second order behavior is available via the `edge_order` keyword
  • gh-4007: workaround Accelerate sgemv crash on OSX 10.9
  • gh-5100: restore object dtype inference from iterable objects without `len()`
  • gh-5163: avoid gcc-4.1.2 (red hat 5) miscompilation causing a crash
  • h-5138: fix nanmedian on arrays containing inf
  • gh-5203: copy inherited masks in MaskedArray.__array_finalize__
  • gh-2317: genfromtxt did not handle filling_values=0 correctly
  • gh-5067: restore api of npy_PyFile_DupClose in python2
  • gh-5063: cannot convert invalid sequence index to tuple
  • gh-5082: Segmentation fault with argmin() on unicode arrays
  • gh-5095: don't propagate subtypes from np.where
  • gh-5104: np.inner segfaults with SciPy's sparse matrices
  • gh-5136: Import dummy_threading if importing threading fails
  • gh-5148: Make numpy import when run with Python flag '-OO'
  • gh-5147: Einsum double contraction in particular order causes ValueError
  • gh-479: Make f2py work with intent(in out)
  • gh-5170: Make python2 .npy files readable in python3
  • gh-5027: Use 'll' as the default length specifier for long long
  • gh-4896: fix build error with MSVC 2013 caused by C99 complex support
  • gh-4465: Make PyArray_PutTo respect writeable flag
  • gh-5225: fix crash when using arange on datetime without dtype set
  • gh-5231: fix build in c99 mode

New in NumPy 1.8.1 RC 1 (Mar 14, 2014)

  • Issues fixed:
  • gh-4276: Fix mean, var, std methods for object arrays
  • gh-4262: remove insecure mktemp usage
  • gh-2385: absolute(complex(inf)) raises invalid warning in python3
  • gh-4024: Sequence assignment doesn't raise exception on shape mismatch
  • gh-4027: Fix chunked reading of strings longer than BUFFERSIZE
  • gh-4109: Fix object scalar return type of 0-d array indices
  • gh-4018: fix missing check for memory allocation failure in ufuncs
  • gh-4156: high order linalg.norm discards imaginary elements of complex arrays
  • gh-4144: linalg: norm fails on longdouble, signed int
  • gh-4094: fix NaT handling in _strided_to_strided_string_to_datetime
  • gh-4051: fix uninitialized use in _strided_to_strided_string_to_datetime
  • gh-4093: Loading compressed .npz file fails under Python 2.6.6
  • gh-4138: segfault with non-native endian memoryview in python 3.4
  • gh-4123: Fix missing NULL check in lexsort
  • gh-4170: fix native-only long long check in memoryviews
  • gh-4187: Fix large file support on 32 bit
  • gh-4152: fromfile: ensure file handle positions are in sync in python3
  • gh-4176: clang compatibility: Typos in conversion_utils
  • gh-4223: Fetching a non-integer item caused array return
  • gh-4197: fix minor memory leak in memoryview failure case
  • gh-4206: fix build with single-threaded python
  • gh-4220: add versionadded:: 1.8.0 to ufunc.at docstring
  • gh-4267: improve handling of memory allocation failure
  • gh-4267: fix use of capi without gil in ufunc.at
  • gh-4261: Detect vendor versions of GNU Compilers
  • gh-4253: IRR was returning nan instead of valid negative answer
  • gh-4254: fix unnecessary byte order flag change for byte arrays
  • gh-3263: numpy.random.shuffle clobbers mask of a MaskedArray
  • gh-4270: np.random.shuffle not work with flexible dtypes
  • gh-3173: Segmentation fault when 'size' argument to random.multinomial
  • gh-2799: allow using unique with lists of complex
  • gh-3504: fix linspace truncation for integer array scalar
  • gh-4191: get_info('openblas') does not read libraries key
  • gh-3348: Access violation in _descriptor_from_pep3118_format
  • gh-3175: segmentation fault with numpy.array() from bytearray
  • gh-4266: histogramdd - wrong result for entries very close to last boundary
  • gh-4408: Fix stride_stricks.as_strided function for object arrays
  • gh-4225: fix log1p and exmp1 return for np.inf on windows compiler builds
  • gh-4359: Fix infinite recursion in str.format of flex arrays
  • gh-4145: Incorrect shape of broadcast result with the exponent operator

New in NumPy 1.8 (Nov 1, 2013)

  • MAINT: Refactor eigh and eigvalsh and associated tests.
  • UPLO was cast to bytes and compared to a string which is always false in
  • python3.
  • Compatibility with Python3, which dosn't have string.lowercase.
  • MAINT: io: handle a bad fmt argument in savetxt by raising a ValueError.

New in NumPy 1.8 RC 2 (Oct 15, 2013)

  • New, no 2to3, Python 2 and Python 3 are supported by a common code base.
  • New, gufuncs for linear algebra, enabling operations on stacked arrays.
  • New, inplace fancy indexing for ufuncs with the ``.at`` method.
  • New, ``partition`` function, partial sorting via selection for fast median.
  • New, ``nanmean``, ``nanvar``, and ``nanstd`` functions skipping NaNs.
  • New, ``full`` and ``full_like`` functions to create value initialized arrays.
  • New, ``PyUFunc_RegisterLoopForDescr``, better ufunc support for user dtypes. Numerous performance improvements in many areas.

New in NumPy 1.8 RC 1 (Oct 2, 2013)

  • NPY_RELAXED_STRIDES_CHECKING
  • Large NPZ files >2GB can be loaded on 64-bit systems.
  • Binary operations with non-arrays as second argument
  • Function `median` used with `overwrite_input` only partially sorts array
  • Fix to financial.npv
  • New Features:
  • It is now possible to build numpy against OpenBLAS by editing site.cfg.
  • Euler's constant is now exposed in numpy as euler_gamma.
  • New modes 'complete', 'reduced', and 'raw' have been added to the qr
  • factorization and the old 'full' and 'economic' modes are deprecated.
  • The 'reduced' mode replaces the old 'full' mode and is the default as was
  • the 'full' mode, so backward compatibility can be maintained by not
  • specifying the mode.
  • New `invert` argument to `in1d`
  • The function `in1d` now accepts a `invert` argument which, when `True`,
  • causes the returned array to be inverted.
  • It is now possible to use `np.newaxis`/`None` together with index
  • arrays instead of only in simple indices. This means that
  • ``array[np.newaxis, [0, 1]]`` will now work as expected.
  • New convenience functions to create arrays filled with a specific value;
  • complementary to the existing `zeros` and `zeros_like` functions.
  • New functions `partition` and `argpartition`
  • New functions to partially sort arrays.
  • Partial sorting moves the value of selected elements into their position if the
  • array would be sorted via a selection algorithm. In the resulting array all
  • elements smaller than the sorted elements will placed before the it and all
  • equal or larger behind it.
  • This has a time complexity of O(n) compared to O(n log(n)) of a full sort.
  • New nan aware statistical functions are added. In these functions the
  • results are what would be obtained if nan values were ommited from all
  • computations.
  • The function ``at`` has been added to ufunc objects to allow in place
  • ufuncs with no buffering when fancy indexing is used. For example, the
  • following will increment the first and second items in the array, and will
  • increment the third item twice:
  • numpy.add.at(array, [0, 1, 2, 2], 1)
  • C-API:
  • New ufuncs can now be registered with built in input types and a custom
  • output type. Before this change, NumPy wouldn't be able to find the right
  • ufunc loop function when the ufunc was called from Python, because the ufunc
  • loop signature matching logic wasn't looking at the output operand type.
  • Now the correct ufunc loop is found, as long as the user provides an output
  • argument with the correct output type.
  • A simple test runner script ``runtests.py`` was added. It also builds Numpy via
  • ``setup.py build`` and can be used to run tests easily during development.
  • Improvements:
  • Performance in reading large files was improved by chunking (see also IO compatibility).
  • The `pad` function has a new implementation, greatly improving performance for
  • all inputs except `mode=` (retained for backwards compatibility).
  • Scaling with dimensionality is dramatically improved for rank >= 4.
  • Performance improvements to `isnan`, `isinf`, `isfinite` and `byteswap`
  • Performance improvements via SSE2 vectorization
  • Performance improvements to `median`
  • `median` is now implemented in terms of `partition` instead of `sort` which
  • reduces its time complexity from O(n log(n)) to O(n).
  • If used with the `overwrite_input` option the array will now only be partially
  • sorted instead of fully sorted.
  • Changes:
  • General:
  • The function np.take now allows 0-d arrays as indices.
  • The separate compilation mode is now enabled by default.
  • Several changes to np.insert and np.deletePadded regions from np.pad are now correctly rounded, not truncated.
  • C-API Array Additions:
  • One new function has been added to the ufunc C-API that allows to register
  • an inner loop for user types using the descr.

New in NumPy 1.7.1 (Apr 20, 2013)

  • Fix `1` is printed during numpy.test()
  • Backport memory leak fix
  • Backport fix complex polynomial fit
  • Make nansum work with booleans.
  • Backport large sort fixes
  • Backport object take
  • Backport nditer fix op axes initialization
  • npy-pkg-config ini files were missing after Bento build.
  • PyArray_LexSort allocates too much temporary memory.
  • Exported f2py_size symbol prevents linking multiple f2py modules.
  • Add mention of PyArray_SetBaseObject stealing a reference
  • Fix typo in fft docs (the indexing variable is 'm', not 'n').

New in NumPy 1.7.1 RC 1 (Mar 25, 2013)

  • TST: rework tests to work with Python 2.4
  • TST: skip general test on non-posix platforms

New in NumPy 1.7.0 (Feb 11, 2013)

  • ``where=`` parameter to ufuncs (allows the use of boolean arrays to choose where a computation should be done)
  • ``vectorize`` improvements (added 'excluded' and 'cache' keyword, general cleanup and bug fixes)
  • ``numpy.random.choice`` (random sample generating function)

New in NumPy 1.7.0 RC 2 (Feb 7, 2013)

  • ``where=`` parameter to ufuncs (allows the use of boolean arrays to choose where a computation should be done)
  • ``vectorize`` improvements (added 'excluded' and 'cache' keyword, general cleanup and bug fixes)
  • ``numpy.random.choice`` (random sample generating function)

New in NumPy 1.7.0 RC 1 (Jan 10, 2013)

  • ``where=`` parameter to ufuncs (allows the use of boolean arrays to choose where a computation should be done)
  • ``vectorize`` improvements (added 'excluded' and 'cache' keyword, general cleanup and bug fixes) * ``numpy.random.choice`` (random sample generating function)

New in NumPy 1.5.1 (Nov 20, 2010)

  • #937: linalg: lstsq should always return real residual
  • #1196: lib: fix negative indices in s_ and index_exp
  • #1287: core: fix uint64 -> Python int cast
  • #1491: core: richcompare should return Py_NotImplemented when undefined
  • #1517: lib: close file handles after use in numpy.lib.npyio.*
  • 1605: core: ensure PEP 3118 buffers can be released in exception handler
  • #1617: core: fix clongdouble cast to Python complex()
  • #1625: core: fix detection for ``isfinite`` routine
  • #1626: core: fix compilation with Solaris 10 / Sun Studio 12.1
  • #----: f2py: make f2py script runnable on Python 3
  • #1604: distutils: potential infinite loop in numpy.distutils
  • #1609: core: use accelerated BLAS, when available
  • #1610: core: ensure tofile and fromfile maintain file handle positions

New in NumPy 1.5.0 Beta 2 (Aug 17, 2010)

  • DOC: Fix documentation and examples in legendre.py.
  • ENH: Add support for Legendre polynomials.
  • Merge branch 'poly'
  • Mention functions for Chebyshev points in release notes.
  • Merge branch 'poly'

New in NumPy 1.5.0 Beta 1 (Aug 2, 2010)

  • BUG: Fix typo in commit r8564-66.
  • BUG: core: fix refcount error in PyArray_Take (#939)
  • r8569 | ptvirtan | 2010-07-31 21:07:42 +0800 (Sat, 31 Jul 2010) | 2 lines
  • BUG: core/umath: fix powers of complex 0 (#1271)

New in NumPy 1.4.1 (Apr 22, 2010)

  • 1336: Fix for 1299 exposes Bus error on Sparc
  • 1379: CPU ID not set correctly on PARISC
  • 1388: frombuffer calls PyErr_Format without throwing an error
  • log1p
  • kaiser for M=1
  • paver execution on Windows 7 for Python 2.6
  • several fixes to Chebyshev and Polynomial

New in NumPy 1.4.1 RC2 (Apr 14, 2010)

  • Bugs fixed
  • 1336: Fix for 1299 exposes Bus error on Sparc
  • 1379: CPU ID not set correctly on PARISC
  • 1388: frombuffer calls PyErr_Format without throwing an error
  • log1p
  • kaiser for M=1
  • paver execution on Windows 7 for Python 2.6
  • several fixes to Chebyshev and Polynomial

New in NumPy 1.4.0 (Jan 20, 2010)

  • r8028: 2 lines
  • REL: start rc3

New in NumPy 1.3.0 RC 1 (Mar 31, 2009)

  • This minor includes numerous bug fixes, official python 2.6 support, and several new features such as generalized ufuncs.

New in NumPy 1.2.1 (Nov 25, 2008)

  • bug fix for subclassing object arrays
  • MaskedArray fixes
  • Python 2.4 compatible
  • Setuptools fix
  • Improved documentation
  • Add measure to numpy.testing namespace

New in NumPy 1.2.0 (Oct 27, 2008)

  • #117 bdist_rpm and config_fc don't work together
  • #164 Patch to build numpy-0.9.8 on Windows X64 (AMD64) with MSVS2005
  • #195 Non-critical Valgrind issues
  • #228 Backward compatibility plan
  • #390 repr() on recarray failure
  • #392 histogram reverse indicies
  • #539 config parameters are not passed on to build
  • #576 numpy installation doesn't detect gfortran or g95
  • #605 Incorrect behaviour of numpy.histogram
  • #666 Sort memcpy reminder
  • #698 segfault float96 + None
  • #701 The returned keyword in average looks useless.
  • #707 numpy.array failes if the input is a list of matrixes
  • #730 long doubles display differently than the other float types
  • #750 Swig interface - Bug in FORTRAN-ordering support
  • #771 Valgrind warning when running test for ticket #658
  • #785 Error in linalg.norm()
  • #795 How to document classes, methods, attributes?
  • #796 Fake ticket to test Trac's ability to send notification emails
  • #798 `piecewise` exposes raw memory
  • #801 load_library cannot load libraries with extensions in the name:
  • #805 PyArray_FromDims should use intp instead of int type for the dims on 64-bit machines
  • #806 Conversion of masked arrays from one dtype to another fails because of fill_value
  • #807 massked_array_value /= scalar_value -> mask and data must be same size
  • #810 Verbose argument not effective for ndarrays in assert_equal
  • #812 numpy.sum, numpy.std, numpy.var fail on masked arrays
  • #813 _zerofill has a path with no return value
  • #814 self test failuers on Sun Solaris 10 System, version 1.2.0.dev5255
  • #815 self test failuers on RHE 4/32-bit, version 1.2.0.dev5255
  • #816 Constructing numpy.object_ causes a crash
  • #818 floats cast to integer overwrites two entries in a numpy integer matrix
  • #820 numpy.ma.array ignores mask when asembling masked array inputs
  • #822 Segfault deallocating long chains of views
  • #825 SIGBUS in UNICODE_getatter on Sparc Linux
  • #828 npy file format test failures on open solaris (x86, 32 bits)
  • #829 SEGFAULT when attempting to use arrays as indices into multi-dimensional arrays
  • #831 numpy.float64*poly1d = array
  • #832 numpy.ndarray relational operators do not (seem to) respect array priority
  • #833 No array function equivalent to matrix ** [PATCH]
  • #834 numpy.sort sometimes doesn't handle strings right
  • #835 bus error from numpy self tests on Solaris
  • #837 Infinite loop in fromfile & fromstring
  • #838 Improving numpy import time
  • #839 DataSource tests require network access
  • #843 Reference count error in PyArray_CanCoerceScalar
  • #845 deepcopy not identical to source
  • #846 Topical documentation as `numpy.doc`
  • #847 Warnings on printing pointers during compilation
  • #848 Another ref count leak using PyArray_DescrFromType
  • #849 Possible reference to deallocated object
  • #850 Memory leak in `_strings_richcompare`
  • #854 Non-standard branch cuts
  • #863 Regression in #658 ? (valgrind warning)
  • #865 Recent C99 changes (complex functions) break tests on windows
  • #869 defer 'import tempfile'
  • #874 quicker 'import numpy' time
  • #877 Segfault when using recarray 'O' entries
  • #878 np.fix does not work properly for negative integers
  • #881 Segmentation fault with numpy.object0
  • #882 Segmentation fault in array.choose with empty list as argument
  • #888 Incorrect value returned by numpy.array.max
  • #889 Incorrect value returned by numpy.array.max
  • #893 Numpy incompatible with python -OO
  • #895 Import error for matplotlib
  • #899 NumPy test suite fails to run with Python 2.6b3 and nose 0.10.3
  • #900 Compiler warnings
  • #903 Compilation fails on Cygwin
  • #905 numpy.loadtxt usecols argument no longer accepts numpy arrays
  • #906 Deepcopy does not copy _mask attribute of a masked array object