summaryrefslogtreecommitdiff
path: root/numpy/linalg/linalg.py
Commit message (Collapse)AuthorAgeFilesLines
...
* ENH: handle empty matrices in qr decomposition (#11593)Jeremy Chen2018-07-311-7/+7
| | | Ensure LWORK and LDA respect the requirements of the lapack methods (zgeqrf, dgeqrf, zungqr, dorgqr)
* DOC: Use "real symmetric" rather than "symmetric" in ``eigh`` and ↵Juan Azcarreta2018-07-261-11/+16
| | | | | | | | ''eigvalsh" docs. (#11621) Change the documentation of inputs from "symmetric or Hermitian" to "real symmetric or complex Hermitian" for eigh and eigvalsh. [ci skip]
* ENH: Allow use of svd on empty arraysEric Wieser2018-06-271-1/+1
| | | | part of #8654
* HTTP -> HTTPS, and other linkrot fixesMike Toews2018-06-161-3/+3
|
* Merge pull request #10938 from eric-wieser/linalg-lstsq-ufuncMarten van Kerkwijk2018-05-281-8/+8
|\ | | | | MAINT: One step closer to vectorizing lstsq
| * MAINT: Always spell "get the last two dims" the same wayEric Wieser2018-04-211-4/+5
| |
| * MAINT: Prepare lstsq for vectorization, by using the last indices in shape, ↵Eric Wieser2018-04-211-4/+3
| | | | | | | | not the first
* | ENH: Allow stacks of matrices in matrix_power.Marten van Kerkwijk2018-04-291-56/+51
| | | | | | | | | | Since linalg allows stacks of matrices generally, there is no reason not to allow it for matrix_power.
* | MAINT: Move matrix_power to linalgMarten van Kerkwijk2018-04-291-3/+111
| | | | | | | | | | The docstring already assumed it was in linalg, and this ensures linalg becomes completely independent of matrixlib.
* | Merge pull request #10890 from eric-wieser/linalg-lstsq-ufuncMarten van Kerkwijk2018-04-201-10/+2
|\ \ | |/ | | MAINT: lstsq: compute residuals inside the ufunc
| * 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