summaryrefslogtreecommitdiff
path: root/numpy/linalg/lapack_lite
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #22493 from mwtoews/maint-openSebastian Berg2023-04-282-4/+4
|\ | | | | MAINT: remove redundant open() modes and io.open() alias
| * MAINT: remove redundant open() modes and io.open() aliasMike Taves2022-10-292-4/+4
| |
* | 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); | ^~~~~~~~ ```
* | 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
* MAINT: Fix non-void function does not return a value warningHood Chatham2022-06-291-2/+4
|
* 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.
* Fix some typos.Yulv-git2022-05-144-18/+18
|
* MAINT: LGTM.com recommendation: Except block handles 'BaseException'Dimitri Papadopoulos2021-10-071-4/+1
| | | | Except block directly handles BaseException.
* 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.
* 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.
* Merge pull request #19810 from charris/update-some-includesCharles Harris2021-09-031-1/+3
|\ | | | | MAINT: Minor include rationalizations.
| * MAIN: Minor include rationalization.Charles Harris2021-09-031-1/+3
| | | | | | | | | | | | | | - 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 #19102 from default-303/LGTM_unused_variablesMatti Picus2021-07-091-1/+1
|\ | | | | MAINT: Removed suitable unused variables shown in LGTM
| * MAINT: Removed suitable unused variables shown in LGTMdefault-3032021-05-261-1/+1
| |
* | MAINT: raise from previous exception in make_lite.pyAndrew Watson2021-07-031-2/+2
| | | | | | Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
* | MAINT: fix overly broad exception handling listed in LGTMAndrew Watson2021-07-011-1/+1
|/ | | | Relates to ticket #19077
* See #15986. Chain exceptions in linalgtautaus2021-01-311-2/+2
|
* 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
* BUG: Fix small bug in make_lite.py.Charles Harris2020-11-011-1/+1
| | | | Flagged by LGTM.
* Convert some strings to fstrignsJakob2020-10-241-9/+9
|
* MAINT: Clean-up 'next = __next__' used for Python 2 compatibilityMike Taves2020-04-011-4/+0
|
* convert shebang from python to python3 (#15687)Changqing Li2020-03-042-2/+2
| | | | Signed-off-by: Changqing Li <changqing.li@windriver.com>
* Merge pull request #15417 from sethtroisi/python2_easyMatti Picus2020-01-291-1/+1
|\ | | | | MAINT: Cleanup references to python2
| * MAINT: Python2 CleanupsSeth Troisi2020-01-281-1/+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] Cleanup python2 sys.version checksSeth Troisi2020-01-201-12/+8
|
* Merge pull request #15224 from pv/lapack-lite-symrenameMatti Picus2020-01-2011-35/+780
|\ | | | | 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-143-10/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-053-5/+5
| | | | | | | | | | | | | | 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.
* | MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-033-6/+0
|/ | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* ENH: build fallback lapack_lite with 64-bit integers on 64-bit platformsPauli Virtanen2020-01-011-6/+8
| | | | | 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
|
* Fix typos, via a Levenshtein-style correctorBrian Wignall2019-12-193-7/+7
|
* ENH: update BLAS symbol suffix/prefix handling in cblasfuncs & linalgPauli Virtanen2019-12-141-10/+3
| | | | Revise the BLAS name mangling to support the general scheme.
* ENH: core: add LAPACK64_ support in numpy.linalgPauli Virtanen2019-11-291-0/+9
|