summaryrefslogtreecommitdiff
path: root/numpy/linalg
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Fix stacklevels for the new C dispatcher not adding oneSebastian Berg2023-01-171-3/+3
|
* TST: Adapt test for modification to == and != deprecation/futurewarningSebastian Berg2022-12-011-4/+1
|
* Merge pull request #22619 from seberg/move-set_moduleMatti Picus2022-11-291-2/+2
|\ | | | | MAINT: Move set_module from numpy.core to numpy._utils
| * MAINT: Move set_module to numpy.core to use without C importSebastian Berg2022-11-241-2/+2
| |
* | BLD: enable building NumPy with MesonRalf Gommers2022-11-251-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables building with NumPy on Linux and macOS. Windows support should be complete to, but is untested as of now and may need a few tweaks. This contains: - A set of `meson.build` files and related code generation script tweaks, header templates, etc. - One CI job on Linux - Basic docs on using Meson to build NumPy (not yet integrated in the html docs, it's too early for that - this is for early adopters right now). The build should be complete, with the major exception of SIMD support. The full test suite passes. See gh-22546 for the tracking issue with detailed notes on the plan for switching NumPy to Meson as its build system. Co-authored-by: Stefan van der Walt <stefanv@berkeley.edu>
* | BLD: fix missing `Python.h` includesRalf Gommers2022-11-252-0/+7
|/ | | | | | | | | | | | | | | | | | | | | | | | `Python.h` must be included before including and standard library headers, if it's pulled in (which happens when you include numpy headers). Otherwise we see build warnings like: ``` 142/244] Compiling C object numpy/core/_multiarray_umath.cpython-311-x86_64-linux-gnu.so.p/src_multiarray_textreading_field_types.c.o In file included from /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/Python.h:86, from ../numpy/core/include/numpy/npy_common.h:5, from ../numpy/core/include/numpy/ndarraytypes.h:4, from ../numpy/core/src/multiarray/textreading/field_types.h:9, from ../numpy/core/src/multiarray/textreading/field_types.c:1: /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/cpython/pytime.h:208:60: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration 208 | PyAPI_FUNC(int) _PyTime_FromTimespec(_PyTime_t *tp, struct timespec *ts); | ^~~~~~~~ /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/cpython/pytime.h:213:56: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration 213 | PyAPI_FUNC(int) _PyTime_AsTimespec(_PyTime_t t, struct timespec *ts); | ^~~~~~~~ /opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11/cpython/pytime.h:217:63: warning: ‘struct timespec’ declared inside parameter list will not be visible outside of this definition or declaration 217 | PyAPI_FUNC(void) _PyTime_AsTimespec_clamp(_PyTime_t t, struct timespec *ts); | ^~~~~~~~ ```
* Merge pull request #21895 from hoodmane/emscripten-ciRalf Gommers2022-11-151-1/+4
|\ | | | | ENH, CI: Add Emscripten to CI
| * TST: Skip tests that are not currently supported in wasmHood Chatham2022-11-111-1/+4
| |
* | MAINT: Patch to remove ncola variable from f2c_blas.cCharles Harris2022-11-131-0/+112
| | | | | | | | [skip ci]
* | BLD: remove unused `ncola` variables from lapack-liteRalf Gommers2022-11-131-16/+4
|/ | | | This fixes some annoying build warnings.
* Revert "MAINT: fix typo in f2c_lapack.c"Rohit Goswami2022-10-161-1/+1
| | | | This reverts commit 5d6b8b0d5658418919fbaef0e843655262291dbc.
* MAINT: fix typo in f2c_lapack.cIkko Ashimine2022-10-161-1/+1
| | | inifinity -> infinity
* Merge pull request #22313 from rossbar/deprecate-fastCopyAndTransposeMatti Picus2022-10-071-16/+2
|\ | | | | DEP: Deprecate fastCopyAndTranspose
| * MAINT: rm private, unused linalg function.Ross Barnowski2022-10-061-11/+0
| |
| * DEP: fastCopyAndTranspose and PyArray_CopyAndTransposeRoss Barnowski2022-10-061-7/+4
| | | | | | | | | | | | | | | | Deprecate the fastCopyAndTranspose function from the Python API, and the underlying PyArray_CopyAndTranspose function from the C-API. Also removes an internal, private function _fastCopyAndTranspose which was the original Python wrapper around the C-function.
* | Merge pull request #22147 from eelregit/eelregit_tensorsolve_doc_fixSebastian Berg2022-09-301-1/+1
|\ \ | |/ |/| DOC: fix linalg.tensorsolve docstring
| * Fix linalg.tensorsolve docstringYin Li2022-08-181-1/+1
| |
* | BUG: Support using libunwind for backtrackRin Cat (鈴猫)2022-08-181-0/+4
|/ | | | | | | Some system (e.g. musl) do not have "execinfo.h", and the backtracking is provided by libunwind. Fix: #22084
* remove redundant reversal of eigenvalues orderKIU Shueng Chuan2022-08-121-1/+0
|
* MAINT: Fix non-void function does not return a value warningHood Chatham2022-06-291-2/+4
|
* Merge pull request #21626 from seberg/weak-scalarsCharles Harris2022-06-261-3/+3
|\ | | | | API: Introduce optional (and partial) NEP 50 weak scalar logic
| * API: Add leading underscore to `no_nep50_warning` and `get/set_promotion_state`Sebastian Berg2022-06-151-1/+1
| |
| * TST: Ignore promotion warning in linalg test calculating atolSebastian Berg2022-06-151-3/+3
| |
* | Merge pull request #21789 from hoodmane/void-to-int-return-values-f2cCharles Harris2022-06-192-11/+12
|\ \ | |/ |/| ENH: Change f2c declarations with void return type to int
| * ENH: Change f2c declarations with void return type to intHood Chatham2022-06-172-11/+12
| | | | | | | | | | | | When using f2c, the generated C functions for all of these actually return int. WebAssembly is strict on return types and will crash due to the discrepancy.
* | Update comment according to seberg's reviewHood Chatham2022-06-121-1/+3
| |
* | Fix lintHood Chatham2022-06-121-1/+1
| |
* | Handle windowsHood Chatham2022-06-121-1/+6
| |
* | Update numpy/linalg/setup.pyHood Chatham2022-06-111-1/+1
| | | | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* | ENH: Fix pointer size determination for cross buildHood Chatham2022-06-111-1/+2
|/ | | | | | | | | Using `sys` to ask about the build Python is hostile to cross building because it is very hard to replace the sys module with one that gives info about the target system. On the other hand, the sysconfig data can be replaced by setting _PYTHON_SYSCONFIGDATA_NAME. So instead of using `sys.maxsize` to determine pointer size, use `sysconfig.get_config_var("SIZEOF_VOID_P")`
* Merge pull request #21504 from Yulv-git/typos1Ralf Gommers2022-05-254-18/+18
|\ | | | | MAINT: Fix some typos.
| * Fix some typos.Yulv-git2022-05-144-18/+18
| |
* | DOC:linalg: Remove ref to scipy.linalg.pinv2Ilhan Polat2022-05-221-1/+0
|/
* PERF: Reduce overhead of np.linalg.norm for small arrays (#21394)Pieter Eendebak2022-05-031-2/+4
| | | | Reduce the overhead of np.linalg.norm by replacing dot(x,x) with x.dot(x). This is OK, since `x` is converted to a base-class array here.
* 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
|