summaryrefslogtreecommitdiff
path: root/numpy/linalg/linalg.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Add better error handling in linalg.norm for vectors and clarify it ↵Jim2020-03-121-4/+7
| | | | | | | | | | | | 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.
* DOC: Improve the `numpy.linalg.eig` doctring. (#15550)Charles Harris2020-02-131-9/+16
| | | | | - Use '@' instead of 'dot'. - Note that `scipy.linalg.schur` is better for non-Hermitian normal matrices.
* BUG: Fix for SVD not always sorted with hermitian=TrueHameer Abbasi2020-02-051-8/+13
|
* MAINT: Python2 CleanupsSeth Troisi2020-01-281-7/+0
|
* DOC: fix typosBrian Wignall2020-01-141-1/+1
|
* 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.
* DOC: update cholesky docstring regarding input checkingZé Vinícius2019-12-231-2/+4
|
* DOC: linalg: Include information about scipy.linalg. (#14988)Warren Weckesser2019-12-191-2/+48
| | | * DOC: Add links to scipy linalg fuctions and compare numpy.linalg vs scipy.linalg.
* DOC: Fix statement about norms (#15050)Andreas Klöckner2019-12-051-1/+1
| | | The "0.5-norm" violates the triangle inequality because its unit ball is nonconvex.
* MAINT: Small clarification spelling fixes.Charles Harris2019-11-251-5/+5
|
* DOC: fix docstring of np.linalg.normmattip2019-11-231-4/+7
|
* Rename helper functions to not use the word rankEric Wieser2019-10-311-40/+37
| | | | | | As shown in gh-10471, this naming was confusing. Also rename all the functions of this style to use snake case
* DOC: Fix hermitian argument docs in svdhvy2019-08-031-6/+6
|
* DEP: Deprecate full and economic modes for linalg.qrkritisingh12019-07-221-7/+1
|
* MAINT: Replace integers in places where booleans are expectedMSeifert042019-07-011-2/+2
|
* Update linalg.pyHe Jia2019-06-141-1/+1
|
* Update linalg.pyHe Jia2019-06-141-1/+1
|
* DOC: Add return section to linalg.matrix_rank & tensordotJohn Law2019-05-271-3/+8
| | | | | | This patch adds two return sections to them. Also one or two minor formatting issues are resolved. Addresses #13630.
* BUG: Increment stacklevel for warnings to account for NEP-18 overrides (#13589)Stephan Hoyer2019-05-201-3/+3
| | | | | | | | | | | | | | * Increment stacklevel for warnings to account for NEP-18 overrides For NumPy functions that make use of `__array_function__`, the appropriate the stack level for warnings should generally be increased by 1 to account for the override function defined in numpy.core.overrides. Fixes GH-13329 * Update numpy/lib/type_check.py Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net>
* DOC: Clarify rcond normalization in linalg.pinvAaron Voelker2019-05-081-3/+3
| | | | Closes #13497.
* Double to single for linking, = -> ==Katharine Hyatt2019-03-181-3/+3
|
* Single to double backticks for variable in docstringKatharine Hyatt2019-03-141-1/+1
|
* DOC: add backticks to linalgKatharine Hyatt2019-03-131-14/+14
|
* DOC: reduce warnings when building, reword, tweak doc buildingmattip2019-02-281-2/+0
|
* DOC: fix invalid escape sequenceAdam J. Stewart2019-01-301-1/+1
|
* DOC: Euclidean 2-norm -> squared Euclidean 2-normAdam J. Stewart2019-01-301-6/+6
|
* DOC: fix math formatting of np.linalg.lstsq docsAdam J. Stewart2019-01-301-5/+5
| | | | | | Replace double pipe with actual norm symbol. Also remove unnecessary space after hanging hyphen.
* DOC: remove python2-only methods, small cleanupsmattip2019-01-211-1/+1
|
* ENH: Add a hermitian argument to `pinv` and `svd`, matching `matrix_rank`Eric Wieser2019-01-071-10/+37
| | | | Related to gh-9436
* TST, DOC: enable refguide_checkTyler Reddy2018-12-141-77/+79
| | | | | | | | * ported the refguide_check module from SciPy for usage in NumPy docstring execution/ verification; added the refguide_check run to Azure Mac OS CI * adjusted NumPy docstrings such that refguide_check passes
* MAINT: Review F401,F841,F842 flake8 errors (unused variables and imports) ↵Roman Yurchak2018-12-061-0/+1
| | | | | | | | | | | | (#12448) * Review F401,F841,F842 flake8 errors (unused variables, imports) * Review comments * More tests in test_installed_npymath_ini * Review comments
* ENH: set correct __module__ for objects in numpy's public APIStephan Hoyer2018-11-131-2/+3
| | | | | | | | | | | | | Fixes GH-12271 Tests verify that everything in ``dir(numpy)`` either has ``__module__`` set to ``'numpy'``, or appears in an explicit whitelist of undocumented functions and exported bulitins. These should eventually be documented or removed. I also identified a handful of functions for which I had accidentally not setup dispatch for with ``__array_function__`` before, because they were listed under "ndarray methods" in ``_add_newdocs.py``. I guess that should be a lesson in trusting code comments :).
* MAINT: set preferred __module__ for numpy functionsStephan Hoyer2018-10-231-1/+7
|
* MAINT: remove unused _assertSquareness.Tyler Reddy2018-10-161-5/+0
|
* ENH: __array_function__ support for np.fft and np.linalg (#12117)Stephan Hoyer2018-10-121-1/+86
| | | | | | | | | | | | * ENH: __array_function__ support for np.fft and np.linalg xref GH12028 * CLN: remove unnecessary dispatcher functions from np.linalg * CLN: remove more unneeded dispatchers * CLN: remove repeated dispatchers from np.linalg
* Merge pull request #11691 from charris/fix_matrix_power_regressionMatti Picus2018-08-081-4/+16
|\ | | | | BUG: Make matrix_power again work for object arrays.
| * BUG: Make matrix_power again work for object arrays.Charles Harris2018-08-081-4/+16
| | | | | | | | | | | | | | | | | | This fixes a regression introduced in #10985. Using matmul instead of dot lost the object type while adding the ability to deal with matrix stacks. This implements a partial fix by using dot for 2-D object arrays, but object array stacks cannot be handled. Closes #11635.
* | Merge pull request #11692 from charris/remove-duplicate-codeMatti Picus2018-08-081-5/+0
|\ \ | | | | | | MAINT: Remove duplicate code.
| * | MAINT: Remove duplicate code.Charles Harris2018-08-081-5/+0
| |/ | | | | | | | | The definition of `_complex_types_map` was repeated in the linalg.py file.
* | ENH: support for empty matrices in linalg.lstsqJeremy Chen2018-08-031-1/+9
|/
* 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