| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
|
|
|
| |
Use PyMODINIT_FUNC instead of PyObject *.
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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
|
|\
| |
| | |
BUG: Add some missing C error handling
|
| | |
|
|/ |
|
|
|
|
|
| |
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.
|
|
|
|
| |
Revise the BLAS name mangling to support the general scheme.
|
| |
|
| |
|
|
|
|
| |
part of #8654
|
|\
| |
| | |
MAINT: One step closer to vectorizing lstsq
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* BUG: optimizing compilers can reorder call to npy_get_floatstatus
* alternative fix for npy_get_floatstatus, npy_clear_floatstatus
* unify test with pr #11043
* use barrier form of functions in place of PyUFunc_{get,clear}fperr
* update doc, prevent segfault
* MAINT: Do some rewrite on the 1.15.0 release notes.
[ci skip]
|
|\ \
| |/
| | |
MAINT: lstsq: compute residuals inside the ufunc
|
| |
| |
| |
| |
| |
| | |
This prevents an overly large output array being allocated.
It also means the the residuals can be handled as a separate out argument in future.
|
|\ \
| |/
|/| |
BUG: Return NULL from PyInit_* when exception is raised
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
I don't think this is documented anywhere, but I'm pretty sure module init
functions should return NULL in order to communicate that an exception
occurred during initialization (as is the standard Python/C API convention).
It's clear from the CPython code
[here](https://github.com/python/cpython/blob/master/Python/importdl.c#L162)
that if you don't return NULL, the exception is swallowed and replaced with the
message "initialization of %s raised unreported exception".
Admittedly, this is only useful for people porting Numpy to new platforms where
it is helpful to know where module initialization is failing, but it can't hurt.
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The sign-compare warning is enabled for python 3.5+ builds and
the warnings have been causing wheel build failures on travis ci.
The replacements here of `size_t` and `ptrdiff_t` by `npy_intp` should
be safe given that the sizes of numpy arrays in bytes are specified by
those types. A bigger problem is that most BLAS libraries are compiled
with smaller integer types. I don't know where that is checked, or even
if it is checked.
|
|
|
|
| |
F2C does not support complex return values.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* STY: Fix missing braces and spaces
* STY: Use NPY_INLINE not inline
* MAINT: Bump umath_linalg version, after #8756
* STY: Wrap long lines
* STY: Spaces around assignment and comparison
* DOC: fix incorrect description of svd overloads
* STY: Use ternary operator in min and max
|
|
|
|
|
| |
Getting the arguments to lapack calls in the correct order in two places is
harder than doing it in one.
|
|
|
|
|
|
|
|
| |
This diff makes it look like something else has happened, but in reality
that's the only change here.
This means we can invoke call_@lapack_func@ in init_@lapack_func@ when we do
workspace size calculations
|
|
|
|
|
| |
These are documented in the lapack source code as always being one or greater.
LD stands for "leading dimension", and can be thought of as a stride.
|
| |
|
| |
|