summaryrefslogtreecommitdiff
path: root/numpy/linalg
Commit message (Collapse)AuthorAgeFilesLines
* See #15986. Chain exceptions in linalgtautaus2021-01-313-6/+6
|
* Merge pull request #18062 from krnilo/add-lstsq-detailsCharles Harris2020-12-301-2/+3
|\ | | | | DOC: add missing details to linalg.lstsq docstring
| * STY: Add spaces around '-'.Charles Harris2020-12-301-1/+1
| | | | | | [ci skip]
| * DOC: add missing details to linalg.lstsq docstringNilo Kruchelski2020-12-301-2/+3
| | | | | | | | | | | | | | It turns out that lstsq also minimizes the 2-norm of x when a is rank-deficient. I found that by searching the documentation for the LAPACK library, which is the current implementation of lstsq (as of Dec 2020). Ref: https://www.netlib.org/lapack/lug/node27.html
* | MAINT: multiline regex class simplifyTyler Reddy2020-12-291-1/+1
|/ | | | | | * follow up to gh-18083 covering multi-line uses of `re.compile(..` and some cases for `re.match(..` with single (meta)character classes
* Update numpy/linalg/linalg.pyEric Wieser2020-11-201-2/+2
|
* Update linalg.pyAlex Leontiev2020-11-201-4/+4
|
* BUG: Fixed an issue where `.pyi` weren't picked up by numpy sub-packagesBas van Beek2020-11-031-0/+1
|
* BUG: Fix small bug in make_lite.py.Charles Harris2020-11-011-1/+1
| | | | Flagged by LGTM.
* Convert some strings to fstrignsJakob2020-10-244-15/+15
|
* DOC: clarify residuals return paramStefan Appelhoff2020-09-191-3/+3
| | | | | Specify that the sum of *squared* residuals are returned. Use @ operator instead of * in code example.
* Merge pull request #17104 from BvB93/sub-modulesCharles Harris2020-09-071-0/+23
|\ | | | | ENH: Add placeholder stubs for all sub-modules
| * ENH: Replace module-level `__getattr__` with explicitly defined objectsBas van Beek2020-08-201-2/+21
| |
| * ENH: Add placeholder stubs for all sub-modulesBas van Beek2020-08-191-0/+4
| |
* | MAINT: Remove uses of PyString_FromString.Charles Harris2020-08-191-1/+1
|/ | | | | | | | We no longer need to use the compatibility function after dropping support for Python 2.7. In some cases unicode was the correct string type rather than the bytes of the compatibility version and bugs in the array `__complex__` and array `__array_interface__` methods have been fixed by changing that.
* MAINT: Remove Duplicated Code (#16848)Wansoo Kim2020-07-141-4/+3
| | | | | * MAINT: Remove Duplicated Code Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* DOC: cross-reference numpy.dot and numpy.linalg.multi_dotAndras Deak2020-06-211-1/+1
| | | | | Add linalg.multi_dot to the "See also" of numpy.dot, change dot to numpy.dot for linking in the "See also" of multi_dot.
* BUILD: Remove Accelerate support (#15759)Matti Picus2020-05-221-1/+7
| | | | | | | Remove support for Apple Accelerate, since it is buggy. A build error should occur on most or all setups if linked against Accelerate. Test or import failures should occur on setups where Accelerate is picked up dynamically. Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
* Mark tests as a subpackage rather than data.Hameer Abbasi2020-05-061-1/+1
|
* ENH: update numpy.linalg.multi_dot to accept an `out` argument (#15715)sslivkoff2020-04-302-11/+60
| | | | | | | | | | | | | * ENH: update numpy.linalg.multi_dot to accept an `out` argument * TST ensure value returned by numpy.linalg.multi_dot matches out * DOC add note about initial call to numpy.linalg.multi_dot * DOC add release note for #15715 Co-authored-by: Matti Picus <matti.picus@gmail.com> Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* Added some chained exceptionsChris Holland2020-04-231-4/+4
|
* DOC: Improve docstring for numpy.linalg.lstsq (gh-15920)Pierre de Buyl2020-04-101-6/+6
| | | | | | | | | Start the docstring with """Computes the vector x that approximatively solves the equation :math:`a x = b`.""" instead of """Solves the equation :math:`a x = b`""". Co-Authored-By: Ross Barnowski <rossbar@berkeley.edu> Closes gh-15874
* MAINT: Clean-up 'next = __next__' used for Python 2 compatibilityMike Taves2020-04-011-4/+0
|
* MAINT: Add better error handling in linalg.norm for vectors and clarify it ↵Jim2020-03-123-7/+11
| | | | | | | | | | | | 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.
* convert shebang from python to python3 (#15687)Changqing Li2020-03-042-2/+2
| | | | Signed-off-by: Changqing Li <changqing.li@windriver.com>
* 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.
* Merge pull request #15468 from hameerabbasi/fix-svd-sortedMatti Picus2020-02-062-8/+21
|\ | | | | BUG: Fix for SVD not always sorted with hermitian=True
| * BUG: Fix for SVD not always sorted with hermitian=TrueHameer Abbasi2020-02-052-8/+21
| |
* | TST: mark the top 3 slowest tests to save ~10 secondsmattip2020-02-021-0/+1
|/
* Merge pull request #15417 from sethtroisi/python2_easyMatti Picus2020-01-292-8/+1
|\ | | | | MAINT: Cleanup references to python2
| * MAINT: Python2 CleanupsSeth Troisi2020-01-282-8/+1
| |
* | Merge pull request #15452 from mwtoews/E401Matti Picus2020-01-291-1/+2
|\ \ | | | | | | STY,MAINT: avoid 'multiple imports on one line'
| * | STY,MAINT: avoid 'multiple imports on one line' (flake8 E401)Mike Taves2020-01-281-1/+2
| |/ | | | | | | | | | | * PEP 8: "Imports should usually be on separate lines" * Where modified, sort imported modules alphabetically * Clean-up unused imports from these expanded lines
* | MAINT: Remove sys.version checks (gh-#15373)Seth Troisi2020-01-281-6/+1
|/ | | More sys.version cleanup.
* MAINT: Const qualify UFunc inner loops (gh-15355)Kai Striega2020-01-211-34/+34
| | | | | This PR const qualifies the dimension and strides arguments of PyUFuncGenericFunction. Const qualified arguments make it simpler to reason about the behaviour of these ufuncs and prevents accidental mutation. As the const is now required this PR also const qualifies calls to PyUFuncGenericFunction inside the NumPy source code. This closes #15252
* [MAINT] Cleanup python2 sys.version checksSeth Troisi2020-01-201-12/+8
|
* Merge pull request #15224 from pv/lapack-lite-symrenameMatti Picus2020-01-2012-37/+787
|\ | | | | MAINT: linalg: use symbol suffix in fallback lapack_lite
| * GEN: regenerate lapack_litePauli Virtanen2020-01-148-25/+716
| |
| * MAINT: linalg: use symbol suffix in fallback lapack_litePauli Virtanen2020-01-144-12/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | When building the fallback lapack_lite library for numpy.linalg, add symbol suffix to the routines when using 64-bit integer indices. Adjust the lapack_lite generator script to also output a header file that renames the symbols. Moreover, also rename symbols from f2c.c, to be sure (because they have short and generic names that may clash). This avoids a name clash with BLAS/LAPACK names, which can cause problems in corner cases on platforms where inadvertent symbol overriding in dynamic libraries can occur.
* | Merge pull request #15333 from eric-wieser/use-PyDict_GetItemWithErrorMatti Picus2020-01-161-8/+20
|\ \ | | | | | | BUG: Add some missing C error handling
| * | BUG: Add some missing C error handlingEric Wieser2020-01-151-8/+20
| | |
* | | DOC: fix typosBrian Wignall2020-01-142-2/+2
|/ /
* | MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-056-21/+21
| | | | | | | | | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python.
* | Merge pull request #14376 from jdufresne/futureSebastian Berg2020-01-0310-20/+0
|\ \ | | | | | | MAINT: Remove unnecessary 'from __future__ import ...' statements
| * | MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-0310-20/+0
| |/ | | | | | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* | MAINT: Remove Python2 specific C module setup (gh-15231)Seth Troisi2020-01-032-32/+5
|/ | | | | Dropping the support for python 2, the difference in module setup do not have to be accounted for anymore. This removes the macros and ifdef's related to module setup code and python 2 support.
* MAINT: indicate in numpy.__config__ when fallback lapack_lite is usedPauli Virtanen2020-01-011-5/+16
| | | | | Make numpy.__config__.show() to print information about the fallback lapack_lite library when it is used.
* MAINT: better way of indicating whether numpy was built with ILP64 BLASPauli Virtanen2020-01-011-0/+6
|
* ENH: build fallback lapack_lite with 64-bit integers on 64-bit platformsPauli Virtanen2020-01-012-6/+12
| | | | | Build the lapack fallback library (used when no LAPACK installed) with 64-bit integer size when building on a 64-bit platform.
* DOC: lapack_lite: fix incorrect information in lapack_lite READMEPauli Virtanen2020-01-011-2/+2
|