summaryrefslogtreecommitdiff
path: root/numpy/linalg/linalg.py
Commit message (Collapse)AuthorAgeFilesLines
...
* BUG: Allos linalg.solve to handle zero equations.Sebastian Berg2013-10-011-4/+5
| | | | | This was previously correct, but the special case was missing since the gufunc code cannot handle it.
* STY: Giant comma spacing fixup.Charles Harris2013-08-181-8/+8
| | | | | | | 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.
* Merge pull request #2721 from abalkin/masterCharles Harris2013-08-151-1/+1
|\ | | | | Mistake in linalg.eig() documentation
| * Fixed a mistake in linalg.eig() documentation.Alexander Belopolsky2012-11-091-1/+1
| |
* | ENH: inv/solve work with empty inner and others empty outer arraySebastian Berg2013-08-041-16/+34
| | | | | | | | | | | | | | This makes the inverse of a 0x0 array simply be 0x0 again. It also modifies the no-empty array check in favor of a no-empty *inner* array, since the gufuncs seem to handle the other case fine.
* | MAINT: linalg: some more clean up in norm: 'nd' was defined but not usedWarren Weckesser2013-07-201-5/+4
| |
* | BUG: linalg: norm was computing and then ignoring a productWarren Weckesser2013-07-191-2/+1
| |
* | MAINT: Use np.errstate context manager.Charles Harris2013-07-111-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Now that Python < 2.6 is no longer supported we can use the errstate context manager in places where constructs like ``` old = seterr(invalid='ignore') try: blah finally: seterr(**old) ``` were used.
* | DOC: another minor tweak of linalg.lstsq doc stringFazlul Shahriar2013-06-131-1/+2
| |
* | DOC: minor tweak of linalg.lstsq doc stringFazlul Shahriar2013-06-131-2/+1
| |
* | DOC: fix typo in linalg.lstsq doc stringFazlul Shahriar2013-06-131-2/+2
| |
* | BUG: import longdouble instead of float128Julian Taylor2013-06-071-3/+3
| | | | | | | | | | | | i386 does not have 16 byte long double by default (only 12 byte/float96) so the import prevents numpy startup. Introduced in 1.8.0dev 40000f508
* | typoargriffing2013-06-051-1/+1
| |
* | 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-041-2/+2
| |
* | ENH: linalg: allow the 'axis' argument of linalg.norm to be a 2-tuple, in ↵Warren Weckesser2013-06-041-16/+85
| | | | | | | | 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-011-14/+42
| | | | | | | | | | 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.
* | ENH: linalg: use signature= for internal casting rather than astype in ↵Pauli Virtanen2013-04-121-12/+23
| | | | | | | | linalg ufuncs
* | MAINT: move umath_linalg under numpy/linalg and use the same lapack_litePauli Virtanen2013-04-101-3/+1
| | | | | | | | Also, link umath_linalg against the system BLAS/LAPACK if available.
* | ENH: linalg: use _umath_linalg for svd()Pauli Virtanen2013-04-101-59/+39
| |
* | ENH: linalg: use _umath_linalg for eigh()Pauli Virtanen2013-04-101-44/+24
| |
* | ENH: linalg: use _umath_linalg for eig()Pauli Virtanen2013-04-101-58/+29
| |
* | ENH: linalg: use _umath_linalg for eigvalsh()Pauli Virtanen2013-04-101-44/+20
| |
* | ENH: linalg: use _umath_linalg for eigvals()Pauli Virtanen2013-04-101-42/+20
| |
* | ENH: linalg: use _umath_linalg for cholesky()Pauli Virtanen2013-04-101-22/+12
| |
* | ENH: linalg: use _umath_linalg for solve()Pauli Virtanen2013-04-101-34/+18
| |
* | ENH: linalg: use _umath_linalg for inv()Pauli Virtanen2013-04-101-8/+28
| |
* | ENH: linalg: use _umath_linalg for slogdet()Pauli Virtanen2013-04-101-26/+23
| |
* | ENH: linalg: use _umath_linalg for det()Pauli Virtanen2013-04-101-5/+20
| |
* | ENH: linalg: add helper routines for gufuncsPauli Virtanen2013-04-101-1/+48
| |
* | 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.
* | Merge pull request #2965 from charris/fix-qr-modeCharles Harris2013-04-041-34/+85
|\ \ | | | | | | Fix qr mode
| * | ENH: Add `raw`, `reduced`, `complete` modes to qr factorization.Charles Harris2013-04-011-34/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If K = min(M, N) where the matrix to be factored has dimensions MxN, then 'reduced' : returns q, r with dimensions (M, K), (K, N) (default) 'complete' : returns q, r with dimensions (M, M), (M, N) 'r' : returns r only with dimensions (K, N) 'raw' : returns h, tau with dimensions (N, M), (K,) 'full' : alias of 'reduced', deprecated 'economic' : returns h from 'raw', deprecated. The options 'reduced', 'complete, and 'raw' are new. The default is 'reduced' and to maintain backward compatibility with earlier versions of numpy both it and the old default 'full' can be omitted. Note that array `h` returned in 'raw' mode is transposed for calling Fortran. Both the 'full' and 'economic' modes are deprecated. For backwards compatibility the modes 'full', 'economic' may be passed using only the first letter but all others must be spelled out.
* | | 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: Replace xrange by range and use list(range(...)) where neededCharles Harris2013-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In python3 range is an iterator and `xrange` has been removed. This has two consequence for code: 1) Where a list is needed `list(range(...))` must be used. 2) `xrange` must be replaced by `range` Both of these changes also work in python2 and this patch makes both. There are three places fixed that do not need it, but I left them in so that the result would be `xrange` clean. Closes #3092
* | 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.
* | Fix typo in SVD usage exampleVladimir Rutsky2013-01-121-1/+1
|/
* Fixed parenthesis typoGuillaume Gay2012-10-221-1/+1
|
* Taking njsmith comment into account Guillaume Gay2012-10-221-2/+2
|
* Correct `linalg.solve` doc stringGuillaume Gay2012-10-221-2/+2
| | | Fixes issue 2692
* BUG: change default threshold for matrix_rankMatthew Brett2012-07-141-19/+44
| | | | | | | 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.
* DOC: merge doc wiki edits. A number of small edits in linalg and lib.Ralf Gommers2012-07-071-40/+41
|
* DOC: merge wiki doc edits.Ralf Gommers2012-03-031-0/+1
|
* DOC: minor documentation fixesPauli Virtanen2011-06-251-2/+2
|
* BUG: Add not empty check to linalg.qrSkipper Seabold2011-05-101-0/+1
|
* BUG: linalg: Update the rwork size in the call to zgesdd to reflect a ↵Jason Grout2011-04-261-1/+2
| | | | | | documentation bugfix in Lapack SVN revision 729. See http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=2&t=1779
* STY: Fix up some two line old-style exceptions.Charles Harris2011-04-051-4/+4
|
* STY: Update exception styles, trickier ones.Charles Harris2011-04-051-4/+4
|