| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\
| |
| | |
CI, TST: Run Cygwin CI with Netlib reference BLAS and re-enable linalg tests
|
| | |
|
|\ \
| | |
| | | |
Introduce numpy.core.setup_common.NPY_CXX_FLAGS
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
|
| |
| |
| |
| | |
It is a standard keyword, no need fora macro there.
|
| |
| |
| |
| | |
It no longer uses any @template construct.
|
| |
| |
| |
| |
| | |
Remove all references to @template and replace them with the appropriate C++
template mechanism.
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
i.e. `numpy.typing` and `numpy._typing`
|
| |
| |
| | |
Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
|
| |
| |
| | |
Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
|
| |
| |
| | |
`u @ np.diag(s) @ vh` can only reproduce the original matrix when `full_matrices` is `False`, otherwise dimension does not match.
|
|/
|
|
|
| |
It is in fact always lower-triangular. The errorenous note might
date to when function was forked from SciPy?
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Use PyMODINIT_FUNC instead of PyObject *.
|
|
|
|
|
|
|
|
| |
`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.
|
| |
|
|\
| |
| | |
DOC: Fixed docstring for parameters 2 and -2 on linalg.cond
|
| | |
|
| | |
|
|\ \
| |/
|/| |
MAINT: Remove unused imports and remove duplicated tests
|
| | |
|
|/
|
|
| |
Except block directly handles BaseException.
|
|\
| |
| | |
MAINT: Fix LGTM.com error: Unmatchable caret in regular expression
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
|/| |
DOC: Typos found by codespell
|
| | |
|
| |
| |
| |
| | |
This is a Python 2 script, we need to preserve Python 2 compatibility.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| | |
Make crystal clear that these remain Python 2 scripts.
|
| |
| |
| |
| | |
This is a Python 2 script, revert Python 3 exception handling.
|
| |
| |
| |
| | |
This is a Python 2 script, revert Python 3 exception handling.
|
| |
| |
| |
| | |
This is a Python 2 script, fstrings are implemented in Python 3 only.
|
|/
|
|
|
| |
This is actually a Python 2 script, not a Python 3 script.
Revert the shebang to its previous state.
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
MAINT: Minor include rationalizations.
|
| |
| |
| |
| |
| |
| |
| | |
- 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.
|
| | |
|
|/ |
|
|\
| |
| | |
ENH: Add annotations for `__path__` and `PytestTester`
|