summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* TST: for numpy.random test, back off test precision a little.Ralf Gommers2012-05-191-1/+1
| | | | | This test was reported to be failing once for 1.6.2rc1, test precision may be set slightly too agressive.
* BUG: fix running tests with coverage=True.Ralf Gommers2012-05-191-2/+2
| | | | | | | | | The --cover-inclusive argument means that coverage.py tries to include every single .py file in the source tree in the coverage report. This leads to test errors, because it tries to import files like setupscons.py (which will of course directly fail for anyone not having numscons installed). (backport of bfaaefe5)
* TST: mark floating point error tests as unconditional knownfail. See #1755.Ralf Gommers2012-05-191-6/+2
|
* Merge pull request #265 from charris/backport-randomRalf Gommers2012-05-045-2448/+2870
|\ | | | | Backport numpy.random fix for MSVC.
| * BUG: PR #227, Use npy_intp instead of long in mtrand.cgohlke2012-05-015-2448/+2870
| | | | | | | | | | | | | | This fixes a problem on 64 bit Windows where a 64 bit index is needed but long is only 32 bits. Regenerate mtrand.c
* | Merge pull request #263 from charris/backport-polyRalf Gommers2012-05-049-303/+713
|\ \ | | | | | | Backport numpy.poly bug fixes and documentation improvements.
| * | STY: Code cleanup in polynomial [*]fromroots functions.Charles Harris2012-04-296-18/+18
| | | | | | | | | | | | Use divmod instead of // and % separately.
| * | ENH: Improve the computation of polynomials from roots.Charles Harris2012-04-296-24/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | The original method was overly sensitive to roundoff. Of the two approaches considered, gauss integration or binary subdivision of the roots, the latter is more compatible with using other number representations such as mpmath. No method is going to be suitable for large numbers of arbitrary zeros but the current method is a significant improvement.
| * | BUG: The polynomial convenience classes let different types interact.Charles Harris2012-04-291-38/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | In particular for arithmetic where one could end up with a Polynomial type with Chebyshev coefficients after an addition. It is unlikely that that would be done on purpose. The PolyDomain error message was also replaced by a TypeError with an appropriate message. That seems like a better choice.
| * | DOC: Document xxxfit functions in the polynomial package modules.Charles Harris2012-04-296-110/+160
| | |
| * | DOC: Rearrange the polynomial documents.Charles Harris2012-04-291-24/+47
| | | | | | | | | | | | | | | This is the first step in cleaning up the polynomial documentation and writing an instructional section on the convenience classes.
| * | ENH: Add companion matrix functions.Charles Harris2012-04-297-107/+299
| | | | | | | | | | | | | | | | | | | | | | | | | | | The new companion matrices are related to the old by a similarity transformation that makes them better conditioned for root finding. In particular, the companion matrices for the orthogonal polynomials are symmetric when the zeros of a single polynomial term is wanted. This produces better zeros for use in Gauss quadrature.
| * | ENH: Add some tests for polynomial printing.Charles Harris2012-04-291-0/+81
| |/
* | Merge pull request #262 from charris/backport-f2pyRalf Gommers2012-05-046-7/+40
|\ \ | | | | | | Backport f2py fixes and improvements.
| * | BUG: Fix f2py test_kind.py test.Charles Harris2012-04-291-5/+8
| | | | | | | | | | | | | | | Newer Fortran compilers for Intel may support quad precision, so _selected_real_kind_func needs to report that for precisions >= 19.
| * | ENH: Add new options extra_f77_compile_args and extra_f90_compile_args.Pearu Peterson2012-04-291-2/+2
| | | | | | | | | | | | | | | | | | | | | Add new options extra_f77_compile_args and extra_f90_compile_args to Configuration.add_extension. Configuration.add_library, and Extension. These options allow specifying extra compile options for compiling Fortran sources within a setup.py file.
| * | BLD: Improve reporting of fcompiler value.Pearu Peterson2012-04-291-12/+14
| | | | | | | | | | | | | | | follow build_ext coding convention in build_clib to catch strange fcompiler value reported in ml.
| * | ENH: Introduce new options extra_f77_compiler_args and extra_f90_compiler_args.Pearu Peterson2012-04-295-2/+32
| |/ | | | | | | | | | | | | Introduce new options extra_f77_compiler_args and extra_f90_compiler_args to Configuration.add_extension. Configuration.add_library, and Extension. These options allow specifying extra compile options for compiling Fortran sources within a setup.py file.
* | Merge pull request #261 from charris/backport-libRalf Gommers2012-05-048-50/+220
|\ \ | | | | | | Backport numpy.lib bug fixes.
| * | TST: fix string comparison test failures on Windows for Python 2.5.Ralf Gommers2012-05-021-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is caused by the inconsistent floating point handling of Python itself. On Windows with 2.5: >>> "%s" % 1e-6 '1e-006' With 2.6: >>> "%s" % 1e-6 '1e-06' Reviewed as PR-225.
| * | BUG: ticket #1936, loadtxt: fix extra nesting for subarray dtypes.Mark Wiebe2012-04-292-5/+30
| | |
| * | BUG: ticket #1918, use Py_TYPE to access ob_type, so it works also on Py3Pauli Virtanen2012-04-291-9/+11
| | |
| * | BUG: ticket #1793, fix failing npyio test under py3k. Thanks to Derek Homeier.Ralf Gommers2012-04-292-6/+16
| | |
| * | BUG: ticket #1848, make tril/triu return the same dtype as the original array.Fabian Pedregosa2012-04-292-2/+14
| | | | | | | | | | | | | | | | | | | | | This should fix: * http://projects.scipy.org/numpy/ticket/1848 * http://projects.scipy.org/scipy/ticket/1449
| * | BUG: ticket #1899, fixed histogramdd bug with empty inputs.David Huard2012-04-293-5/+11
| | |
| * | BUG: ticket #1387, allow bincount to accept empty arrays.Skipper Seabold2012-04-293-11/+31
| | |
| * | BUG: ticket #1573, savetxt now handles complex arrays.Paul Anton Letnes2012-04-292-10/+65
| | |
| * | ENH: ticket #2048, lib: break reference cycle in NpzFile (#2048)Pauli Virtanen2012-04-292-1/+22
| |/ | | | | | | | | This allows these objects to be freed by refcount, rather than requiring the gc, which can be useful in some situations.
* | Merge pull request #260 from charris/backport-coreRalf Gommers2012-05-0437-328/+1010
|\ \ | | | | | | | | | | | | Backport numpy.core bug fixes. All tested on MSVC, OS X and with a full release build on Windows.
| * | TST: Remove tests of complex __format__.Charles Harris2012-05-021-4/+1
| | |
| * | Fix unicode string length computation in UNICODE_compare and add test.Thouis (Ray) Jones2012-05-022-0/+26
| | |
| * | BUG: PR #188, PyArray_{Get,Set}Map using low-precision counterDavid Warde-Farley2012-05-011-2/+2
| | | | | | | | | | | | Should be using npy_intp rather than int.
| * | BUG: ticket #2073, fix float16 __array_interface__ bug.Nicolas Pinto2012-04-292-142/+26
| | | | | | | | | | | | | | | | | | | | | Squashed backport also containing two following commits. TST: Test float16 __array_interface__. STY: Cleanup test_half.py a bit.
| * | BUG: ticket #2021. Fix segfault.Charles Harris2012-04-294-19/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The return from PyArray_DescrFromObject PyArray_SearchSorted needed to be checked for NULL. Also added checks in other spots where PyArray_DescrFromObject was called. Added regression test for same. Made a few small code cleanups along the way. All the checks may not be necessary, but 1) No one should have to waste brain cycles figuring that out. 2) Bugs happen. 3) Things change.
| * | PY3: Fix for python3.2.Charles Harris2012-04-292-2/+2
| | |
| * | TST: Silence some test warnings.Charles Harris2012-04-292-2/+2
| | |
| * | BUG: ticket #2045, make attribute/iterator_element deletions not segfault.Charles Harris2012-04-295-33/+67
| | | | | | | | | | | | | | | | | | Attempted attribute deletion raises an Attribute error. Deleting an iterator index or slice raises a TypeError. This is a change for nditer, which used to raise ValueError when deletes were attempted.
| * | BUG: ticket #2046, deleting array attributes causes segfault.Charles Harris2012-04-292-3/+50
| | | | | | | | | | | | | | | Add check for NULL in setter functions and return Attribute error if found.
| * | BUG: ticket #2033, a**2.0 has incorrect type.Charles Harris2012-04-292-25/+65
| | | | | | | | | | | | Backport of PR #207.
| * | BUG: ticket #1952, allow floating ddof in std and var.Charles Harris2012-04-293-10/+11
| | | | | | | | | | | | Also return nan for resulting non-positive degrees of freedom.
| * | BUG: ticket #2017, fix type hash.David Cournapeau2012-04-293-43/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a squashed backport of 4 commits. STY: cleanup hashdesc.c to follow our C conventions. BUG: fix inconsistencies in dtype flag type at the C level. Conflicts: numpy/core/src/multiarray/descriptor.c numpy/core/src/multiarray/hashdescr.c BUG: fix #2017 by ignoring type_num in the hash input. Since type_num is not considered in PyArray_EquivTypes (for dtype equality comparison), seems reasonable to ignore it for hashing as well. Conflicts: numpy/core/tests/test_dtype.py BUG: fix flags type when exposed to python.
| * | BUG: array_divmod did not check for Py_NotImplemented.Charles Harris2012-04-261-0/+7
| | | | | | | | | | | | | | | The consequence of this bug was the __rdivmod__ wasn't called for user classes that defined __array_priority__.
| * | BUG: ticket #1948, fix regression for indexing chararrays with empty list.Ralf Gommers2012-04-262-1/+8
| | |
| * | BUG: ticket #1905, explicitly check for NaNs in allclose().Ralf Gommers2012-04-261-11/+22
| | | | | | | | | | | | | | | Also clean up the logic behind handling infs. Squashed backport of 3503c5f..aea76b8.
| * | BUG: ticket #1776, make complex division by zero to yield inf properly.Pauli Virtanen2012-04-264-9/+64
| | |
| * | BUG: ticket #1747, make np.median() work for 0-D arrays.Ralf Gommers2012-04-262-2/+16
| | |
| * | ENH: ticket #1675, Add scalar support for the format() function.Mark Wiebe2012-04-262-0/+106
| | | | | | | | | | | | Backport of 88e8c15.
| * | BUG: Ticket #1672 fix allclose to work for scalar inf.Ralf Gommers2012-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport of 7497d60. Also actually runs tests. Tests were not run before because the allclose test class was a subclass of TestCase and used generators. This is not supported by nose, tests will be skipped. Also changes plain asserts to assert_(). Thanks to Justin Peel for the allclose inf fix.
| * | DOC: ticket #1446, correct note about correspondence vstack andRalf Gommers2012-04-261-2/+2
| | | | | | | | | | | | concatenate.
| * | BUG: ticket #1138Hrvoje Niksic2012-04-262-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is a backport of 4daf949 PyArray_FromBuffer: Allow creating arrays from empty buffers or empty slices. That finally closed the ticket.