summaryrefslogtreecommitdiff
path: root/numpy/linalg/linalg.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * MAINT: compute residuals inside the ufuncEric Wieser2018-04-171-10/+2
| | | | | | | | | | | | This prevents an overly large output array being allocated. It also means the the residuals can be handled as a separate out argument in future.
* | Merge pull request #10878 from mattip/devdocsRalf Gommers2018-04-161-1/+1
|\ \ | |/ |/| DOC: rework documents and silence warnings during sphinx build
| * update kwargs where neededmattip2018-04-111-1/+1
| |
* | MAINT: Move lstsq to umath_linalgEric Wieser2018-04-101-50/+14
|/ | | | | This does not yet enable any broadcasting, but makes doing so in future far easier.
* MAINT: Small grammar fixes to documentation.Charles Harris2018-02-131-2/+2
| | | [ci skip]
* BUG: linalg: fix corner-case behavior of cond() + use SVD if possiblePauli Virtanen2018-02-121-4/+33
| | | | | | | | | | | | | Make np.linalg.cond(A, p) always use SVD for p=+-2 and not only p=None. Ensure inf is returned instead of nan when the condition number diverges for +/-2 norm. Ignore errors when inverting matrices for p = +-1, 'fro', +-inf, so that spurious LinAlgErrors are not raised. In those cases, report non-invertible matrices as having cond=inf. Add additional tests for cond().
* DOC: Record when axis was added to linalg.norm (#10426)Matheus Vieira Portela2018-01-181-0/+3
| | | | | Fixes #5727 The axis argument was introduced in #3387
* Merge pull request #10390 from eric-wieser/fix-10364Charles Harris2018-01-121-2/+4
|\ | | | | MAINT: Adjust type promotion in linalg.norm
| * BUG: Avoid unintentional promotion to `float`, and do ops in place for speedEric Wieser2018-01-111-1/+3
| | | | | | | | Fixes gh-10364, partly by adjusting the promise in the release notes
| * ENH: Preserve norm dtype for order 0Eric Wieser2018-01-101-1/+1
| |
* | DOC: typo fix in numpy.linalg.det docstring. (#10333)Tyler Reddy2018-01-051-1/+1
|/
* STY: Fix PEP8 vertical alignment violation.Charles Harris2017-11-091-1/+1
|
* MAINT: Avoid extra copies in linalg.lstsqEric Wieser2017-11-081-4/+4
| | | | This takes gh-5909 a little further.
* DOC: Fix incorrect shape in documentationEric Wieser2017-11-081-1/+1
|
* MAINT: collect together type manglingEric Wieser2017-11-071-2/+4
|
* MAINT: Remove similar branches from linalg.lstsqEric Wieser2017-11-071-20/+27
|
* BUG: Ensure lstsq can handle RHS with all sizes.Marten van Kerkwijk2017-11-061-7/+1
| | | | | | | 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 unused isscalar importEric Wieser2017-10-211-1/+1
|
* MAINT: Remove workarounds for gh-9527Eric Wieser2017-10-181-12/+3
| | | | The np.generic.astype method now accepts these keyword arguments
* DOC: Refine SVD documentation (#9845)Toon Verstraelen2017-10-181-48/+89
|
* DOC: Make qr options render correctly as list.Charles Harris2017-10-161-7/+7
| | | | [ci skip]
* ENH: add hermitian=False kwarg to matrix_powerCJ Carey2017-09-161-7/+16
| | | | | With a symmetric matrix, the more efficient `eigvalsh` method can be used to find singular values.
* ENH: Broadcast the second argument of matrix_rank to match pinvEric Wieser2017-09-121-5/+10
|
* BUG: Fix pinv on matrix stacksEric Wieser2017-09-121-26/+49
| | | | Fixes #8826
* MAINT: Remove use of int as booleanEric Wieser2017-09-121-2/+2
|
* MAINT: Remove global statementSrinivas Reddy Thatiparthy2017-08-311-7/+5
| | | | | - Use of `global` variable may have unintented consequences, so it is better to refactor the code so that we do not need to use `global`.
* ENH: Warn to change lstsq default for rcondSebastian Berg2017-08-191-1/+22
| | | | | The default parameter used by LAPACK (which was our default) is not very good, so implement a FutureWarning to change to a better default.
* MAINT: Use moveaxis instead of rollaxis internally (#9475)Nico Schlömer2017-08-101-4/+2
| | | | | Also add a hint to the documentation advising the use of moveaxis over rollaxis. Tests for rollaxis are left alone.
* MAINT: Remove unneeded asfarrayEric Wieser2017-08-061-12/+1
| | | | As of gh-7088, x is always a float array anyway
* DOC: BLD: fix lots of Sphinx warnings/errors.Ralf Gommers2017-06-101-1/+1
|
* BUG: KeyboardInterrupt is swallowed all over the placeEric Wieser2017-06-031-1/+1
| | | | Bare except is very rarely the right thing
* MAINT: Remove python side empty array handling from linalgSebastian Berg2017-04-291-37/+0
| | | | | | | | | The necessary fixup on the C-side of linalg has been done already (i.e. the gufuncs correctly work for these empty arrays). This also enables cholesky decomposition and fixes a small bug in pinv handling. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* Merge pull request #8682 from eric-wieser/stack-matrix_rankCharles Harris2017-04-121-6/+4
|\ | | | | ENH: allow argument to matrix_rank to be stacked
| * ENH: allow argument to matrix_rank to be stackedEric Wieser2017-02-241-6/+4
| | | | | | | | Fixes #5905
* | DOC: Fix "invalid section header" warning in "linalg.multi_dot" docstring.Michael Seifert2017-03-261-8/+7
| | | | | | | | [ci skip]
* | MAINT: Remove asbytes where a b prefix would sufficeEric Wieser2017-03-251-6/+5
| | | | | | | | | | | | | | | | Since we only need to support python 2, we can remove any case where we just pass a single string literal and use the b prefix instead. What we can't do is transform asbytes("tests %d" % num), because %-formatting fails on bytes in python 3.x < 3.5.
* | ENH: Implement most linalg operations for 0x0 matricesEric Wieser2017-03-041-9/+29
| | | | | | | | | | | | | | | | | | | | Fixes #8212 det: return ones of the right shape slogdet: return sign=ones, log=zeros of the right shape pinv, eigvals(h?), eig(h?): return empty array(s?) of the right shape svd & qr: not implemented, due to complex return value rules
* | MAINT: replace len(x.shape) with x.ndimEric Wieser2017-02-241-6/+6
|/
* Merge pull request #8584 from eric-wieser/resolve_axisMarten van Kerkwijk2017-02-211-7/+3
|\ | | | | MAINT: Use the same exception for all bad axis requests
| * MAINT: Use normalize_axis_index in all python axis checkingEric Wieser2017-02-201-7/+3
| | | | | | | | | | | | | | As a result, some exceptions change from ValueError to IndexError This also changes the exception types raised in places where normalize_axis_index is not quite appropriate
* | BUG: prevent np.linalg.eigh ValueError when given a 0x0 arrayEric Wieser2016-12-191-0/+1
| | | | | | | | Throw LinAlgError instead with an appropriate message
* | BUG: Raise LinAlgError from lstsq rather than a math domain error from math.logEric Wieser2016-12-191-0/+9
| | | | | | | | | | | | | | | | We could make the log conditional on its argument being non-zero, but that entire expression is wrong anyway. We could omit that calculation entirely and have LAPACK calculate it for us, but the routine in LAPACK is wrong anyway We could upgrade the version of lapack shipped in lapack_lite, but the tool to do that is wrong anyway. Let's leave that can of worms for another time, and just improve the error message for now.
* | BUG: prevent np.linalg.eig ValueError when given a 0x0 arrayEric Wieser2016-12-191-0/+1
|/ | | | Throw LinAlgError instead with an appropriate message
* Merge pull request #8098 from stuartarchibald/wip/np_la_eigh_doc_enhanceCharles Harris2016-11-041-2/+47
|\ | | | | DOC: Enhance description/usage for np.linalg.eig*h
| * DOC: Remove "deprecated" from eigvalsh UPLO.Charles Harris2016-11-041-2/+2
| | | | | | | | | | | | | | The UPLO parameter of eigvalsh was marked as deprecated, apparently in anticipation of convergence with the scipy version which uses a `lower` boolean parameter. There is no deprecation in the code, nor a lower parameter, so remove the deprecation. [ci skip]
| * DOC: Enhance description/usage for np.linalg.eig*hStuart Archibald2016-09-291-1/+46
| | | | | | | | | | | | | | | | | | | | Proposed documentation enhancement to the `np.linalg.eig*h` routines. The current documentation does not reflect the nature of the underlying LAPACK routines and the way in which they interpet the input. This documentation and examples are with view of adding clarity to what is actually performed.
* | Merge pull request #8103 from mattip/pypy-fixesNathaniel J. Smith2016-10-081-1/+1
|\ \ | | | | | | Pypy fixes
| * | ENH: remove stray comma that made the msg a tupleMatti Picus2016-10-011-1/+1
| |/
* | DOC: Fix "See also" links in linalg.wrwrwr2016-10-031-2/+2
|/
* DOC: change version references from x.y to x.y.zPierre de Buyl2016-09-071-1/+1
|