summaryrefslogtreecommitdiff
path: root/numpy/linalg/tests/test_regression.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Add better error handling in linalg.norm for vectors and clarify it ↵Jim2020-03-121-2/+2
| | | | | | | | | | | | in documentation (#15740) * Clarify `fro` and `nuc` usage in linalg.norm documentation (see #15533). * Add improved error handling when getting Frobenius norm from a vector (see #15533). * Fix comment in linalg norm test. Closes gh-15533.
* MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-051-1/+1
| | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* MAINT: revert gh-14800, which gave precedence to OO->O over OO->?mattip2019-11-061-3/+4
|
* ENH: add OO->? loops, use np.compare(a, b, dtype=bool), add commentsmattip2019-10-301-2/+2
|
* WIP, DEP, ENH: finish richcompare changes from 1.10mattip2019-10-291-4/+3
|
* MAINT: Remove all uses of run_module_suite.Charles Harris2018-04-061-5/+1
| | | | | That function is nose specific and has not worked since `__init__` files were added to the tests directories.
* BUG: Ensure lstsq can handle RHS with all sizes.Marten van Kerkwijk2017-11-061-0/+12
| | | | | | | This fixes a bug in the creation of workspace arrays for a call to `lapack_lite.zgelsd`, which led to segmentation faults when a RHS was passed in that had larger size than the size of the matrix.
* MAINT: Remove `level=` keyword from test arguments.Charles Harris2017-08-051-6/+3
| | | | | | I don't know what that argument was used for, but it showis up in old tests and is not explicitly used within the tests. I assume it was part of an old testing framework and is now longer needed.
* TST: Remove unittest dependencies in numpy/linalg/tests.Charles Harris2017-07-241-25/+25
|
* TST: Silence warnings otherwise shown in release modeSebastian Berg2016-09-021-2/+6
| | | | | These are warnings, which when raised as an error for one reason or another are already silenced.
* TST: More tests for linalg.norm() with object arraysMatthias Geier2016-05-031-1/+41
|
* BUG: linalg.norm(): Don't convert object arrays to floatMatthias Geier2016-04-291-0/+6
| | | | This fixes #7575 (Regression in linalg.norm() using dtype=object).
* STY: PEP8 and pyflakes fixes for numpy/linalg/tests.Charles Harris2015-07-251-28/+33
|
* TST: add more regression testing related to ↵alex2014-05-261-0/+3
| | | | https://github.com/numpy/numpy/issues/4733
* BUG: svd ufunc typoalex2014-05-221-1/+9
|
* BUG: Delay npyiter size check when size may changeSebastian Berg2014-03-121-0/+6
| | | | | | | | | | | | | When a multi index is tracked and RemoveAxis can be called, the size of the iterator may still change. This was causing failures for example for the SVD, because the gufunc machinery requires a temporarily larger iterator for output allocation. Thanks to Jaime (jaime.frio@gmail.com) for noting that this is plausible since the size check can be delayed pretty ok up until GetIterNext (or similar functions). Closes gh-4442
* STY: Giant comma spacing fixup.Charles Harris2013-08-181-4/+4
| | | | | | | Run the 2to3 ws_comma fixer on *.py files. Some lines are now too long and will need to be broken at some point. OTOH, some lines were already too long and need to be broken at some point. Now seems as good a time as any to do this with open PRs at a minimum.
* 2to3: Apply `print` fixer.Charles Harris2013-04-061-1/+1
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* 2to3: Use absolute imports.Charles Harris2013-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new import `absolute_import` is added the `from __future__ import` statement and The 2to3 `import` fixer is run to make the imports compatible. There are several things that need to be dealt with to make this work. 1) Files meant to be run as scripts run in a different environment than files imported as part of a package, and so changes to those files need to be skipped. The affected script files are: * all setup.py files * numpy/core/code_generators/generate_umath.py * numpy/core/code_generators/generate_numpy_api.py * numpy/core/code_generators/generate_ufunc_api.py 2) Some imported modules are not available as they are created during the build process and consequently 2to3 is unable to handle them correctly. Files that import those modules need a bit of extra work. The affected files are: * core/__init__.py, * core/numeric.py, * core/_internal.py, * core/arrayprint.py, * core/fromnumeric.py, * numpy/__init__.py, * lib/npyio.py, * lib/function_base.py, * fft/fftpack.py, * random/__init__.py Closes #3172
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-0/+2
| | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates.
* ENH: linalg: convert non-native endian arrays to native-endian before ↵Pauli Virtanen2010-05-111-0/+9
| | | | handing them to lapack_lite
* BUG: fix #786, bad exception for wrong order for linalg.norm.David Cournapeau2009-03-021-0/+5
|
* Clean up test output such that a completely-passing test suite has no ↵Robert Kern2008-07-031-2/+0
| | | | extraneous output.
* Restore old test framework classes.Alan McIntyre2008-06-211-1/+1
| | | | | | | | | | | Added numpy.testing.run_module_suite to simplify "if __name__ == '__main__'" boilerplate code in test modules. Removed numpy/testing/pkgtester.py since it just consisted of an import statement after porting SciPy r4424. Allow numpy.*.test() to accept the old keyword arguments (but issue a deprecation warning when old arguments are seen). numpy.*.test() returns a test result object as before. Fixed typo in distutils doc.
* Switched to use nose to run tests. Added test and bench functions to all ↵Alan McIntyre2008-06-171-2/+3
| | | | modules.
* Fix ordering assumption in regression test.Charles Harris2008-05-211-2/+4
|
* ran reindent in preparation for the 1.1 releaseJarrod Millman2008-04-201-4/+4
|
* Add regression for #627.David Cournapeau2008-03-211-1/+12
|
* Add regression test for #662.David Cournapeau2008-03-211-1/+12
|
* Add regression test for ticket #652.David Cournapeau2008-03-211-0/+34