| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|\
| |
| | |
MAINT: Move set_module from numpy.core to numpy._utils
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`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);
| ^~~~~~~~
```
|
|\
| |
| | |
ENH, CI: Add Emscripten to CI
|
| | |
|
| |
| |
| |
| | |
[skip ci]
|
|/
|
|
| |
This fixes some annoying build warnings.
|
|
|
|
| |
This reverts commit 5d6b8b0d5658418919fbaef0e843655262291dbc.
|
|
|
| |
inifinity -> infinity
|
|\
| |
| | |
DEP: Deprecate fastCopyAndTranspose
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
|/| |
DOC: fix linalg.tensorsolve docstring
|
| | |
|
|/
|
|
|
|
|
| |
Some system (e.g. musl) do not have "execinfo.h", and the backtracking
is provided by libunwind.
Fix: #22084
|
| |
|
| |
|
|\
| |
| | |
API: Introduce optional (and partial) NEP 50 weak scalar logic
|
| | |
|
| | |
|
|\ \
| |/
|/| |
ENH: Change f2c declarations with void return type to int
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| | |
|
| |
| |
| | |
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
|
|/
|
|
|
|
|
|
|
| |
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")`
|
|\
| |
| | |
MAINT: Fix some typos.
|
| | |
|
|/ |
|
|
|
|
| |
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.
|
|\
| |
| | |
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?
|
| |
|