summaryrefslogtreecommitdiff
path: root/numpy/linalg/tests
Commit message (Collapse)AuthorAgeFilesLines
* 2to3: Apply `print` fixer.Charles Harris2013-04-063-3/+3
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* Merge pull request #2965 from charris/fix-qr-modeCharles Harris2013-04-042-0/+128
|\ | | | | Fix qr mode
| * TST: Add more tests for qr factorization.Charles Harris2013-04-012-0/+128
| | | | | | | | | | | | | | | | The new tests cover the new modes 'complete' and 'raw'. The testing of the 'reduced', aka 'full' mode is improved and tests are added for the deprecation of the 'full' and 'economic' modes. A new file `numpy/linalg/tests/test_deprecations.py` was added for the deprecation tests.
* | 2to3: Use absolute imports.Charles Harris2013-03-283-3/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-013-0/+6
| | | | | | | | 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.
* 2to3: Use modern exception syntax.Charles Harris2013-02-261-1/+1
| | | | Example: except ValueError,msg: -> except ValueError as msg:
* BUG: change default threshold for matrix_rankMatthew Brett2012-07-141-1/+16
| | | | | | | The default tolerance threshold for matrix_rank was passing as full rank some matrices that were numerically rank deficient. This commit changes the default tolerance to match the algorithm in MATLAB and Numerical recipes.
* BUG: native but not '=' byte order error in lapackMatthew Brett2012-03-171-0/+22
| | | | | | The check_object call in lapack_litemodule was checking if the passed array was of byteorder '=' or '|', but this check failed for arrays of specified native byte order ('<' on little-endian).
* PY3: Fix FindDependenciesLdd "ResourceWarning: unclosed file".Charles Harris2012-03-121-1/+2
|
* STY: Cleanup test_linalg a bit.Charles Harris2011-05-101-22/+42
|
* TST: Add test for QR on empty arraySkipper Seabold2011-05-101-0/+5
|
* STY: Replace assert by assert_ in tests. There remain 124 uses ofCharles Harris2011-04-051-8/+8
| | | | assert in non-testing files that should be checked for correctness.
* STY: Replace old style classes in tests with classes subclassing object.Charles Harris2011-04-052-4/+4
|
* BUG: Python 2.4 doesn't accept the construction class foo():Charles Harris2011-04-051-1/+1
|
* BUG: fix tests in test_linalg.py. Do not subclass from TestCase.Ralf Gommers2011-04-031-6/+6
|
* BUG: linalg: lstsq should always return real residuals (#937)Pauli Virtanen2010-10-101-3/+80
|
* ENH: linalg: convert non-native endian arrays to native-endian before ↵Pauli Virtanen2010-05-111-0/+9
| | | | handing them to lapack_lite
* ENH: Add slogdet to the linalg module. The patch is from njs withCharles Harris2010-05-051-0/+19
| | | | slogdet substituted for sign_log_det. Closes ticket #1402.
* DEP: Fix one more deprecated unittest function.Charles Harris2010-02-211-1/+1
|
* 3K: linalg: fix integer division issue and testsPauli Virtanen2010-02-211-1/+3
|
* ENH - added matrix_rank function to linalgMatthew Brett2009-12-221-1/+21
|
* linalg: support '0-norm' (scipy ticket #1037)Pauli Virtanen2009-11-061-0/+2
|
* Fix eigenvalue tests, the eigenvalues needed sorting.Charles Harris2009-03-271-8/+8
| | | | Fix test_nanmin_alnan_on_axis, use assert_array_equal.
* BUG: fix #786, bad exception for wrong order for linalg.norm.David Cournapeau2009-03-022-6/+5
|
* Fix norm tests for single prec.David Cournapeau2009-03-021-11/+27
|
* Abstract away dtype for norm test.David Cournapeau2009-03-021-8/+14
|
* rename check_empty method to test_, so that is is picked up by nose.David Cournapeau2009-03-021-1/+1
|
* TEST: add tests for norm from #763.David Cournapeau2009-03-021-1/+41
|
* Use new-style classes with multiple-inheritance to address bug in IronPython.Stefan van der Walt2009-01-061-1/+1
|
* Trailing spaces.David Cournapeau2008-11-081-2/+2
|
* Fix fortrab ABI mismatch test.David Cournapeau2008-11-081-10/+11
|
* Detect gfrotran/g77 mismatch.David Cournapeau2008-11-081-1/+13
|
* Start working on test to detect fortran compiler mismatch.David Cournapeau2008-11-081-0/+35
|
* Added tests for eigenvalue/vector functions for Hermitian matrices..Alan McIntyre2008-07-141-0/+55
|
* Clean up test output such that a completely-passing test suite has no ↵Robert Kern2008-07-032-5/+1
| | | | extraneous output.
* Restore old test framework classes.Alan McIntyre2008-06-212-2/+2
| | | | | | | | | | | 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-172-27/+30
| | | | modules.
* Fix ordering assumption in regression test.Charles Harris2008-05-211-2/+4
|
* Keep singular values and eigenvalues as 1D arrays until the matrix indexingCharles Harris2008-04-291-4/+0
| | | | | controversy is settled. This will also keep code that uses diag(ev), from breaking.
* Fix test of lstsqr to work with matrix tests.Charles Harris2008-04-271-1/+1
| | | | Fix lstsq
* Add tests for matrix return types.Charles Harris2008-04-271-6/+38
| | | | | Fix cond computations for matrices. lstsq is currently broken for matrices, will fix shortly.
* Make functions in linalg.py accept nestes lists.Charles Harris2008-04-271-8/+14
| | | | | Use wrap to keep matrix environment intact. Base patch from nmb.
* ran reindent in preparation for the 1.1 releaseJarrod Millman2008-04-201-4/+4
|
* Added function for computing condition number, with tests and docs; closes #622.aarchiba2008-04-081-1/+16
|
* Test that matrix_power behaves correctly for boolean matrices.aarchiba2008-04-071-0/+4
|
* Factor out matrix_multiply from defmatrix. Based on a patch byStefan van der Walt2008-04-061-8/+62
| | | | Anne Archibald.
* 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
|
* Apply patch to fix ticket #557 (pinv causing error with empty arrays)Travis Oliphant2007-09-211-1/+10
|