summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Do not compare string or unicode valuesJohannes Schönberger2013-06-061-1/+1
|
* Add doc string to creation test classJohannes Schönberger2013-06-061-0/+2
|
* Comment test casesJohannes Schönberger2013-06-061-6/+10
|
* Add tests for zeros, ones, empty and filledJohannes Schönberger2013-06-061-0/+45
|
* Add filled_like to doc string of test classJohannes Schönberger2013-06-061-1/+1
|
* Use more idiomatic way of None-checkJohannes Schönberger2013-06-061-1/+1
|
* Use commin method to compare array valuesJohannes Schönberger2013-06-061-40/+16
|
* Add tests for filled_like functionJohannes Schönberger2013-06-062-21/+54
|
* Fix doc stringJohannes Schönberger2013-06-061-3/+1
|
* Replace nans, nans_like, infs, infs_like with filled functionsJohannes Schönberger2013-06-061-93/+15
|
* Fix typo in doc stringJohannes Schönberger2013-06-061-4/+4
|
* Add short note in doc string about dtype for non-numbersJohannes Schönberger2013-06-061-0/+12
|
* Add more related functionsJohannes Schönberger2013-06-061-0/+5
|
* Add nans, infs, nans_like, infs_like convenience functionsJohannes Schönberger2013-06-061-1/+139
|
* TST: fix some function name conflictsJulian Taylor2013-06-054-4/+4
| | | | enables a few extra tests
* typoargriffing2013-06-051-1/+1
|
* Merge pull request #3387 from WarrenWeckesser/norm-axisnjsmith2013-06-052-51/+209
|\ | | | | ENH: linalg: Add an `axis` argument to linalg.norm
| * MAINT: linalg: simplify the computation of the svd-based matrix norms, and ↵Warren Weckesser2013-06-051-11/+3
| | | | | | | | tweak the norm function's docstring.
| * STY: linalg: some PEP8 clean up.Warren Weckesser2013-06-042-36/+40
| |
| * ENH: linalg: allow the 'axis' argument of linalg.norm to be a 2-tuple, in ↵Warren Weckesser2013-06-042-19/+134
| | | | | | | | which case matrix norms of the collection of 2-D matrices are computed.
| * DOC: linalg: Improve the docstring of the new norm function.Warren Weckesser2013-06-021-3/+4
| |
| * MAINT: linalg: removed unused imports from linalg.pyWarren Weckesser2013-06-011-5/+4
| |
| * ENH: linalg: Add the `axis` keyword to linalg.norm.Warren Weckesser2013-06-012-19/+66
| | | | | | | | | | Also fixed a bug that occurred with integer arrays and negative ord. For example, norm([1, 3], -1) returned 1.0, but the correct value is 0.75.
* | TST: linalg: loosen the requirements of some tests in test_blasdot.py. ↵Warren Weckesser2013-06-041-9/+9
| | | | | | | | Addresses part of gh-3399.
* | BUG: fix typo on npy_config.h include guardJulian Taylor2013-06-032-2/+1
|/ | | | | Was overlooked as loops.c.src where np.isnan lives includes it directly. Now all isnan calls in numpy profit from the improvement.
* BUG: fix memory leak and double execution in dotJulian Taylor2013-05-311-1/+3
| | | | | introduced in 1.8.0dev 914294a42a closes gh-3384
* MAINT: use npy_is_aligned in a few more placesJulian Taylor2013-05-292-4/+5
|
* BUG: check alignment before loading the dataJulian Taylor2013-05-291-26/+30
| | | | | some cpus don't support loads that are not aligned to the elementsize. regression introduced in 99cb95f7379a9.
* MAINT: move byteswap macros to inlines in headerJulian Taylor2013-05-293-32/+82
| | | | | removes some duplication and allows older gcc that can't detect the byteswap pattern to use the faster swapping instructions.
* BUG: Handle a version string from a custom-built mingw64.mwtoews2013-05-292-1/+2
| | | | | | | | The custom build compiler "GNU Fortran (rubenvb-4.8.0) 4.8.0" was incorrectly parsed as version '-4.8.0' and the flag "-mno-cygwin" was added to the compilation. See http://cens.ioc.ee/pipermail/f2py-users/2010-October/002092.html.
* BUG: The npv function in financial.py was incorrectly implemented.bebert2182013-05-292-6/+6
| | | | | | | | | | | | | Correct the implementation of the npv function, its documentation, and the mirr function that depends on it. The test_financial.py is also corrected to take into account those modifications The npv function behavior was contrary to what the documentation stated as it summed indexes 1 to M instead of 0 to M-1. The mirr function used a corrective factor to get the correct result in spite of that error so that factor is removed. Closes #649
* Merge pull request #3358 from leonnnn/matrix-typeerrorCharles Harris2013-05-292-2/+15
|\ | | | | ENH: Fix SyntaxError when matrix() is called with invalid string
| * ENH: Fix SyntaxError when matrix() is called with invalid stringLeon Weber2013-05-292-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | The numpy.matrix constructor uses eval(str.translate(table)) to convert input strings to numeric matrix contents. str.translate(table) will return empty string if str consists only of invalid characters, causing SyntaxError in eval(). This is confusing, as one would expect an exception like TypeError when trying to construct a matrix from invalid input. This fix makes sure eval() is only called if str is not empty and TypeError is raised otherwise.
* | MAINT: remove duplicated array extent calculationJulian Taylor2013-05-282-30/+12
| |
* | ENH: improve performance of byte_bounds for continous arraysJulian Taylor2013-05-281-2/+1
| |
* | ENH: implement may_share_memory in CJulian Taylor2013-05-285-32/+73
| | | | | | | | | | | | | | | | | | memmap needs to call it in __array_finalize__ to determine if it can drop the references on copies. The python version if may_share_memory caused significant slowdowns when slicing these maps. closes gh-3364
* | TST: remove docstrings from test_ functionsChristoph Gohlke2013-05-271-13/+8
| | | | | | | | See doc/TESTS.rst.txt for the reason.
* | BUG: Fix multivariate_normal issue with 'size' argumentChristoph Gohlke2013-05-273-4750/+5513
| | | | | | | | Ensure that the multivariate_normal size argument can be a numpy integer. Add regression test. Apply PEP8 to test_regression.py. Regenerate mtrand.c.
* | Merge pull request #3366 from dnmiller/doc-fixCharles Harris2013-05-271-1/+2
|\ \ | | | | | | DOC: Correcting docstring for asscalar
| * | DOC: Correcting docstring for asscalarDan Miller2013-05-251-1/+2
| | |
* | | Merge pull request #3374 from cgohlke/patch-4seberg2013-05-271-2/+2
|\ \ \ | | | | | | | | TST: rename 2nd test_hypergeometric_range function
| * | | TST: remove docstring from test_randint_range functionChristoph Gohlke2013-05-271-1/+1
| | | | | | | | | | | | See doc/TESTS.rst.txt for the reason.
| * | | TST: rename one test_hypergeometric_range functionChristoph Gohlke2013-05-271-1/+1
| | | | | | | | | | | | There are two test functions named `test_hypergeometric_range`
* | | | BUG: fix leak and possible null dereferenceJulian Taylor2013-05-271-1/+1
|/ / /
* | | BUG: set filename to None for memmaps of unnamed filesJulian Taylor2013-05-252-2/+12
| | | | | | | | | | | | Closes gh-3302
* | | Merge pull request #3341 from juliantaylor/sse2-sqrtCharles Harris2013-05-2511-178/+423
|\ \ \ | | | | | | | | vectorize sqrt ufunc with SSE2
| * | | MAINT: use sse header macros for einsum sse activationJulian Taylor2013-05-252-3/+7
| | | |
| * | | ENH: vectorize sqrt ufunc using SSE2Julian Taylor2013-05-2510-176/+417
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specialize the sqrt ufunc for float and double and vectorize it using SSE2. improves performance by 4/2 for float/double if one is not memory bound due to non-cached data. performance is always better on all tested machines (amd phenom X2, intel xeon 5xxx/7xxx, core2duo, corei7) This version will not set errno on invalid input, but numpy only checks the fpu flags so the behavior is the same. In principle the compiler could autovectorize it when setting ffast-math (for no errno) and specializing the loop for the vectorizable strides and giving it some hints (restrict, __builtin_assume_aligned, etc.), but its simpler and more reliable to simply vectorize it by hand.
* | | MAINT: fix some compiler warningsJulian Taylor2013-05-2513-17/+19
| |/ |/| | | | | | | implicit declarations, wrong declarations, unused variables and fixes a comparison typo bug in multiarraymodule.c
* | Merge pull request #3324 from nouiz/prio_cmpseberg2013-05-233-40/+194
|\ \ | |/ |/| Make comparison function (gt, ge, ...) respect __array_priority__.