summaryrefslogtreecommitdiff
path: root/numpy/linalg
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #20669 from DWesl/cygwin-use-reference-blasSebastian Berg2022-04-201-15/+0
|\ | | | | CI, TST: Run Cygwin CI with Netlib reference BLAS and re-enable linalg tests
| * CI: Run Cygwin CI with Netlib reference BLAS.DWesl2021-12-271-15/+0
| |
* | Merge pull request #21306 from serge-sans-paille/feature/syndicate-cxxflagsMatti Picus2022-04-081-4/+2
|\ \ | | | | | | Introduce numpy.core.setup_common.NPY_CXX_FLAGS
| * | Introduce numpy.core.setup_common.NPY_CXX_FLAGSserge-sans-paille2022-04-081-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Group all C++ flags in one location. This avoids redundancy and makes sure we test the flags we use, and use the flags we test. Fix #21302
* | | BUG: Consistent promotion for norm for all values of ord (#17709)Toshiki Kataoka2022-04-072-21/+30
|/ / | | | | | | | | | | | | | | | | Previously, numpy.linalg.norm would return values with the same floating-point type as input arrays for most values of the ``ord`` parameter, but not all. This PR fixes this so that the output dtype matches the input for all (valid) values of ``ord``. Co-authored-by: Kenichi Maehashi <webmaster@kenichimaehashi.com> Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* | Use C++ version of C headers for C++ sourcesserge-sans-paille2022-04-021-4/+4
| |
* | Use `inline` keyword instead of NPY_INLINE for C++ sourcesserge-sans-paille2022-04-021-71/+71
| | | | | | | | It is a standard keyword, no need fora macro there.
* | [Road to C++] Rename linalg/umath_linalg.cpp.src into linalg/umath_linalg.cppserge-sans-paille2022-03-302-1/+5
| | | | | | | | It no longer uses any @template construct.
* | [Road to C++] Update numpy/linalg/umath_linalg.cpp.srcserge-sans-paille2022-03-291-1013/+1138
| | | | | | | | | | Remove all references to @template and replace them with the appropriate C++ template mechanism.
* | [Road to C++] First step toward numpy/linalg/umath_linalg.c.src conversionserge-sans-paille2022-03-292-160/+164
| | | | | | | | | | | | As it's a large file, I've first handled the C++ conversion part while keeping Numpy templating system. The switch to C++ template is to be done in another commit.
* | MAINT: Split `numpy.typing` into a public and private componentBas van Beek2022-03-181-1/+1
| | | | | | | | i.e. `numpy.typing` and `numpy._typing`
* | DOC: Update linalg.qr docstring with numerically stable example (#21149)Jason Thai2022-03-071-2/+2
| | | | | | Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
* | Update numpy/linalg/linalg.pyDiego Wang2022-02-251-5/+6
| | | | | | Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
* | clarify svd documentationDiego Wang2022-02-241-2/+3
| | | | | | `u @ np.diag(s) @ vh` can only reproduce the original matrix when `full_matrices` is `False`, otherwise dimension does not match.
* | DOC: clarify the return value of linalg.choleskyStephan Hoyer2022-02-171-2/+2
|/ | | | | It is in fact always lower-triangular. The errorenous note might date to when function was forked from SciPy?
* STY: Wrap long lines in linalg test.DWesl2021-12-241-4/+9
|
* TST: Mark the failing tests as xfail.DWesl2021-12-241-18/+30
|
* STY: Use subscriptable `collections.abc` types over the generic aliases in …Bas van Beek2021-12-232-3/+1
|
* STY: Use subscriptable `builtins` types over the generic aliases in `typing`Bas van Beek2021-12-232-17/+15
|
* BUG: Fix PyInit__umath_linalg typeKazuki Sakamoto2021-12-151-1/+1
| | | | Use PyMODINIT_FUNC instead of PyObject *.
* BUG: Fix tensorsolve for 0-sized inputIvan Yashchuk2021-11-292-1/+28
| | | | | | | | `array.reshape(-1, size)` doesn't work with 0 in the dimensions. The fix is to use explicit shape instead of `-1`. For "non-square" tensors the `ValueError` would come from the reshape call, while previously `LinAlgError` appeared from the solve call. To have the same error type I added a check for squareness before the reshape.
* TST: remove obsolete TestF77MismatchH. Vetinari2021-11-251-53/+0
|
* Merge pull request #20156 from melissawm/fix-cond-docsCharles Harris2021-10-251-2/+2
|\ | | | | DOC: Fixed docstring for parameters 2 and -2 on linalg.cond
| * DOC: Clarify table contents in cond docstringmelissawm2021-10-221-4/+4
| |
| * DOC: Fixed docstring for parameters 2 and -2 on linalg.condmelissawm2021-10-211-2/+2
| |
* | Merge pull request #20071 from alessiamarcolini/refactorCharles Harris2021-10-223-6/+2
|\ \ | |/ |/| MAINT: Remove unused imports and remove duplicated tests
| * MAINT: remove unused importsAlessia Marcolini2021-10-083-6/+2
| |
* | MAINT: LGTM.com recommendation: Except block handles 'BaseException'Dimitri Papadopoulos2021-10-071-4/+1
|/ | | | Except block directly handles BaseException.
* Merge pull request #19913 from DimitriPapadopoulos/lgtm_errorCharles Harris2021-09-271-9/+12
|\ | | | | MAINT: Fix LGTM.com error: Unmatchable caret in regular expression
| * MAINT: Fix LGTM.com errorDimitri Papadopoulos2021-09-221-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unmatchable caret in regular expression This regular expression includes an unmatchable caret at offset 18. Indeed this regex couldn't possibly match anything. Not only does the regex look obsolete, attempting to match "inline" or "static" specifiers that I cannot find in the sources produced by 'f2c', but the very logic of function removeSubroutinePrototypes() makes it impossible to handle '/* Subroutine */' declarations that span multiple lines. All in all, function removeSubroutinePrototypes() does nothing at all. We choose not to change that, because it works and we have no real hint what it should do and why. We just document that.
* | Merge pull request #19911 from DimitriPapadopoulos/codespellSebastian Berg2021-09-213-7/+7
|\ \ | |/ |/| DOC: Typos found by codespell
| * DOC: Typos found by codespellDimitri Papadopoulos2021-09-213-7/+7
| |
* | REV: 30f8391Dimitri Papadopoulos2021-09-211-0/+4
| | | | | | | | This is a Python 2 script, we need to preserve Python 2 compatibility.
* | REV: 96727cfDimitri Papadopoulos2021-09-212-8/+15
| | | | | | | | | | | | | | This is a Python 2 script, and will remain so for some time. Instead of simply reverting the commit, use try/except to find the proper way to import which.
* | DOC: consistent README.rst and docstringDimitri Papadopoulos2021-09-211-2/+2
| |
* | MAINT: force shebang to python2.7Dimitri Papadopoulos2021-09-214-2/+8
| | | | | | | | Make crystal clear that these remain Python 2 scripts.
* | REV: 7949ba5Dimitri Papadopoulos2021-09-211-2/+2
| | | | | | | | This is a Python 2 script, revert Python 3 exception handling.
* | REV: b62ffc5Dimitri Papadopoulos2021-09-211-2/+2
| | | | | | | | This is a Python 2 script, revert Python 3 exception handling.
* | REV: aec0576Dimitri Papadopoulos2021-09-211-9/+10
| | | | | | | | This is a Python 2 script, fstrings are implemented in Python 3 only.
* | REV: 583901aDimitri Papadopoulos2021-09-212-2/+2
|/ | | | | This is actually a Python 2 script, not a Python 3 script. Revert the shebang to its previous state.
* MAINT: Reexport `LinAlgError` to the `np.linalg.linalg` stubsBas van Beek2021-09-201-0/+2
|
* MAINT: Let `eig` and `eigvals` return a union for real inputsBas van Beek2021-09-181-5/+13
| | | | | | Whether an array of a `floating` or `complexfloating` dtype is returned depends on the values within in the supplied matrix. Co-Authored-By: Kevin Sheppard <bashtage@users.noreply.github.com>
* ENH: Add annotations for `np.linalg`Bas van Beek2021-09-171-20/+274
|
* MAINT: Move `linalg` function definitions to `linalg.linalg`Bas van Beek2021-09-172-21/+43
|
* STY: Small cleanups of includes in *.c files.Charles Harris2021-09-031-2/+2
| | | | | | | | | | | | | | | | This puts the following numpy defines at the top of the files before the includes. define NPY_NO_DEPRECATED_API NPY_API_VERSION define _MULTIARRAYMODULE define _UMATHMODULE There are also minor cleanups of <...> vs "..." include styles together with a small fix to the .clang-format file to include "pymem.h" among the Python supplied headers. Further cleanups will follow if clang-format is used on the files but that is not done here.
* Merge pull request #19810 from charris/update-some-includesCharles Harris2021-09-033-5/+9
|\ | | | | MAINT: Minor include rationalizations.
| * MAIN: Minor include rationalization.Charles Harris2021-09-033-5/+9
| | | | | | | | | | | | | | - Replace "Python.h" by <Python.h> - Replace "structmember.h" by <structmember.h> - Replace <npy_config> by "npy_config" - Define PY_SSIZE_T_CLEAN before all Python.h includes in .c files.
* | fix unhashable instance and potential exception identified by LGTMSista Seetaram2021-09-031-1/+0
| |
* | fixed unhashable instance and potential exception as listed in LGTM#19077Sista Seetaram2021-09-031-2/+2
|/
* Merge pull request #19559 from BvB93/pytestMatti Picus2021-07-261-0/+4
|\ | | | | ENH: Add annotations for `__path__` and `PytestTester`