Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/LICENSE.txt +914 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/_core/include/numpy/libdivide/LICENSE.txt +21 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/_core/src/common/pythoncapi-compat/COPYING +14 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/_core/src/highway/LICENSE +371 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/_core/src/multiarray/dragon4_LICENSE.txt +27 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/_core/src/npysort/x86-simd-sort/LICENSE.md +28 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/_core/src/umath/svml/LICENSE +30 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/fft/pocketfft/LICENSE.md +25 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/linalg/lapack_lite/LICENSE.txt +48 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/ma/LICENSE +24 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/LICENSE.md +71 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/src/distributions/LICENSE.md +61 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/src/mt19937/LICENSE.md +61 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/src/pcg64/LICENSE.md +22 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/src/philox/LICENSE.md +31 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/src/sfc64/LICENSE.md +27 -0
- python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/src/splitmix64/LICENSE.md +9 -0
- python/user_packages/Python313/site-packages/numpy/char/__init__.py +2 -0
- python/user_packages/Python313/site-packages/numpy/char/__init__.pyi +111 -0
- python/user_packages/Python313/site-packages/numpy/core/__init__.py +33 -0
- python/user_packages/Python313/site-packages/numpy/core/__init__.pyi +0 -0
- python/user_packages/Python313/site-packages/numpy/core/_dtype.py +10 -0
- python/user_packages/Python313/site-packages/numpy/core/_dtype.pyi +0 -0
- python/user_packages/Python313/site-packages/numpy/core/_dtype_ctypes.py +10 -0
- python/user_packages/Python313/site-packages/numpy/core/_dtype_ctypes.pyi +0 -0
- python/user_packages/Python313/site-packages/numpy/core/_internal.py +27 -0
- python/user_packages/Python313/site-packages/numpy/core/_multiarray_umath.py +57 -0
- python/user_packages/Python313/site-packages/numpy/core/_utils.py +21 -0
- python/user_packages/Python313/site-packages/numpy/core/arrayprint.py +10 -0
- python/user_packages/Python313/site-packages/numpy/core/defchararray.py +10 -0
- python/user_packages/Python313/site-packages/numpy/core/einsumfunc.py +10 -0
- python/user_packages/Python313/site-packages/numpy/core/fromnumeric.py +10 -0
- python/user_packages/Python313/site-packages/numpy/core/function_base.py +10 -0
- python/user_packages/Python313/site-packages/numpy/core/getlimits.py +10 -0
- python/user_packages/Python313/site-packages/numpy/core/multiarray.py +25 -0
- python/user_packages/Python313/site-packages/numpy/core/numeric.py +12 -0
- python/user_packages/Python313/site-packages/numpy/core/numerictypes.py +10 -0
- python/user_packages/Python313/site-packages/numpy/core/overrides.py +10 -0
- python/user_packages/Python313/site-packages/numpy/core/overrides.pyi +7 -0
- python/user_packages/Python313/site-packages/numpy/core/records.py +10 -0
- python/user_packages/Python313/site-packages/numpy/core/shape_base.py +10 -0
- python/user_packages/Python313/site-packages/numpy/core/umath.py +10 -0
- python/user_packages/Python313/site-packages/numpy/ctypeslib/__init__.py +13 -0
- python/user_packages/Python313/site-packages/numpy/ctypeslib/__init__.pyi +15 -0
- python/user_packages/Python313/site-packages/numpy/ctypeslib/_ctypeslib.py +603 -0
- python/user_packages/Python313/site-packages/numpy/ctypeslib/_ctypeslib.pyi +236 -0
- python/user_packages/Python313/site-packages/numpy/doc/ufuncs.py +138 -0
- python/user_packages/Python313/site-packages/numpy/f2py/__init__.py +86 -0
- python/user_packages/Python313/site-packages/numpy/f2py/__init__.pyi +5 -0
- python/user_packages/Python313/site-packages/numpy/f2py/__main__.py +5 -0
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/LICENSE.txt
ADDED
|
@@ -0,0 +1,914 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2005-2025, NumPy Developers.
|
| 2 |
+
All rights reserved.
|
| 3 |
+
|
| 4 |
+
Redistribution and use in source and binary forms, with or without
|
| 5 |
+
modification, are permitted provided that the following conditions are
|
| 6 |
+
met:
|
| 7 |
+
|
| 8 |
+
* Redistributions of source code must retain the above copyright
|
| 9 |
+
notice, this list of conditions and the following disclaimer.
|
| 10 |
+
|
| 11 |
+
* Redistributions in binary form must reproduce the above
|
| 12 |
+
copyright notice, this list of conditions and the following
|
| 13 |
+
disclaimer in the documentation and/or other materials provided
|
| 14 |
+
with the distribution.
|
| 15 |
+
|
| 16 |
+
* Neither the name of the NumPy Developers nor the names of any
|
| 17 |
+
contributors may be used to endorse or promote products derived
|
| 18 |
+
from this software without specific prior written permission.
|
| 19 |
+
|
| 20 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 21 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 22 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 23 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 24 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 25 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 26 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 27 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 28 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 29 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 30 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 31 |
+
|
| 32 |
+
----
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
----
|
| 36 |
+
|
| 37 |
+
This binary distribution of NumPy also bundles the following software:
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
Name: OpenBLAS
|
| 41 |
+
Files: numpy.libs\libscipy_openblas*.dll
|
| 42 |
+
Description: bundled as a dynamically linked library
|
| 43 |
+
Availability: https://github.com/OpenMathLib/OpenBLAS/
|
| 44 |
+
License: BSD-3-Clause
|
| 45 |
+
Copyright (c) 2011-2014, The OpenBLAS Project
|
| 46 |
+
All rights reserved.
|
| 47 |
+
|
| 48 |
+
Redistribution and use in source and binary forms, with or without
|
| 49 |
+
modification, are permitted provided that the following conditions are
|
| 50 |
+
met:
|
| 51 |
+
|
| 52 |
+
1. Redistributions of source code must retain the above copyright
|
| 53 |
+
notice, this list of conditions and the following disclaimer.
|
| 54 |
+
|
| 55 |
+
2. Redistributions in binary form must reproduce the above copyright
|
| 56 |
+
notice, this list of conditions and the following disclaimer in
|
| 57 |
+
the documentation and/or other materials provided with the
|
| 58 |
+
distribution.
|
| 59 |
+
3. Neither the name of the OpenBLAS project nor the names of
|
| 60 |
+
its contributors may be used to endorse or promote products
|
| 61 |
+
derived from this software without specific prior written
|
| 62 |
+
permission.
|
| 63 |
+
|
| 64 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 65 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 66 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
| 67 |
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
| 68 |
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 69 |
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 70 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
| 71 |
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
| 72 |
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
|
| 73 |
+
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
Name: LAPACK
|
| 77 |
+
Files: numpy.libs\libscipy_openblas*.dll
|
| 78 |
+
Description: bundled in OpenBLAS
|
| 79 |
+
Availability: https://github.com/OpenMathLib/OpenBLAS/
|
| 80 |
+
License: BSD-3-Clause-Open-MPI
|
| 81 |
+
Copyright (c) 1992-2013 The University of Tennessee and The University
|
| 82 |
+
of Tennessee Research Foundation. All rights
|
| 83 |
+
reserved.
|
| 84 |
+
Copyright (c) 2000-2013 The University of California Berkeley. All
|
| 85 |
+
rights reserved.
|
| 86 |
+
Copyright (c) 2006-2013 The University of Colorado Denver. All rights
|
| 87 |
+
reserved.
|
| 88 |
+
|
| 89 |
+
$COPYRIGHT$
|
| 90 |
+
|
| 91 |
+
Additional copyrights may follow
|
| 92 |
+
|
| 93 |
+
$HEADER$
|
| 94 |
+
|
| 95 |
+
Redistribution and use in source and binary forms, with or without
|
| 96 |
+
modification, are permitted provided that the following conditions are
|
| 97 |
+
met:
|
| 98 |
+
|
| 99 |
+
- Redistributions of source code must retain the above copyright
|
| 100 |
+
notice, this list of conditions and the following disclaimer.
|
| 101 |
+
|
| 102 |
+
- Redistributions in binary form must reproduce the above copyright
|
| 103 |
+
notice, this list of conditions and the following disclaimer listed
|
| 104 |
+
in this license in the documentation and/or other materials
|
| 105 |
+
provided with the distribution.
|
| 106 |
+
|
| 107 |
+
- Neither the name of the copyright holders nor the names of its
|
| 108 |
+
contributors may be used to endorse or promote products derived from
|
| 109 |
+
this software without specific prior written permission.
|
| 110 |
+
|
| 111 |
+
The copyright holders provide no reassurances that the source code
|
| 112 |
+
provided does not infringe any patent, copyright, or any other
|
| 113 |
+
intellectual property rights of third parties. The copyright holders
|
| 114 |
+
disclaim any liability to any recipient for claims brought against
|
| 115 |
+
recipient by any third party for infringement of that parties
|
| 116 |
+
intellectual property rights.
|
| 117 |
+
|
| 118 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 119 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 120 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 121 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 122 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 123 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 124 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 125 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 126 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 127 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 128 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
Name: GCC runtime library
|
| 132 |
+
Files: numpy.libs\libscipy_openblas*.dll
|
| 133 |
+
Description: statically linked to files compiled with gcc
|
| 134 |
+
Availability: https://gcc.gnu.org/git/?p=gcc.git;a=tree;f=libgfortran
|
| 135 |
+
License: GPL-3.0-or-later WITH GCC-exception-3.1
|
| 136 |
+
Copyright (C) 2002-2017 Free Software Foundation, Inc.
|
| 137 |
+
|
| 138 |
+
Libgfortran is free software; you can redistribute it and/or modify
|
| 139 |
+
it under the terms of the GNU General Public License as published by
|
| 140 |
+
the Free Software Foundation; either version 3, or (at your option)
|
| 141 |
+
any later version.
|
| 142 |
+
|
| 143 |
+
Libgfortran is distributed in the hope that it will be useful,
|
| 144 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 145 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 146 |
+
GNU General Public License for more details.
|
| 147 |
+
|
| 148 |
+
Under Section 7 of GPL version 3, you are granted additional
|
| 149 |
+
permissions described in the GCC Runtime Library Exception, version
|
| 150 |
+
3.1, as published by the Free Software Foundation.
|
| 151 |
+
|
| 152 |
+
You should have received a copy of the GNU General Public License and
|
| 153 |
+
a copy of the GCC Runtime Library Exception along with this program;
|
| 154 |
+
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
| 155 |
+
<http://www.gnu.org/licenses/>.
|
| 156 |
+
|
| 157 |
+
----
|
| 158 |
+
|
| 159 |
+
Full text of license texts referred to above follows (that they are
|
| 160 |
+
listed below does not necessarily imply the conditions apply to the
|
| 161 |
+
present binary release):
|
| 162 |
+
|
| 163 |
+
----
|
| 164 |
+
|
| 165 |
+
GCC RUNTIME LIBRARY EXCEPTION
|
| 166 |
+
|
| 167 |
+
Version 3.1, 31 March 2009
|
| 168 |
+
|
| 169 |
+
Copyright (C) 2009 Free Software Foundation, Inc. <https://fsf.org/>
|
| 170 |
+
|
| 171 |
+
Everyone is permitted to copy and distribute verbatim copies of this
|
| 172 |
+
license document, but changing it is not allowed.
|
| 173 |
+
|
| 174 |
+
This GCC Runtime Library Exception ("Exception") is an additional
|
| 175 |
+
permission under section 7 of the GNU General Public License, version
|
| 176 |
+
3 ("GPLv3"). It applies to a given file (the "Runtime Library") that
|
| 177 |
+
bears a notice placed by the copyright holder of the file stating that
|
| 178 |
+
the file is governed by GPLv3 along with this Exception.
|
| 179 |
+
|
| 180 |
+
When you use GCC to compile a program, GCC may combine portions of
|
| 181 |
+
certain GCC header files and runtime libraries with the compiled
|
| 182 |
+
program. The purpose of this Exception is to allow compilation of
|
| 183 |
+
non-GPL (including proprietary) programs to use, in this way, the
|
| 184 |
+
header files and runtime libraries covered by this Exception.
|
| 185 |
+
|
| 186 |
+
0. Definitions.
|
| 187 |
+
|
| 188 |
+
A file is an "Independent Module" if it either requires the Runtime
|
| 189 |
+
Library for execution after a Compilation Process, or makes use of an
|
| 190 |
+
interface provided by the Runtime Library, but is not otherwise based
|
| 191 |
+
on the Runtime Library.
|
| 192 |
+
|
| 193 |
+
"GCC" means a version of the GNU Compiler Collection, with or without
|
| 194 |
+
modifications, governed by version 3 (or a specified later version) of
|
| 195 |
+
the GNU General Public License (GPL) with the option of using any
|
| 196 |
+
subsequent versions published by the FSF.
|
| 197 |
+
|
| 198 |
+
"GPL-compatible Software" is software whose conditions of propagation,
|
| 199 |
+
modification and use would permit combination with GCC in accord with
|
| 200 |
+
the license of GCC.
|
| 201 |
+
|
| 202 |
+
"Target Code" refers to output from any compiler for a real or virtual
|
| 203 |
+
target processor architecture, in executable form or suitable for
|
| 204 |
+
input to an assembler, loader, linker and/or execution
|
| 205 |
+
phase. Notwithstanding that, Target Code does not include data in any
|
| 206 |
+
format that is used as a compiler intermediate representation, or used
|
| 207 |
+
for producing a compiler intermediate representation.
|
| 208 |
+
|
| 209 |
+
The "Compilation Process" transforms code entirely represented in
|
| 210 |
+
non-intermediate languages designed for human-written code, and/or in
|
| 211 |
+
Java Virtual Machine byte code, into Target Code. Thus, for example,
|
| 212 |
+
use of source code generators and preprocessors need not be considered
|
| 213 |
+
part of the Compilation Process, since the Compilation Process can be
|
| 214 |
+
understood as starting with the output of the generators or
|
| 215 |
+
preprocessors.
|
| 216 |
+
|
| 217 |
+
A Compilation Process is "Eligible" if it is done using GCC, alone or
|
| 218 |
+
with other GPL-compatible software, or if it is done without using any
|
| 219 |
+
work based on GCC. For example, using non-GPL-compatible Software to
|
| 220 |
+
optimize any GCC intermediate representations would not qualify as an
|
| 221 |
+
Eligible Compilation Process.
|
| 222 |
+
|
| 223 |
+
1. Grant of Additional Permission.
|
| 224 |
+
|
| 225 |
+
You have permission to propagate a work of Target Code formed by
|
| 226 |
+
combining the Runtime Library with Independent Modules, even if such
|
| 227 |
+
propagation would otherwise violate the terms of GPLv3, provided that
|
| 228 |
+
all Target Code was generated by Eligible Compilation Processes. You
|
| 229 |
+
may then convey such a combination under terms of your choice,
|
| 230 |
+
consistent with the licensing of the Independent Modules.
|
| 231 |
+
|
| 232 |
+
2. No Weakening of GCC Copyleft.
|
| 233 |
+
|
| 234 |
+
The availability of this Exception does not imply any general
|
| 235 |
+
presumption that third-party software is unaffected by the copyleft
|
| 236 |
+
requirements of the license of GCC.
|
| 237 |
+
|
| 238 |
+
----
|
| 239 |
+
|
| 240 |
+
GNU GENERAL PUBLIC LICENSE
|
| 241 |
+
Version 3, 29 June 2007
|
| 242 |
+
|
| 243 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
| 244 |
+
Everyone is permitted to copy and distribute verbatim copies
|
| 245 |
+
of this license document, but changing it is not allowed.
|
| 246 |
+
|
| 247 |
+
Preamble
|
| 248 |
+
|
| 249 |
+
The GNU General Public License is a free, copyleft license for
|
| 250 |
+
software and other kinds of works.
|
| 251 |
+
|
| 252 |
+
The licenses for most software and other practical works are designed
|
| 253 |
+
to take away your freedom to share and change the works. By contrast,
|
| 254 |
+
the GNU General Public License is intended to guarantee your freedom to
|
| 255 |
+
share and change all versions of a program--to make sure it remains free
|
| 256 |
+
software for all its users. We, the Free Software Foundation, use the
|
| 257 |
+
GNU General Public License for most of our software; it applies also to
|
| 258 |
+
any other work released this way by its authors. You can apply it to
|
| 259 |
+
your programs, too.
|
| 260 |
+
|
| 261 |
+
When we speak of free software, we are referring to freedom, not
|
| 262 |
+
price. Our General Public Licenses are designed to make sure that you
|
| 263 |
+
have the freedom to distribute copies of free software (and charge for
|
| 264 |
+
them if you wish), that you receive source code or can get it if you
|
| 265 |
+
want it, that you can change the software or use pieces of it in new
|
| 266 |
+
free programs, and that you know you can do these things.
|
| 267 |
+
|
| 268 |
+
To protect your rights, we need to prevent others from denying you
|
| 269 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
| 270 |
+
certain responsibilities if you distribute copies of the software, or if
|
| 271 |
+
you modify it: responsibilities to respect the freedom of others.
|
| 272 |
+
|
| 273 |
+
For example, if you distribute copies of such a program, whether
|
| 274 |
+
gratis or for a fee, you must pass on to the recipients the same
|
| 275 |
+
freedoms that you received. You must make sure that they, too, receive
|
| 276 |
+
or can get the source code. And you must show them these terms so they
|
| 277 |
+
know their rights.
|
| 278 |
+
|
| 279 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
| 280 |
+
(1) assert copyright on the software, and (2) offer you this License
|
| 281 |
+
giving you legal permission to copy, distribute and/or modify it.
|
| 282 |
+
|
| 283 |
+
For the developers' and authors' protection, the GPL clearly explains
|
| 284 |
+
that there is no warranty for this free software. For both users' and
|
| 285 |
+
authors' sake, the GPL requires that modified versions be marked as
|
| 286 |
+
changed, so that their problems will not be attributed erroneously to
|
| 287 |
+
authors of previous versions.
|
| 288 |
+
|
| 289 |
+
Some devices are designed to deny users access to install or run
|
| 290 |
+
modified versions of the software inside them, although the manufacturer
|
| 291 |
+
can do so. This is fundamentally incompatible with the aim of
|
| 292 |
+
protecting users' freedom to change the software. The systematic
|
| 293 |
+
pattern of such abuse occurs in the area of products for individuals to
|
| 294 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
| 295 |
+
have designed this version of the GPL to prohibit the practice for those
|
| 296 |
+
products. If such problems arise substantially in other domains, we
|
| 297 |
+
stand ready to extend this provision to those domains in future versions
|
| 298 |
+
of the GPL, as needed to protect the freedom of users.
|
| 299 |
+
|
| 300 |
+
Finally, every program is threatened constantly by software patents.
|
| 301 |
+
States should not allow patents to restrict development and use of
|
| 302 |
+
software on general-purpose computers, but in those that do, we wish to
|
| 303 |
+
avoid the special danger that patents applied to a free program could
|
| 304 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
| 305 |
+
patents cannot be used to render the program non-free.
|
| 306 |
+
|
| 307 |
+
The precise terms and conditions for copying, distribution and
|
| 308 |
+
modification follow.
|
| 309 |
+
|
| 310 |
+
TERMS AND CONDITIONS
|
| 311 |
+
|
| 312 |
+
0. Definitions.
|
| 313 |
+
|
| 314 |
+
"This License" refers to version 3 of the GNU General Public License.
|
| 315 |
+
|
| 316 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
| 317 |
+
works, such as semiconductor masks.
|
| 318 |
+
|
| 319 |
+
"The Program" refers to any copyrightable work licensed under this
|
| 320 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
| 321 |
+
"recipients" may be individuals or organizations.
|
| 322 |
+
|
| 323 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
| 324 |
+
in a fashion requiring copyright permission, other than the making of an
|
| 325 |
+
exact copy. The resulting work is called a "modified version" of the
|
| 326 |
+
earlier work or a work "based on" the earlier work.
|
| 327 |
+
|
| 328 |
+
A "covered work" means either the unmodified Program or a work based
|
| 329 |
+
on the Program.
|
| 330 |
+
|
| 331 |
+
To "propagate" a work means to do anything with it that, without
|
| 332 |
+
permission, would make you directly or secondarily liable for
|
| 333 |
+
infringement under applicable copyright law, except executing it on a
|
| 334 |
+
computer or modifying a private copy. Propagation includes copying,
|
| 335 |
+
distribution (with or without modification), making available to the
|
| 336 |
+
public, and in some countries other activities as well.
|
| 337 |
+
|
| 338 |
+
To "convey" a work means any kind of propagation that enables other
|
| 339 |
+
parties to make or receive copies. Mere interaction with a user through
|
| 340 |
+
a computer network, with no transfer of a copy, is not conveying.
|
| 341 |
+
|
| 342 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
| 343 |
+
to the extent that it includes a convenient and prominently visible
|
| 344 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
| 345 |
+
tells the user that there is no warranty for the work (except to the
|
| 346 |
+
extent that warranties are provided), that licensees may convey the
|
| 347 |
+
work under this License, and how to view a copy of this License. If
|
| 348 |
+
the interface presents a list of user commands or options, such as a
|
| 349 |
+
menu, a prominent item in the list meets this criterion.
|
| 350 |
+
|
| 351 |
+
1. Source Code.
|
| 352 |
+
|
| 353 |
+
The "source code" for a work means the preferred form of the work
|
| 354 |
+
for making modifications to it. "Object code" means any non-source
|
| 355 |
+
form of a work.
|
| 356 |
+
|
| 357 |
+
A "Standard Interface" means an interface that either is an official
|
| 358 |
+
standard defined by a recognized standards body, or, in the case of
|
| 359 |
+
interfaces specified for a particular programming language, one that
|
| 360 |
+
is widely used among developers working in that language.
|
| 361 |
+
|
| 362 |
+
The "System Libraries" of an executable work include anything, other
|
| 363 |
+
than the work as a whole, that (a) is included in the normal form of
|
| 364 |
+
packaging a Major Component, but which is not part of that Major
|
| 365 |
+
Component, and (b) serves only to enable use of the work with that
|
| 366 |
+
Major Component, or to implement a Standard Interface for which an
|
| 367 |
+
implementation is available to the public in source code form. A
|
| 368 |
+
"Major Component", in this context, means a major essential component
|
| 369 |
+
(kernel, window system, and so on) of the specific operating system
|
| 370 |
+
(if any) on which the executable work runs, or a compiler used to
|
| 371 |
+
produce the work, or an object code interpreter used to run it.
|
| 372 |
+
|
| 373 |
+
The "Corresponding Source" for a work in object code form means all
|
| 374 |
+
the source code needed to generate, install, and (for an executable
|
| 375 |
+
work) run the object code and to modify the work, including scripts to
|
| 376 |
+
control those activities. However, it does not include the work's
|
| 377 |
+
System Libraries, or general-purpose tools or generally available free
|
| 378 |
+
programs which are used unmodified in performing those activities but
|
| 379 |
+
which are not part of the work. For example, Corresponding Source
|
| 380 |
+
includes interface definition files associated with source files for
|
| 381 |
+
the work, and the source code for shared libraries and dynamically
|
| 382 |
+
linked subprograms that the work is specifically designed to require,
|
| 383 |
+
such as by intimate data communication or control flow between those
|
| 384 |
+
subprograms and other parts of the work.
|
| 385 |
+
|
| 386 |
+
The Corresponding Source need not include anything that users
|
| 387 |
+
can regenerate automatically from other parts of the Corresponding
|
| 388 |
+
Source.
|
| 389 |
+
|
| 390 |
+
The Corresponding Source for a work in source code form is that
|
| 391 |
+
same work.
|
| 392 |
+
|
| 393 |
+
2. Basic Permissions.
|
| 394 |
+
|
| 395 |
+
All rights granted under this License are granted for the term of
|
| 396 |
+
copyright on the Program, and are irrevocable provided the stated
|
| 397 |
+
conditions are met. This License explicitly affirms your unlimited
|
| 398 |
+
permission to run the unmodified Program. The output from running a
|
| 399 |
+
covered work is covered by this License only if the output, given its
|
| 400 |
+
content, constitutes a covered work. This License acknowledges your
|
| 401 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
| 402 |
+
|
| 403 |
+
You may make, run and propagate covered works that you do not
|
| 404 |
+
convey, without conditions so long as your license otherwise remains
|
| 405 |
+
in force. You may convey covered works to others for the sole purpose
|
| 406 |
+
of having them make modifications exclusively for you, or provide you
|
| 407 |
+
with facilities for running those works, provided that you comply with
|
| 408 |
+
the terms of this License in conveying all material for which you do
|
| 409 |
+
not control copyright. Those thus making or running the covered works
|
| 410 |
+
for you must do so exclusively on your behalf, under your direction
|
| 411 |
+
and control, on terms that prohibit them from making any copies of
|
| 412 |
+
your copyrighted material outside their relationship with you.
|
| 413 |
+
|
| 414 |
+
Conveying under any other circumstances is permitted solely under
|
| 415 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
| 416 |
+
makes it unnecessary.
|
| 417 |
+
|
| 418 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
| 419 |
+
|
| 420 |
+
No covered work shall be deemed part of an effective technological
|
| 421 |
+
measure under any applicable law fulfilling obligations under article
|
| 422 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
| 423 |
+
similar laws prohibiting or restricting circumvention of such
|
| 424 |
+
measures.
|
| 425 |
+
|
| 426 |
+
When you convey a covered work, you waive any legal power to forbid
|
| 427 |
+
circumvention of technological measures to the extent such circumvention
|
| 428 |
+
is effected by exercising rights under this License with respect to
|
| 429 |
+
the covered work, and you disclaim any intention to limit operation or
|
| 430 |
+
modification of the work as a means of enforcing, against the work's
|
| 431 |
+
users, your or third parties' legal rights to forbid circumvention of
|
| 432 |
+
technological measures.
|
| 433 |
+
|
| 434 |
+
4. Conveying Verbatim Copies.
|
| 435 |
+
|
| 436 |
+
You may convey verbatim copies of the Program's source code as you
|
| 437 |
+
receive it, in any medium, provided that you conspicuously and
|
| 438 |
+
appropriately publish on each copy an appropriate copyright notice;
|
| 439 |
+
keep intact all notices stating that this License and any
|
| 440 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
| 441 |
+
keep intact all notices of the absence of any warranty; and give all
|
| 442 |
+
recipients a copy of this License along with the Program.
|
| 443 |
+
|
| 444 |
+
You may charge any price or no price for each copy that you convey,
|
| 445 |
+
and you may offer support or warranty protection for a fee.
|
| 446 |
+
|
| 447 |
+
5. Conveying Modified Source Versions.
|
| 448 |
+
|
| 449 |
+
You may convey a work based on the Program, or the modifications to
|
| 450 |
+
produce it from the Program, in the form of source code under the
|
| 451 |
+
terms of section 4, provided that you also meet all of these conditions:
|
| 452 |
+
|
| 453 |
+
a) The work must carry prominent notices stating that you modified
|
| 454 |
+
it, and giving a relevant date.
|
| 455 |
+
|
| 456 |
+
b) The work must carry prominent notices stating that it is
|
| 457 |
+
released under this License and any conditions added under section
|
| 458 |
+
7. This requirement modifies the requirement in section 4 to
|
| 459 |
+
"keep intact all notices".
|
| 460 |
+
|
| 461 |
+
c) You must license the entire work, as a whole, under this
|
| 462 |
+
License to anyone who comes into possession of a copy. This
|
| 463 |
+
License will therefore apply, along with any applicable section 7
|
| 464 |
+
additional terms, to the whole of the work, and all its parts,
|
| 465 |
+
regardless of how they are packaged. This License gives no
|
| 466 |
+
permission to license the work in any other way, but it does not
|
| 467 |
+
invalidate such permission if you have separately received it.
|
| 468 |
+
|
| 469 |
+
d) If the work has interactive user interfaces, each must display
|
| 470 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
| 471 |
+
interfaces that do not display Appropriate Legal Notices, your
|
| 472 |
+
work need not make them do so.
|
| 473 |
+
|
| 474 |
+
A compilation of a covered work with other separate and independent
|
| 475 |
+
works, which are not by their nature extensions of the covered work,
|
| 476 |
+
and which are not combined with it such as to form a larger program,
|
| 477 |
+
in or on a volume of a storage or distribution medium, is called an
|
| 478 |
+
"aggregate" if the compilation and its resulting copyright are not
|
| 479 |
+
used to limit the access or legal rights of the compilation's users
|
| 480 |
+
beyond what the individual works permit. Inclusion of a covered work
|
| 481 |
+
in an aggregate does not cause this License to apply to the other
|
| 482 |
+
parts of the aggregate.
|
| 483 |
+
|
| 484 |
+
6. Conveying Non-Source Forms.
|
| 485 |
+
|
| 486 |
+
You may convey a covered work in object code form under the terms
|
| 487 |
+
of sections 4 and 5, provided that you also convey the
|
| 488 |
+
machine-readable Corresponding Source under the terms of this License,
|
| 489 |
+
in one of these ways:
|
| 490 |
+
|
| 491 |
+
a) Convey the object code in, or embodied in, a physical product
|
| 492 |
+
(including a physical distribution medium), accompanied by the
|
| 493 |
+
Corresponding Source fixed on a durable physical medium
|
| 494 |
+
customarily used for software interchange.
|
| 495 |
+
|
| 496 |
+
b) Convey the object code in, or embodied in, a physical product
|
| 497 |
+
(including a physical distribution medium), accompanied by a
|
| 498 |
+
written offer, valid for at least three years and valid for as
|
| 499 |
+
long as you offer spare parts or customer support for that product
|
| 500 |
+
model, to give anyone who possesses the object code either (1) a
|
| 501 |
+
copy of the Corresponding Source for all the software in the
|
| 502 |
+
product that is covered by this License, on a durable physical
|
| 503 |
+
medium customarily used for software interchange, for a price no
|
| 504 |
+
more than your reasonable cost of physically performing this
|
| 505 |
+
conveying of source, or (2) access to copy the
|
| 506 |
+
Corresponding Source from a network server at no charge.
|
| 507 |
+
|
| 508 |
+
c) Convey individual copies of the object code with a copy of the
|
| 509 |
+
written offer to provide the Corresponding Source. This
|
| 510 |
+
alternative is allowed only occasionally and noncommercially, and
|
| 511 |
+
only if you received the object code with such an offer, in accord
|
| 512 |
+
with subsection 6b.
|
| 513 |
+
|
| 514 |
+
d) Convey the object code by offering access from a designated
|
| 515 |
+
place (gratis or for a charge), and offer equivalent access to the
|
| 516 |
+
Corresponding Source in the same way through the same place at no
|
| 517 |
+
further charge. You need not require recipients to copy the
|
| 518 |
+
Corresponding Source along with the object code. If the place to
|
| 519 |
+
copy the object code is a network server, the Corresponding Source
|
| 520 |
+
may be on a different server (operated by you or a third party)
|
| 521 |
+
that supports equivalent copying facilities, provided you maintain
|
| 522 |
+
clear directions next to the object code saying where to find the
|
| 523 |
+
Corresponding Source. Regardless of what server hosts the
|
| 524 |
+
Corresponding Source, you remain obligated to ensure that it is
|
| 525 |
+
available for as long as needed to satisfy these requirements.
|
| 526 |
+
|
| 527 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
| 528 |
+
you inform other peers where the object code and Corresponding
|
| 529 |
+
Source of the work are being offered to the general public at no
|
| 530 |
+
charge under subsection 6d.
|
| 531 |
+
|
| 532 |
+
A separable portion of the object code, whose source code is excluded
|
| 533 |
+
from the Corresponding Source as a System Library, need not be
|
| 534 |
+
included in conveying the object code work.
|
| 535 |
+
|
| 536 |
+
A "User Product" is either (1) a "consumer product", which means any
|
| 537 |
+
tangible personal property which is normally used for personal, family,
|
| 538 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
| 539 |
+
into a dwelling. In determining whether a product is a consumer product,
|
| 540 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
| 541 |
+
product received by a particular user, "normally used" refers to a
|
| 542 |
+
typical or common use of that class of product, regardless of the status
|
| 543 |
+
of the particular user or of the way in which the particular user
|
| 544 |
+
actually uses, or expects or is expected to use, the product. A product
|
| 545 |
+
is a consumer product regardless of whether the product has substantial
|
| 546 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
| 547 |
+
the only significant mode of use of the product.
|
| 548 |
+
|
| 549 |
+
"Installation Information" for a User Product means any methods,
|
| 550 |
+
procedures, authorization keys, or other information required to install
|
| 551 |
+
and execute modified versions of a covered work in that User Product from
|
| 552 |
+
a modified version of its Corresponding Source. The information must
|
| 553 |
+
suffice to ensure that the continued functioning of the modified object
|
| 554 |
+
code is in no case prevented or interfered with solely because
|
| 555 |
+
modification has been made.
|
| 556 |
+
|
| 557 |
+
If you convey an object code work under this section in, or with, or
|
| 558 |
+
specifically for use in, a User Product, and the conveying occurs as
|
| 559 |
+
part of a transaction in which the right of possession and use of the
|
| 560 |
+
User Product is transferred to the recipient in perpetuity or for a
|
| 561 |
+
fixed term (regardless of how the transaction is characterized), the
|
| 562 |
+
Corresponding Source conveyed under this section must be accompanied
|
| 563 |
+
by the Installation Information. But this requirement does not apply
|
| 564 |
+
if neither you nor any third party retains the ability to install
|
| 565 |
+
modified object code on the User Product (for example, the work has
|
| 566 |
+
been installed in ROM).
|
| 567 |
+
|
| 568 |
+
The requirement to provide Installation Information does not include a
|
| 569 |
+
requirement to continue to provide support service, warranty, or updates
|
| 570 |
+
for a work that has been modified or installed by the recipient, or for
|
| 571 |
+
the User Product in which it has been modified or installed. Access to a
|
| 572 |
+
network may be denied when the modification itself materially and
|
| 573 |
+
adversely affects the operation of the network or violates the rules and
|
| 574 |
+
protocols for communication across the network.
|
| 575 |
+
|
| 576 |
+
Corresponding Source conveyed, and Installation Information provided,
|
| 577 |
+
in accord with this section must be in a format that is publicly
|
| 578 |
+
documented (and with an implementation available to the public in
|
| 579 |
+
source code form), and must require no special password or key for
|
| 580 |
+
unpacking, reading or copying.
|
| 581 |
+
|
| 582 |
+
7. Additional Terms.
|
| 583 |
+
|
| 584 |
+
"Additional permissions" are terms that supplement the terms of this
|
| 585 |
+
License by making exceptions from one or more of its conditions.
|
| 586 |
+
Additional permissions that are applicable to the entire Program shall
|
| 587 |
+
be treated as though they were included in this License, to the extent
|
| 588 |
+
that they are valid under applicable law. If additional permissions
|
| 589 |
+
apply only to part of the Program, that part may be used separately
|
| 590 |
+
under those permissions, but the entire Program remains governed by
|
| 591 |
+
this License without regard to the additional permissions.
|
| 592 |
+
|
| 593 |
+
When you convey a copy of a covered work, you may at your option
|
| 594 |
+
remove any additional permissions from that copy, or from any part of
|
| 595 |
+
it. (Additional permissions may be written to require their own
|
| 596 |
+
removal in certain cases when you modify the work.) You may place
|
| 597 |
+
additional permissions on material, added by you to a covered work,
|
| 598 |
+
for which you have or can give appropriate copyright permission.
|
| 599 |
+
|
| 600 |
+
Notwithstanding any other provision of this License, for material you
|
| 601 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
| 602 |
+
that material) supplement the terms of this License with terms:
|
| 603 |
+
|
| 604 |
+
a) Disclaiming warranty or limiting liability differently from the
|
| 605 |
+
terms of sections 15 and 16 of this License; or
|
| 606 |
+
|
| 607 |
+
b) Requiring preservation of specified reasonable legal notices or
|
| 608 |
+
author attributions in that material or in the Appropriate Legal
|
| 609 |
+
Notices displayed by works containing it; or
|
| 610 |
+
|
| 611 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
| 612 |
+
requiring that modified versions of such material be marked in
|
| 613 |
+
reasonable ways as different from the original version; or
|
| 614 |
+
|
| 615 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
| 616 |
+
authors of the material; or
|
| 617 |
+
|
| 618 |
+
e) Declining to grant rights under trademark law for use of some
|
| 619 |
+
trade names, trademarks, or service marks; or
|
| 620 |
+
|
| 621 |
+
f) Requiring indemnification of licensors and authors of that
|
| 622 |
+
material by anyone who conveys the material (or modified versions of
|
| 623 |
+
it) with contractual assumptions of liability to the recipient, for
|
| 624 |
+
any liability that these contractual assumptions directly impose on
|
| 625 |
+
those licensors and authors.
|
| 626 |
+
|
| 627 |
+
All other non-permissive additional terms are considered "further
|
| 628 |
+
restrictions" within the meaning of section 10. If the Program as you
|
| 629 |
+
received it, or any part of it, contains a notice stating that it is
|
| 630 |
+
governed by this License along with a term that is a further
|
| 631 |
+
restriction, you may remove that term. If a license document contains
|
| 632 |
+
a further restriction but permits relicensing or conveying under this
|
| 633 |
+
License, you may add to a covered work material governed by the terms
|
| 634 |
+
of that license document, provided that the further restriction does
|
| 635 |
+
not survive such relicensing or conveying.
|
| 636 |
+
|
| 637 |
+
If you add terms to a covered work in accord with this section, you
|
| 638 |
+
must place, in the relevant source files, a statement of the
|
| 639 |
+
additional terms that apply to those files, or a notice indicating
|
| 640 |
+
where to find the applicable terms.
|
| 641 |
+
|
| 642 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
| 643 |
+
form of a separately written license, or stated as exceptions;
|
| 644 |
+
the above requirements apply either way.
|
| 645 |
+
|
| 646 |
+
8. Termination.
|
| 647 |
+
|
| 648 |
+
You may not propagate or modify a covered work except as expressly
|
| 649 |
+
provided under this License. Any attempt otherwise to propagate or
|
| 650 |
+
modify it is void, and will automatically terminate your rights under
|
| 651 |
+
this License (including any patent licenses granted under the third
|
| 652 |
+
paragraph of section 11).
|
| 653 |
+
|
| 654 |
+
However, if you cease all violation of this License, then your
|
| 655 |
+
license from a particular copyright holder is reinstated (a)
|
| 656 |
+
provisionally, unless and until the copyright holder explicitly and
|
| 657 |
+
finally terminates your license, and (b) permanently, if the copyright
|
| 658 |
+
holder fails to notify you of the violation by some reasonable means
|
| 659 |
+
prior to 60 days after the cessation.
|
| 660 |
+
|
| 661 |
+
Moreover, your license from a particular copyright holder is
|
| 662 |
+
reinstated permanently if the copyright holder notifies you of the
|
| 663 |
+
violation by some reasonable means, this is the first time you have
|
| 664 |
+
received notice of violation of this License (for any work) from that
|
| 665 |
+
copyright holder, and you cure the violation prior to 30 days after
|
| 666 |
+
your receipt of the notice.
|
| 667 |
+
|
| 668 |
+
Termination of your rights under this section does not terminate the
|
| 669 |
+
licenses of parties who have received copies or rights from you under
|
| 670 |
+
this License. If your rights have been terminated and not permanently
|
| 671 |
+
reinstated, you do not qualify to receive new licenses for the same
|
| 672 |
+
material under section 10.
|
| 673 |
+
|
| 674 |
+
9. Acceptance Not Required for Having Copies.
|
| 675 |
+
|
| 676 |
+
You are not required to accept this License in order to receive or
|
| 677 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
| 678 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
| 679 |
+
to receive a copy likewise does not require acceptance. However,
|
| 680 |
+
nothing other than this License grants you permission to propagate or
|
| 681 |
+
modify any covered work. These actions infringe copyright if you do
|
| 682 |
+
not accept this License. Therefore, by modifying or propagating a
|
| 683 |
+
covered work, you indicate your acceptance of this License to do so.
|
| 684 |
+
|
| 685 |
+
10. Automatic Licensing of Downstream Recipients.
|
| 686 |
+
|
| 687 |
+
Each time you convey a covered work, the recipient automatically
|
| 688 |
+
receives a license from the original licensors, to run, modify and
|
| 689 |
+
propagate that work, subject to this License. You are not responsible
|
| 690 |
+
for enforcing compliance by third parties with this License.
|
| 691 |
+
|
| 692 |
+
An "entity transaction" is a transaction transferring control of an
|
| 693 |
+
organization, or substantially all assets of one, or subdividing an
|
| 694 |
+
organization, or merging organizations. If propagation of a covered
|
| 695 |
+
work results from an entity transaction, each party to that
|
| 696 |
+
transaction who receives a copy of the work also receives whatever
|
| 697 |
+
licenses to the work the party's predecessor in interest had or could
|
| 698 |
+
give under the previous paragraph, plus a right to possession of the
|
| 699 |
+
Corresponding Source of the work from the predecessor in interest, if
|
| 700 |
+
the predecessor has it or can get it with reasonable efforts.
|
| 701 |
+
|
| 702 |
+
You may not impose any further restrictions on the exercise of the
|
| 703 |
+
rights granted or affirmed under this License. For example, you may
|
| 704 |
+
not impose a license fee, royalty, or other charge for exercise of
|
| 705 |
+
rights granted under this License, and you may not initiate litigation
|
| 706 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
| 707 |
+
any patent claim is infringed by making, using, selling, offering for
|
| 708 |
+
sale, or importing the Program or any portion of it.
|
| 709 |
+
|
| 710 |
+
11. Patents.
|
| 711 |
+
|
| 712 |
+
A "contributor" is a copyright holder who authorizes use under this
|
| 713 |
+
License of the Program or a work on which the Program is based. The
|
| 714 |
+
work thus licensed is called the contributor's "contributor version".
|
| 715 |
+
|
| 716 |
+
A contributor's "essential patent claims" are all patent claims
|
| 717 |
+
owned or controlled by the contributor, whether already acquired or
|
| 718 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
| 719 |
+
by this License, of making, using, or selling its contributor version,
|
| 720 |
+
but do not include claims that would be infringed only as a
|
| 721 |
+
consequence of further modification of the contributor version. For
|
| 722 |
+
purposes of this definition, "control" includes the right to grant
|
| 723 |
+
patent sublicenses in a manner consistent with the requirements of
|
| 724 |
+
this License.
|
| 725 |
+
|
| 726 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
| 727 |
+
patent license under the contributor's essential patent claims, to
|
| 728 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
| 729 |
+
propagate the contents of its contributor version.
|
| 730 |
+
|
| 731 |
+
In the following three paragraphs, a "patent license" is any express
|
| 732 |
+
agreement or commitment, however denominated, not to enforce a patent
|
| 733 |
+
(such as an express permission to practice a patent or covenant not to
|
| 734 |
+
sue for patent infringement). To "grant" such a patent license to a
|
| 735 |
+
party means to make such an agreement or commitment not to enforce a
|
| 736 |
+
patent against the party.
|
| 737 |
+
|
| 738 |
+
If you convey a covered work, knowingly relying on a patent license,
|
| 739 |
+
and the Corresponding Source of the work is not available for anyone
|
| 740 |
+
to copy, free of charge and under the terms of this License, through a
|
| 741 |
+
publicly available network server or other readily accessible means,
|
| 742 |
+
then you must either (1) cause the Corresponding Source to be so
|
| 743 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
| 744 |
+
patent license for this particular work, or (3) arrange, in a manner
|
| 745 |
+
consistent with the requirements of this License, to extend the patent
|
| 746 |
+
license to downstream recipients. "Knowingly relying" means you have
|
| 747 |
+
actual knowledge that, but for the patent license, your conveying the
|
| 748 |
+
covered work in a country, or your recipient's use of the covered work
|
| 749 |
+
in a country, would infringe one or more identifiable patents in that
|
| 750 |
+
country that you have reason to believe are valid.
|
| 751 |
+
|
| 752 |
+
If, pursuant to or in connection with a single transaction or
|
| 753 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
| 754 |
+
covered work, and grant a patent license to some of the parties
|
| 755 |
+
receiving the covered work authorizing them to use, propagate, modify
|
| 756 |
+
or convey a specific copy of the covered work, then the patent license
|
| 757 |
+
you grant is automatically extended to all recipients of the covered
|
| 758 |
+
work and works based on it.
|
| 759 |
+
|
| 760 |
+
A patent license is "discriminatory" if it does not include within
|
| 761 |
+
the scope of its coverage, prohibits the exercise of, or is
|
| 762 |
+
conditioned on the non-exercise of one or more of the rights that are
|
| 763 |
+
specifically granted under this License. You may not convey a covered
|
| 764 |
+
work if you are a party to an arrangement with a third party that is
|
| 765 |
+
in the business of distributing software, under which you make payment
|
| 766 |
+
to the third party based on the extent of your activity of conveying
|
| 767 |
+
the work, and under which the third party grants, to any of the
|
| 768 |
+
parties who would receive the covered work from you, a discriminatory
|
| 769 |
+
patent license (a) in connection with copies of the covered work
|
| 770 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
| 771 |
+
for and in connection with specific products or compilations that
|
| 772 |
+
contain the covered work, unless you entered into that arrangement,
|
| 773 |
+
or that patent license was granted, prior to 28 March 2007.
|
| 774 |
+
|
| 775 |
+
Nothing in this License shall be construed as excluding or limiting
|
| 776 |
+
any implied license or other defenses to infringement that may
|
| 777 |
+
otherwise be available to you under applicable patent law.
|
| 778 |
+
|
| 779 |
+
12. No Surrender of Others' Freedom.
|
| 780 |
+
|
| 781 |
+
If conditions are imposed on you (whether by court order, agreement or
|
| 782 |
+
otherwise) that contradict the conditions of this License, they do not
|
| 783 |
+
excuse you from the conditions of this License. If you cannot convey a
|
| 784 |
+
covered work so as to satisfy simultaneously your obligations under this
|
| 785 |
+
License and any other pertinent obligations, then as a consequence you may
|
| 786 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
| 787 |
+
to collect a royalty for further conveying from those to whom you convey
|
| 788 |
+
the Program, the only way you could satisfy both those terms and this
|
| 789 |
+
License would be to refrain entirely from conveying the Program.
|
| 790 |
+
|
| 791 |
+
13. Use with the GNU Affero General Public License.
|
| 792 |
+
|
| 793 |
+
Notwithstanding any other provision of this License, you have
|
| 794 |
+
permission to link or combine any covered work with a work licensed
|
| 795 |
+
under version 3 of the GNU Affero General Public License into a single
|
| 796 |
+
combined work, and to convey the resulting work. The terms of this
|
| 797 |
+
License will continue to apply to the part which is the covered work,
|
| 798 |
+
but the special requirements of the GNU Affero General Public License,
|
| 799 |
+
section 13, concerning interaction through a network will apply to the
|
| 800 |
+
combination as such.
|
| 801 |
+
|
| 802 |
+
14. Revised Versions of this License.
|
| 803 |
+
|
| 804 |
+
The Free Software Foundation may publish revised and/or new versions of
|
| 805 |
+
the GNU General Public License from time to time. Such new versions will
|
| 806 |
+
be similar in spirit to the present version, but may differ in detail to
|
| 807 |
+
address new problems or concerns.
|
| 808 |
+
|
| 809 |
+
Each version is given a distinguishing version number. If the
|
| 810 |
+
Program specifies that a certain numbered version of the GNU General
|
| 811 |
+
Public License "or any later version" applies to it, you have the
|
| 812 |
+
option of following the terms and conditions either of that numbered
|
| 813 |
+
version or of any later version published by the Free Software
|
| 814 |
+
Foundation. If the Program does not specify a version number of the
|
| 815 |
+
GNU General Public License, you may choose any version ever published
|
| 816 |
+
by the Free Software Foundation.
|
| 817 |
+
|
| 818 |
+
If the Program specifies that a proxy can decide which future
|
| 819 |
+
versions of the GNU General Public License can be used, that proxy's
|
| 820 |
+
public statement of acceptance of a version permanently authorizes you
|
| 821 |
+
to choose that version for the Program.
|
| 822 |
+
|
| 823 |
+
Later license versions may give you additional or different
|
| 824 |
+
permissions. However, no additional obligations are imposed on any
|
| 825 |
+
author or copyright holder as a result of your choosing to follow a
|
| 826 |
+
later version.
|
| 827 |
+
|
| 828 |
+
15. Disclaimer of Warranty.
|
| 829 |
+
|
| 830 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
| 831 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
| 832 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
| 833 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
| 834 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 835 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
| 836 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
| 837 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
| 838 |
+
|
| 839 |
+
16. Limitation of Liability.
|
| 840 |
+
|
| 841 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
| 842 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
| 843 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
| 844 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
| 845 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
| 846 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
| 847 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
| 848 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
| 849 |
+
SUCH DAMAGES.
|
| 850 |
+
|
| 851 |
+
17. Interpretation of Sections 15 and 16.
|
| 852 |
+
|
| 853 |
+
If the disclaimer of warranty and limitation of liability provided
|
| 854 |
+
above cannot be given local legal effect according to their terms,
|
| 855 |
+
reviewing courts shall apply local law that most closely approximates
|
| 856 |
+
an absolute waiver of all civil liability in connection with the
|
| 857 |
+
Program, unless a warranty or assumption of liability accompanies a
|
| 858 |
+
copy of the Program in return for a fee.
|
| 859 |
+
|
| 860 |
+
END OF TERMS AND CONDITIONS
|
| 861 |
+
|
| 862 |
+
How to Apply These Terms to Your New Programs
|
| 863 |
+
|
| 864 |
+
If you develop a new program, and you want it to be of the greatest
|
| 865 |
+
possible use to the public, the best way to achieve this is to make it
|
| 866 |
+
free software which everyone can redistribute and change under these terms.
|
| 867 |
+
|
| 868 |
+
To do so, attach the following notices to the program. It is safest
|
| 869 |
+
to attach them to the start of each source file to most effectively
|
| 870 |
+
state the exclusion of warranty; and each file should have at least
|
| 871 |
+
the "copyright" line and a pointer to where the full notice is found.
|
| 872 |
+
|
| 873 |
+
<one line to give the program's name and a brief idea of what it does.>
|
| 874 |
+
Copyright (C) <year> <name of author>
|
| 875 |
+
|
| 876 |
+
This program is free software: you can redistribute it and/or modify
|
| 877 |
+
it under the terms of the GNU General Public License as published by
|
| 878 |
+
the Free Software Foundation, either version 3 of the License, or
|
| 879 |
+
(at your option) any later version.
|
| 880 |
+
|
| 881 |
+
This program is distributed in the hope that it will be useful,
|
| 882 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 883 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 884 |
+
GNU General Public License for more details.
|
| 885 |
+
|
| 886 |
+
You should have received a copy of the GNU General Public License
|
| 887 |
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
| 888 |
+
|
| 889 |
+
Also add information on how to contact you by electronic and paper mail.
|
| 890 |
+
|
| 891 |
+
If the program does terminal interaction, make it output a short
|
| 892 |
+
notice like this when it starts in an interactive mode:
|
| 893 |
+
|
| 894 |
+
<program> Copyright (C) <year> <name of author>
|
| 895 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
| 896 |
+
This is free software, and you are welcome to redistribute it
|
| 897 |
+
under certain conditions; type `show c' for details.
|
| 898 |
+
|
| 899 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
| 900 |
+
parts of the General Public License. Of course, your program's commands
|
| 901 |
+
might be different; for a GUI interface, you would use an "about box".
|
| 902 |
+
|
| 903 |
+
You should also get your employer (if you work as a programmer) or school,
|
| 904 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
| 905 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
| 906 |
+
<https://www.gnu.org/licenses/>.
|
| 907 |
+
|
| 908 |
+
The GNU General Public License does not permit incorporating your program
|
| 909 |
+
into proprietary programs. If your program is a subroutine library, you
|
| 910 |
+
may consider it more useful to permit linking proprietary applications with
|
| 911 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
| 912 |
+
Public License instead of this License. But first, please read
|
| 913 |
+
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
| 914 |
+
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/_core/include/numpy/libdivide/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
zlib License
|
| 2 |
+
------------
|
| 3 |
+
|
| 4 |
+
Copyright (C) 2010 - 2019 ridiculous_fish, <libdivide@ridiculousfish.com>
|
| 5 |
+
Copyright (C) 2016 - 2019 Kim Walisch, <kim.walisch@gmail.com>
|
| 6 |
+
|
| 7 |
+
This software is provided 'as-is', without any express or implied
|
| 8 |
+
warranty. In no event will the authors be held liable for any damages
|
| 9 |
+
arising from the use of this software.
|
| 10 |
+
|
| 11 |
+
Permission is granted to anyone to use this software for any purpose,
|
| 12 |
+
including commercial applications, and to alter it and redistribute it
|
| 13 |
+
freely, subject to the following restrictions:
|
| 14 |
+
|
| 15 |
+
1. The origin of this software must not be misrepresented; you must not
|
| 16 |
+
claim that you wrote the original software. If you use this software
|
| 17 |
+
in a product, an acknowledgment in the product documentation would be
|
| 18 |
+
appreciated but is not required.
|
| 19 |
+
2. Altered source versions must be plainly marked as such, and must not be
|
| 20 |
+
misrepresented as being the original software.
|
| 21 |
+
3. This notice may not be removed or altered from any source distribution.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/_core/src/common/pythoncapi-compat/COPYING
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
BSD Zero Clause License
|
| 2 |
+
|
| 3 |
+
Copyright Contributors to the pythoncapi_compat project.
|
| 4 |
+
|
| 5 |
+
Permission to use, copy, modify, and/or distribute this software for any
|
| 6 |
+
purpose with or without fee is hereby granted.
|
| 7 |
+
|
| 8 |
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
| 9 |
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
| 10 |
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
| 11 |
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
| 12 |
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
| 13 |
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
| 14 |
+
PERFORMANCE OF THIS SOFTWARE.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/_core/src/highway/LICENSE
ADDED
|
@@ -0,0 +1,371 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This project is primarily dual-licensed under your choice of either the Apache
|
| 2 |
+
License 2.0 or the BSD 3-Clause License.
|
| 3 |
+
|
| 4 |
+
The following files are licensed under different terms:
|
| 5 |
+
* hwy/contrib/random/random-inl.h: CC0 1.0 Universal
|
| 6 |
+
|
| 7 |
+
The full texts of all applicable licenses are included below, separated by
|
| 8 |
+
'---'.
|
| 9 |
+
|
| 10 |
+
--------------------------------------------------------------------------------
|
| 11 |
+
Apache License 2.0
|
| 12 |
+
--------------------------------------------------------------------------------
|
| 13 |
+
|
| 14 |
+
Apache License
|
| 15 |
+
Version 2.0, January 2004
|
| 16 |
+
http://www.apache.org/licenses/
|
| 17 |
+
|
| 18 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 19 |
+
|
| 20 |
+
1. Definitions.
|
| 21 |
+
|
| 22 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 23 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 24 |
+
|
| 25 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 26 |
+
the copyright owner that is granting the License.
|
| 27 |
+
|
| 28 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 29 |
+
other entities that control, are controlled by, or are under common
|
| 30 |
+
control with that entity. For the purposes of this definition,
|
| 31 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 32 |
+
direction or management of such entity, whether by contract or
|
| 33 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 34 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 35 |
+
|
| 36 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 37 |
+
exercising permissions granted by this License.
|
| 38 |
+
|
| 39 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 40 |
+
including but not limited to software source code, documentation
|
| 41 |
+
source, and configuration files.
|
| 42 |
+
|
| 43 |
+
"Object" form shall mean any form resulting from mechanical
|
| 44 |
+
transformation or translation of a Source form, including but
|
| 45 |
+
not limited to compiled object code, generated documentation,
|
| 46 |
+
and conversions to other media types.
|
| 47 |
+
|
| 48 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 49 |
+
Object form, made available under the License, as indicated by a
|
| 50 |
+
copyright notice that is included in or attached to the work
|
| 51 |
+
(an example is provided in the Appendix below).
|
| 52 |
+
|
| 53 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 54 |
+
form, that is based on (or derived from) the Work and for which the
|
| 55 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 56 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 57 |
+
of this License, Derivative Works shall not include works that remain
|
| 58 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 59 |
+
the Work and Derivative Works thereof.
|
| 60 |
+
|
| 61 |
+
"Contribution" shall mean any work of authorship, including
|
| 62 |
+
the original version of the Work and any modifications or additions
|
| 63 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 64 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 65 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 66 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 67 |
+
means any form of electronic, verbal, or written communication sent
|
| 68 |
+
to the Licensor or its representatives, including but not limited to
|
| 69 |
+
communication on electronic mailing lists, source code control systems,
|
| 70 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 71 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 72 |
+
excluding communication that is conspicuously marked or otherwise
|
| 73 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 74 |
+
|
| 75 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 76 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 77 |
+
subsequently incorporated within the Work.
|
| 78 |
+
|
| 79 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 80 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 81 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 82 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 83 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 84 |
+
Work and such Derivative Works in Source or Object form.
|
| 85 |
+
|
| 86 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 87 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 88 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 89 |
+
(except as stated in this section) patent license to make, have made,
|
| 90 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 91 |
+
where such license applies only to those patent claims licensable
|
| 92 |
+
by such Contributor that are necessarily infringed by their
|
| 93 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 94 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 95 |
+
institute patent litigation against any entity (including a
|
| 96 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 97 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 98 |
+
or contributory patent infringement, then any patent licenses
|
| 99 |
+
granted to You under this License for that Work shall terminate
|
| 100 |
+
as of the date such litigation is filed.
|
| 101 |
+
|
| 102 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 103 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 104 |
+
modifications, and in Source or Object form, provided that You
|
| 105 |
+
meet the following conditions:
|
| 106 |
+
|
| 107 |
+
(a) You must give any other recipients of the Work or
|
| 108 |
+
Derivative Works a copy of this License; and
|
| 109 |
+
|
| 110 |
+
(b) You must cause any modified files to carry prominent notices
|
| 111 |
+
stating that You changed the files; and
|
| 112 |
+
|
| 113 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 114 |
+
that You distribute, all copyright, patent, trademark, and
|
| 115 |
+
attribution notices from the Source form of the Work,
|
| 116 |
+
excluding those notices that do not pertain to any part of
|
| 117 |
+
the Derivative Works; and
|
| 118 |
+
|
| 119 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 120 |
+
distribution, then any Derivative Works that You distribute must
|
| 121 |
+
include a readable copy of the attribution notices contained
|
| 122 |
+
within such NOTICE file, excluding those notices that do not
|
| 123 |
+
pertain to any part of the Derivative Works, in at least one
|
| 124 |
+
of the following places: within a NOTICE text file distributed
|
| 125 |
+
as part of the Derivative Works; within the Source form or
|
| 126 |
+
documentation, if provided along with the Derivative Works; or,
|
| 127 |
+
within a display generated by the Derivative Works, if and
|
| 128 |
+
wherever such third-party notices normally appear. The contents
|
| 129 |
+
of the NOTICE file are for informational purposes only and
|
| 130 |
+
do not modify the License. You may add Your own attribution
|
| 131 |
+
notices within Derivative Works that You distribute, alongside
|
| 132 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 133 |
+
that such additional attribution notices cannot be construed
|
| 134 |
+
as modifying the License.
|
| 135 |
+
|
| 136 |
+
You may add Your own copyright statement to Your modifications and
|
| 137 |
+
may provide additional or different license terms and conditions
|
| 138 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 139 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 140 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 141 |
+
the conditions stated in this License.
|
| 142 |
+
|
| 143 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 144 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 145 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 146 |
+
this License, without any additional terms or conditions.
|
| 147 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 148 |
+
the terms of any separate license agreement you may have executed
|
| 149 |
+
with Licensor regarding such Contributions.
|
| 150 |
+
|
| 151 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 152 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 153 |
+
except as required for reasonable and customary use in describing the
|
| 154 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 155 |
+
|
| 156 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 157 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 158 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 159 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 160 |
+
implied, including, without limitation, any warranties or conditions
|
| 161 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 162 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 163 |
+
appropriateness of using or redistributing the Work and assume any
|
| 164 |
+
risks associated with Your exercise of permissions under this License.
|
| 165 |
+
|
| 166 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 167 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 168 |
+
unless required by applicable law (such as deliberate and grossly
|
| 169 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 170 |
+
liable to You for damages, including any direct, indirect, special,
|
| 171 |
+
incidental, or consequential damages of any character arising as a
|
| 172 |
+
result of this License or out of the use or inability to use the
|
| 173 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 174 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 175 |
+
other commercial damages or losses), even if such Contributor
|
| 176 |
+
has been advised of the possibility of such damages.
|
| 177 |
+
|
| 178 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 179 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 180 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 181 |
+
or other liability obligations and/or rights consistent with this
|
| 182 |
+
License. However, in accepting such obligations, You may act only
|
| 183 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 184 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 185 |
+
defend, and hold each Contributor harmless for any liability
|
| 186 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 187 |
+
of your accepting any such warranty or additional liability.
|
| 188 |
+
|
| 189 |
+
END OF TERMS AND CONDITIONS
|
| 190 |
+
|
| 191 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 192 |
+
|
| 193 |
+
To apply the Apache License to your work, attach the following
|
| 194 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 195 |
+
replaced with your own identifying information. (Don't include
|
| 196 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 197 |
+
comment syntax for the file format. We also recommend that a
|
| 198 |
+
file or class name and description of purpose be included on the
|
| 199 |
+
same "printed page" as the copyright notice for easier
|
| 200 |
+
identification within third-party archives.
|
| 201 |
+
|
| 202 |
+
Copyright [yyyy] [name of copyright owner]
|
| 203 |
+
|
| 204 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 205 |
+
you may not use this file except in compliance with the License.
|
| 206 |
+
You may obtain a copy of the License at
|
| 207 |
+
|
| 208 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 209 |
+
|
| 210 |
+
Unless required by applicable law or agreed to in writing, software
|
| 211 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 212 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 213 |
+
See the License for the specific language governing permissions and
|
| 214 |
+
limitations under the License.
|
| 215 |
+
|
| 216 |
+
--------------------------------------------------------------------------------
|
| 217 |
+
BSD 3-Clause License
|
| 218 |
+
--------------------------------------------------------------------------------
|
| 219 |
+
|
| 220 |
+
Copyright (c) The Highway Project Authors. All rights reserved.
|
| 221 |
+
|
| 222 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 223 |
+
are permitted provided that the following conditions are met:
|
| 224 |
+
|
| 225 |
+
1. Redistributions of source code must retain the above copyright notice, this
|
| 226 |
+
list of conditions and the following disclaimer.
|
| 227 |
+
|
| 228 |
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
| 229 |
+
this list of conditions and the following disclaimer in the documentation
|
| 230 |
+
and/or other materials provided with the distribution.
|
| 231 |
+
|
| 232 |
+
3. Neither the name of the copyright holder nor the names of its
|
| 233 |
+
contributors may be used to endorse or promote products derived from
|
| 234 |
+
this software without specific prior written permission.
|
| 235 |
+
|
| 236 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 237 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 238 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 239 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
| 240 |
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 241 |
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 242 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
| 243 |
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
| 244 |
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 245 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 246 |
+
|
| 247 |
+
--------------------------------------------------------------------------------
|
| 248 |
+
CC0 1.0 Universal
|
| 249 |
+
--------------------------------------------------------------------------------
|
| 250 |
+
|
| 251 |
+
Creative Commons Legal Code
|
| 252 |
+
|
| 253 |
+
CC0 1.0 Universal
|
| 254 |
+
|
| 255 |
+
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
| 256 |
+
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
| 257 |
+
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
| 258 |
+
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
| 259 |
+
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
| 260 |
+
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
| 261 |
+
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
| 262 |
+
HEREUNDER.
|
| 263 |
+
|
| 264 |
+
Statement of Purpose
|
| 265 |
+
|
| 266 |
+
The laws of most jurisdictions throughout the world automatically confer
|
| 267 |
+
exclusive Copyright and Related Rights (defined below) upon the creator
|
| 268 |
+
and subsequent owner(s) (each and all, an "owner") of an original work of
|
| 269 |
+
authorship and/or a database (each, a "Work").
|
| 270 |
+
|
| 271 |
+
Certain owners wish to permanently relinquish those rights to a Work for
|
| 272 |
+
the purpose of contributing to a commons of creative, cultural and
|
| 273 |
+
scientific works ("Commons") that the public can reliably and without fear
|
| 274 |
+
of later claims of infringement build upon, modify, incorporate in other
|
| 275 |
+
works, reuse and redistribute as freely as possible in any form whatsoever
|
| 276 |
+
and for any purposes, including without limitation commercial purposes.
|
| 277 |
+
These owners may contribute to the Commons to promote the ideal of a free
|
| 278 |
+
culture and the further production of creative, cultural and scientific
|
| 279 |
+
works, or to gain reputation or greater distribution for their Work in
|
| 280 |
+
part through the use and efforts of others.
|
| 281 |
+
|
| 282 |
+
For these and/or other purposes and motivations, and without any
|
| 283 |
+
expectation of additional consideration or compensation, the person
|
| 284 |
+
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
| 285 |
+
is an owner of Copyright and Related Rights in the Work, voluntarily
|
| 286 |
+
elects to apply CC0 to the Work and publicly distribute the Work under its
|
| 287 |
+
terms, with knowledge of his or her Copyright and Related Rights in the
|
| 288 |
+
Work and the meaning and intended legal effect of CC0 on those rights.
|
| 289 |
+
|
| 290 |
+
1. Copyright and Related Rights. A Work made available under CC0 may be
|
| 291 |
+
protected by copyright and related or neighboring rights ("Copyright and
|
| 292 |
+
Related Rights"). Copyright and Related Rights include, but are not
|
| 293 |
+
limited to, the following:
|
| 294 |
+
|
| 295 |
+
i. the right to reproduce, adapt, distribute, perform, display,
|
| 296 |
+
communicate, and translate a Work;
|
| 297 |
+
ii. moral rights retained by the original author(s) and/or performer(s);
|
| 298 |
+
iii. publicity and privacy rights pertaining to a person's image or
|
| 299 |
+
likeness depicted in a Work;
|
| 300 |
+
iv. rights protecting against unfair competition in regards to a Work,
|
| 301 |
+
subject to the limitations in paragraph 4(a), below;
|
| 302 |
+
v. rights protecting the extraction, dissemination, use and reuse of data
|
| 303 |
+
in a Work;
|
| 304 |
+
vi. database rights (such as those arising under Directive 96/9/EC of the
|
| 305 |
+
European Parliament and of the Council of 11 March 1996 on the legal
|
| 306 |
+
protection of databases, and under any national implementation
|
| 307 |
+
thereof, including any amended or successor version of such
|
| 308 |
+
directive); and
|
| 309 |
+
vii. other similar, equivalent or corresponding rights throughout the
|
| 310 |
+
world based on applicable law or treaty, and any national
|
| 311 |
+
implementations thereof.
|
| 312 |
+
|
| 313 |
+
2. Waiver. To the greatest extent permitted by, but not in contravention
|
| 314 |
+
of, applicable law, Affirmer hereby overtly, fully, permanently,
|
| 315 |
+
irrevocably and unconditionally waives, abandons, and surrenders all of
|
| 316 |
+
Affirmer's Copyright and Related Rights and associated claims and causes
|
| 317 |
+
of action, whether now known or unknown (including existing as well as
|
| 318 |
+
future claims and causes of action), in the Work (i) in all territories
|
| 319 |
+
worldwide, (ii) for the maximum duration provided by applicable law or
|
| 320 |
+
treaty (including future time extensions), (iii) in any current or future
|
| 321 |
+
medium and for any number of copies, and (iv) for any purpose whatsoever,
|
| 322 |
+
including without limitation commercial, advertising or promotional
|
| 323 |
+
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
| 324 |
+
member of the public at large and to the detriment of Affirmer's heirs and
|
| 325 |
+
successors, fully intending that such Waiver shall not be subject to
|
| 326 |
+
revocation, rescission, cancellation, termination, or any other legal or
|
| 327 |
+
equitable action to disrupt the quiet enjoyment of the Work by the public
|
| 328 |
+
as contemplated by Affirmer's express Statement of Purpose.
|
| 329 |
+
|
| 330 |
+
3. Public License Fallback. Should any part of the Waiver for any reason
|
| 331 |
+
be judged legally invalid or ineffective under applicable law, then the
|
| 332 |
+
Waiver shall be preserved to the maximum extent permitted taking into
|
| 333 |
+
account Affirmer's express Statement of Purpose. In addition, to the
|
| 334 |
+
extent the Waiver is so judged Affirmer hereby grants to each affected
|
| 335 |
+
person a royalty-free, non transferable, non sublicensable, non exclusive,
|
| 336 |
+
irrevocable and unconditional license to exercise Affirmer's Copyright and
|
| 337 |
+
Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
| 338 |
+
maximum duration provided by applicable law or treaty (including future
|
| 339 |
+
time extensions), (iii) in any current or future medium and for any number
|
| 340 |
+
of copies, and (iv) for any purpose whatsoever, including without
|
| 341 |
+
limitation commercial, advertising or promotional purposes (the
|
| 342 |
+
"License"). The License shall be deemed effective as of the date CC0 was
|
| 343 |
+
applied by Affirmer to the Work. Should any part of the License for any
|
| 344 |
+
reason be judged legally invalid or ineffective under applicable law, such
|
| 345 |
+
partial invalidity or ineffectiveness shall not invalidate the remainder
|
| 346 |
+
of the License, and in such case Affirmer hereby affirms that he or she
|
| 347 |
+
will not (i) exercise any of his or her remaining Copyright and Related
|
| 348 |
+
Rights in the Work or (ii) assert any associated claims and causes of
|
| 349 |
+
action with respect to the Work, in either case contrary to Affirmer's
|
| 350 |
+
express Statement of Purpose.
|
| 351 |
+
|
| 352 |
+
4. Limitations and Disclaimers.
|
| 353 |
+
|
| 354 |
+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
| 355 |
+
surrendered, licensed or otherwise affected by this document.
|
| 356 |
+
b. Affirmer offers the Work as-is and makes no representations or
|
| 357 |
+
warranties of any kind concerning the Work, express, implied,
|
| 358 |
+
statutory or otherwise, including without limitation warranties of
|
| 359 |
+
title, merchantability, fitness for a particular purpose, non
|
| 360 |
+
infringement, or the absence of latent or other defects, accuracy, or
|
| 361 |
+
the present or absence of errors, whether or not discoverable, all to
|
| 362 |
+
the greatest extent permissible under applicable law.
|
| 363 |
+
c. Affirmer disclaims responsibility for clearing rights of other persons
|
| 364 |
+
that may apply to the Work or any use thereof, including without
|
| 365 |
+
limitation any person's Copyright and Related Rights in the Work.
|
| 366 |
+
Further, Affirmer disclaims responsibility for obtaining any necessary
|
| 367 |
+
consents, permissions or other rights required for any use of the
|
| 368 |
+
Work.
|
| 369 |
+
d. Affirmer understands and acknowledges that Creative Commons is not a
|
| 370 |
+
party to this document and has no duty or obligation with respect to
|
| 371 |
+
this CC0 or use of the Work.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/_core/src/multiarray/dragon4_LICENSE.txt
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2014 Ryan Juckett
|
| 2 |
+
|
| 3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 4 |
+
of this software and associated documentation files (the "Software"), to
|
| 5 |
+
deal in the Software without restriction, including without limitation the
|
| 6 |
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
| 7 |
+
sell copies of the Software, and to permit persons to whom the Software is
|
| 8 |
+
furnished to do so, subject to the following conditions:
|
| 9 |
+
|
| 10 |
+
The above copyright notice and this permission notice shall be included in
|
| 11 |
+
all copies or substantial portions of the Software.
|
| 12 |
+
|
| 13 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 14 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 15 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 16 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 17 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| 18 |
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
| 19 |
+
IN THE SOFTWARE.
|
| 20 |
+
|
| 21 |
+
dragon4.c|h h contains a modified version of Ryan Juckett's Dragon4
|
| 22 |
+
implementation, obtained from https://www.ryanjuckett.com,
|
| 23 |
+
which has been ported from C++ to C and which has
|
| 24 |
+
modifications specific to printing floats in numpy.
|
| 25 |
+
|
| 26 |
+
Ryan Juckett's original code was under the Zlib license; he gave numpy
|
| 27 |
+
permission to include it under the MIT license instead.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/_core/src/npysort/x86-simd-sort/LICENSE.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
BSD 3-Clause License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2022, Intel. All rights reserved.
|
| 4 |
+
|
| 5 |
+
Redistribution and use in source and binary forms, with or without
|
| 6 |
+
modification, are permitted provided that the following conditions are met:
|
| 7 |
+
|
| 8 |
+
1. Redistributions of source code must retain the above copyright notice, this
|
| 9 |
+
list of conditions and the following disclaimer.
|
| 10 |
+
|
| 11 |
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
|
| 15 |
+
3. Neither the name of the copyright holder nor the names of its
|
| 16 |
+
contributors may be used to endorse or promote products derived from
|
| 17 |
+
this software without specific prior written permission.
|
| 18 |
+
|
| 19 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 20 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 21 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 22 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
| 23 |
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 24 |
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 25 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
| 26 |
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
| 27 |
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 28 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/_core/src/umath/svml/LICENSE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2005-2021, NumPy Developers.
|
| 2 |
+
All rights reserved.
|
| 3 |
+
|
| 4 |
+
Redistribution and use in source and binary forms, with or without
|
| 5 |
+
modification, are permitted provided that the following conditions are
|
| 6 |
+
met:
|
| 7 |
+
|
| 8 |
+
* Redistributions of source code must retain the above copyright
|
| 9 |
+
notice, this list of conditions and the following disclaimer.
|
| 10 |
+
|
| 11 |
+
* Redistributions in binary form must reproduce the above
|
| 12 |
+
copyright notice, this list of conditions and the following
|
| 13 |
+
disclaimer in the documentation and/or other materials provided
|
| 14 |
+
with the distribution.
|
| 15 |
+
|
| 16 |
+
* Neither the name of the NumPy Developers nor the names of any
|
| 17 |
+
contributors may be used to endorse or promote products derived
|
| 18 |
+
from this software without specific prior written permission.
|
| 19 |
+
|
| 20 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 21 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 22 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 23 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 24 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 25 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 26 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 27 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 28 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 29 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 30 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/fft/pocketfft/LICENSE.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (C) 2010-2018 Max-Planck-Society
|
| 2 |
+
All rights reserved.
|
| 3 |
+
|
| 4 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 5 |
+
are permitted provided that the following conditions are met:
|
| 6 |
+
|
| 7 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 8 |
+
list of conditions and the following disclaimer.
|
| 9 |
+
* Redistributions in binary form must reproduce the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer in the documentation and/or
|
| 11 |
+
other materials provided with the distribution.
|
| 12 |
+
* Neither the name of the copyright holder nor the names of its contributors may
|
| 13 |
+
be used to endorse or promote products derived from this software without
|
| 14 |
+
specific prior written permission.
|
| 15 |
+
|
| 16 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 17 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 18 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 19 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
| 20 |
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
| 21 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
| 22 |
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
| 23 |
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 24 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| 25 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/linalg/lapack_lite/LICENSE.txt
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 1992-2013 The University of Tennessee and The University
|
| 2 |
+
of Tennessee Research Foundation. All rights
|
| 3 |
+
reserved.
|
| 4 |
+
Copyright (c) 2000-2013 The University of California Berkeley. All
|
| 5 |
+
rights reserved.
|
| 6 |
+
Copyright (c) 2006-2013 The University of Colorado Denver. All rights
|
| 7 |
+
reserved.
|
| 8 |
+
|
| 9 |
+
$COPYRIGHT$
|
| 10 |
+
|
| 11 |
+
Additional copyrights may follow
|
| 12 |
+
|
| 13 |
+
$HEADER$
|
| 14 |
+
|
| 15 |
+
Redistribution and use in source and binary forms, with or without
|
| 16 |
+
modification, are permitted provided that the following conditions are
|
| 17 |
+
met:
|
| 18 |
+
|
| 19 |
+
- Redistributions of source code must retain the above copyright
|
| 20 |
+
notice, this list of conditions and the following disclaimer.
|
| 21 |
+
|
| 22 |
+
- Redistributions in binary form must reproduce the above copyright
|
| 23 |
+
notice, this list of conditions and the following disclaimer listed
|
| 24 |
+
in this license in the documentation and/or other materials
|
| 25 |
+
provided with the distribution.
|
| 26 |
+
|
| 27 |
+
- Neither the name of the copyright holders nor the names of its
|
| 28 |
+
contributors may be used to endorse or promote products derived from
|
| 29 |
+
this software without specific prior written permission.
|
| 30 |
+
|
| 31 |
+
The copyright holders provide no reassurances that the source code
|
| 32 |
+
provided does not infringe any patent, copyright, or any other
|
| 33 |
+
intellectual property rights of third parties. The copyright holders
|
| 34 |
+
disclaim any liability to any recipient for claims brought against
|
| 35 |
+
recipient by any third party for infringement of that parties
|
| 36 |
+
intellectual property rights.
|
| 37 |
+
|
| 38 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 39 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 40 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 41 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 42 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 43 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 44 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 45 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 46 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 47 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 48 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/ma/LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
* Copyright (c) 2006, University of Georgia and Pierre G.F. Gerard-Marchant
|
| 2 |
+
* All rights reserved.
|
| 3 |
+
* Redistribution and use in source and binary forms, with or without
|
| 4 |
+
* modification, are permitted provided that the following conditions are met:
|
| 5 |
+
*
|
| 6 |
+
* * Redistributions of source code must retain the above copyright
|
| 7 |
+
* notice, this list of conditions and the following disclaimer.
|
| 8 |
+
* * Redistributions in binary form must reproduce the above copyright
|
| 9 |
+
* notice, this list of conditions and the following disclaimer in the
|
| 10 |
+
* documentation and/or other materials provided with the distribution.
|
| 11 |
+
* * Neither the name of the University of Georgia nor the
|
| 12 |
+
* names of its contributors may be used to endorse or promote products
|
| 13 |
+
* derived from this software without specific prior written permission.
|
| 14 |
+
*
|
| 15 |
+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
|
| 16 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 17 |
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 18 |
+
* DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
|
| 19 |
+
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
| 20 |
+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
| 21 |
+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
| 22 |
+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 23 |
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| 24 |
+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/LICENSE.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
**This software is dual-licensed under the The University of Illinois/NCSA
|
| 2 |
+
Open Source License (NCSA) and The 3-Clause BSD License**
|
| 3 |
+
|
| 4 |
+
# NCSA Open Source License
|
| 5 |
+
**Copyright (c) 2019 Kevin Sheppard. All rights reserved.**
|
| 6 |
+
|
| 7 |
+
Developed by: Kevin Sheppard (<kevin.sheppard@economics.ox.ac.uk>,
|
| 8 |
+
<kevin.k.sheppard@gmail.com>)
|
| 9 |
+
[http://www.kevinsheppard.com](http://www.kevinsheppard.com)
|
| 10 |
+
|
| 11 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
| 12 |
+
this software and associated documentation files (the "Software"), to deal with
|
| 13 |
+
the Software without restriction, including without limitation the rights to
|
| 14 |
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
| 15 |
+
of the Software, and to permit persons to whom the Software is furnished to do
|
| 16 |
+
so, subject to the following conditions:
|
| 17 |
+
|
| 18 |
+
Redistributions of source code must retain the above copyright notice, this
|
| 19 |
+
list of conditions and the following disclaimers.
|
| 20 |
+
|
| 21 |
+
Redistributions in binary form must reproduce the above copyright notice, this
|
| 22 |
+
list of conditions and the following disclaimers in the documentation and/or
|
| 23 |
+
other materials provided with the distribution.
|
| 24 |
+
|
| 25 |
+
Neither the names of Kevin Sheppard, nor the names of any contributors may be
|
| 26 |
+
used to endorse or promote products derived from this Software without specific
|
| 27 |
+
prior written permission.
|
| 28 |
+
|
| 29 |
+
**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 30 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 31 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 32 |
+
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 33 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 34 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH
|
| 35 |
+
THE SOFTWARE.**
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
# 3-Clause BSD License
|
| 39 |
+
**Copyright (c) 2019 Kevin Sheppard. All rights reserved.**
|
| 40 |
+
|
| 41 |
+
Redistribution and use in source and binary forms, with or without
|
| 42 |
+
modification, are permitted provided that the following conditions are met:
|
| 43 |
+
|
| 44 |
+
1. Redistributions of source code must retain the above copyright notice,
|
| 45 |
+
this list of conditions and the following disclaimer.
|
| 46 |
+
|
| 47 |
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
| 48 |
+
this list of conditions and the following disclaimer in the documentation
|
| 49 |
+
and/or other materials provided with the distribution.
|
| 50 |
+
|
| 51 |
+
3. Neither the name of the copyright holder nor the names of its contributors
|
| 52 |
+
may be used to endorse or promote products derived from this software
|
| 53 |
+
without specific prior written permission.
|
| 54 |
+
|
| 55 |
+
**THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 56 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 57 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
| 58 |
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
| 59 |
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
| 60 |
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
| 61 |
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
| 62 |
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
| 63 |
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 64 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
| 65 |
+
THE POSSIBILITY OF SUCH DAMAGE.**
|
| 66 |
+
|
| 67 |
+
# Components
|
| 68 |
+
|
| 69 |
+
Many parts of this module have been derived from original sources,
|
| 70 |
+
often the algorithm's designer. Component licenses are located with
|
| 71 |
+
the component code.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/src/distributions/LICENSE.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## NumPy
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2005-2017, NumPy Developers.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without
|
| 7 |
+
modification, are permitted provided that the following conditions are
|
| 8 |
+
met:
|
| 9 |
+
|
| 10 |
+
* Redistributions of source code must retain the above copyright
|
| 11 |
+
notice, this list of conditions and the following disclaimer.
|
| 12 |
+
|
| 13 |
+
* Redistributions in binary form must reproduce the above
|
| 14 |
+
copyright notice, this list of conditions and the following
|
| 15 |
+
disclaimer in the documentation and/or other materials provided
|
| 16 |
+
with the distribution.
|
| 17 |
+
|
| 18 |
+
* Neither the name of the NumPy Developers nor the names of any
|
| 19 |
+
contributors may be used to endorse or promote products derived
|
| 20 |
+
from this software without specific prior written permission.
|
| 21 |
+
|
| 22 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 23 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 24 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 25 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 26 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 27 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 28 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 29 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 30 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 31 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 32 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
## Julia
|
| 36 |
+
|
| 37 |
+
The ziggurat methods were derived from Julia.
|
| 38 |
+
|
| 39 |
+
Copyright (c) 2009-2019: Jeff Bezanson, Stefan Karpinski, Viral B. Shah,
|
| 40 |
+
and other contributors:
|
| 41 |
+
|
| 42 |
+
https://github.com/JuliaLang/julia/contributors
|
| 43 |
+
|
| 44 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 45 |
+
a copy of this software and associated documentation files (the
|
| 46 |
+
"Software"), to deal in the Software without restriction, including
|
| 47 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 48 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 49 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 50 |
+
the following conditions:
|
| 51 |
+
|
| 52 |
+
The above copyright notice and this permission notice shall be
|
| 53 |
+
included in all copies or substantial portions of the Software.
|
| 54 |
+
|
| 55 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 56 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 57 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 58 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 59 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 60 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 61 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/src/mt19937/LICENSE.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MT19937
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2003-2005, Jean-Sebastien Roy (js@jeannot.org)
|
| 4 |
+
|
| 5 |
+
The rk_random and rk_seed functions algorithms and the original design of
|
| 6 |
+
the Mersenne Twister RNG:
|
| 7 |
+
|
| 8 |
+
Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
|
| 9 |
+
All rights reserved.
|
| 10 |
+
|
| 11 |
+
Redistribution and use in source and binary forms, with or without
|
| 12 |
+
modification, are permitted provided that the following conditions
|
| 13 |
+
are met:
|
| 14 |
+
|
| 15 |
+
1. Redistributions of source code must retain the above copyright
|
| 16 |
+
notice, this list of conditions and the following disclaimer.
|
| 17 |
+
|
| 18 |
+
2. Redistributions in binary form must reproduce the above copyright
|
| 19 |
+
notice, this list of conditions and the following disclaimer in the
|
| 20 |
+
documentation and/or other materials provided with the distribution.
|
| 21 |
+
|
| 22 |
+
3. The names of its contributors may not be used to endorse or promote
|
| 23 |
+
products derived from this software without specific prior written
|
| 24 |
+
permission.
|
| 25 |
+
|
| 26 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 27 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 28 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 29 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
|
| 30 |
+
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
| 31 |
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
| 32 |
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 33 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
| 34 |
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
| 35 |
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| 36 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 37 |
+
|
| 38 |
+
Original algorithm for the implementation of rk_interval function from
|
| 39 |
+
Richard J. Wagner's implementation of the Mersenne Twister RNG, optimised by
|
| 40 |
+
Magnus Jonsson.
|
| 41 |
+
|
| 42 |
+
Constants used in the rk_double implementation by Isaku Wada.
|
| 43 |
+
|
| 44 |
+
Permission is hereby granted, free of charge, to any person obtaining a
|
| 45 |
+
copy of this software and associated documentation files (the
|
| 46 |
+
"Software"), to deal in the Software without restriction, including
|
| 47 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 48 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 49 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 50 |
+
the following conditions:
|
| 51 |
+
|
| 52 |
+
The above copyright notice and this permission notice shall be included
|
| 53 |
+
in all copies or substantial portions of the Software.
|
| 54 |
+
|
| 55 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 56 |
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 57 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
| 58 |
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 59 |
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
| 60 |
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
| 61 |
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/src/pcg64/LICENSE.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PCG64
|
| 2 |
+
|
| 3 |
+
## The MIT License
|
| 4 |
+
|
| 5 |
+
PCG Random Number Generation for C.
|
| 6 |
+
|
| 7 |
+
Copyright 2014 Melissa O'Neill <oneill@pcg-random.org>
|
| 8 |
+
|
| 9 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 10 |
+
a copy of this software and associated documentation files (the "Software"),
|
| 11 |
+
to deal in the Software without restriction, including without limitation
|
| 12 |
+
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 13 |
+
|
| 14 |
+
The above copyright notice and this permission notice shall be included in
|
| 15 |
+
all copies or substantial portions of the Software.
|
| 16 |
+
|
| 17 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 18 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
| 19 |
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
| 20 |
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
| 21 |
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 22 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/src/philox/LICENSE.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PHILOX
|
| 2 |
+
|
| 3 |
+
Copyright 2010-2012, D. E. Shaw Research.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without
|
| 7 |
+
modification, are permitted provided that the following conditions are
|
| 8 |
+
met:
|
| 9 |
+
|
| 10 |
+
* Redistributions of source code must retain the above copyright
|
| 11 |
+
notice, this list of conditions, and the following disclaimer.
|
| 12 |
+
|
| 13 |
+
* Redistributions in binary form must reproduce the above copyright
|
| 14 |
+
notice, this list of conditions, and the following disclaimer in the
|
| 15 |
+
documentation and/or other materials provided with the distribution.
|
| 16 |
+
|
| 17 |
+
* Neither the name of D. E. Shaw Research nor the names of its
|
| 18 |
+
contributors may be used to endorse or promote products derived from
|
| 19 |
+
this software without specific prior written permission.
|
| 20 |
+
|
| 21 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 22 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 23 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 24 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 25 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 26 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 27 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 28 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 29 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 30 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 31 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/src/sfc64/LICENSE.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SFC64
|
| 2 |
+
|
| 3 |
+
## The MIT License
|
| 4 |
+
|
| 5 |
+
Adapted from a C++ implementation of Chris Doty-Humphrey's SFC PRNG.
|
| 6 |
+
|
| 7 |
+
https://gist.github.com/imneme/f1f7821f07cf76504a97f6537c818083
|
| 8 |
+
|
| 9 |
+
Copyright (c) 2018 Melissa E. O'Neill
|
| 10 |
+
|
| 11 |
+
Permission is hereby granted, free of charge, to any person obtaining a
|
| 12 |
+
copy of this software and associated documentation files (the "Software"),
|
| 13 |
+
to deal in the Software without restriction, including without limitation
|
| 14 |
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
| 15 |
+
and/or sell copies of the Software, and to permit persons to whom the
|
| 16 |
+
Software is furnished to do so, subject to the following conditions:
|
| 17 |
+
|
| 18 |
+
The above copyright notice and this permission notice shall be included in
|
| 19 |
+
all copies or substantial portions of the Software.
|
| 20 |
+
|
| 21 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 22 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 23 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 24 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 25 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| 26 |
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
| 27 |
+
DEALINGS IN THE SOFTWARE.
|
python/user_packages/Python313/site-packages/numpy-2.4.4.dist-info/licenses/numpy/random/src/splitmix64/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPLITMIX64
|
| 2 |
+
|
| 3 |
+
Written in 2015 by Sebastiano Vigna (vigna@acm.org)
|
| 4 |
+
|
| 5 |
+
To the extent possible under law, the author has dedicated all copyright
|
| 6 |
+
and related and neighboring rights to this software to the public domain
|
| 7 |
+
worldwide. This software is distributed without any warranty.
|
| 8 |
+
|
| 9 |
+
See <http://creativecommons.org/publicdomain/zero/1.0/>.
|
python/user_packages/Python313/site-packages/numpy/char/__init__.py
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from numpy._core.defchararray import *
|
| 2 |
+
from numpy._core.defchararray import __all__, __doc__
|
python/user_packages/Python313/site-packages/numpy/char/__init__.pyi
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from numpy._core.defchararray import (
|
| 2 |
+
add,
|
| 3 |
+
array,
|
| 4 |
+
asarray,
|
| 5 |
+
capitalize,
|
| 6 |
+
center,
|
| 7 |
+
chararray,
|
| 8 |
+
compare_chararrays,
|
| 9 |
+
count,
|
| 10 |
+
decode,
|
| 11 |
+
encode,
|
| 12 |
+
endswith,
|
| 13 |
+
equal,
|
| 14 |
+
expandtabs,
|
| 15 |
+
find,
|
| 16 |
+
greater,
|
| 17 |
+
greater_equal,
|
| 18 |
+
index,
|
| 19 |
+
isalnum,
|
| 20 |
+
isalpha,
|
| 21 |
+
isdecimal,
|
| 22 |
+
isdigit,
|
| 23 |
+
islower,
|
| 24 |
+
isnumeric,
|
| 25 |
+
isspace,
|
| 26 |
+
istitle,
|
| 27 |
+
isupper,
|
| 28 |
+
join,
|
| 29 |
+
less,
|
| 30 |
+
less_equal,
|
| 31 |
+
ljust,
|
| 32 |
+
lower,
|
| 33 |
+
lstrip,
|
| 34 |
+
mod,
|
| 35 |
+
multiply,
|
| 36 |
+
not_equal,
|
| 37 |
+
partition,
|
| 38 |
+
replace,
|
| 39 |
+
rfind,
|
| 40 |
+
rindex,
|
| 41 |
+
rjust,
|
| 42 |
+
rpartition,
|
| 43 |
+
rsplit,
|
| 44 |
+
rstrip,
|
| 45 |
+
split,
|
| 46 |
+
splitlines,
|
| 47 |
+
startswith,
|
| 48 |
+
str_len,
|
| 49 |
+
strip,
|
| 50 |
+
swapcase,
|
| 51 |
+
title,
|
| 52 |
+
translate,
|
| 53 |
+
upper,
|
| 54 |
+
zfill,
|
| 55 |
+
)
|
| 56 |
+
|
| 57 |
+
__all__ = [
|
| 58 |
+
"equal",
|
| 59 |
+
"not_equal",
|
| 60 |
+
"greater_equal",
|
| 61 |
+
"less_equal",
|
| 62 |
+
"greater",
|
| 63 |
+
"less",
|
| 64 |
+
"str_len",
|
| 65 |
+
"add",
|
| 66 |
+
"multiply",
|
| 67 |
+
"mod",
|
| 68 |
+
"capitalize",
|
| 69 |
+
"center",
|
| 70 |
+
"count",
|
| 71 |
+
"decode",
|
| 72 |
+
"encode",
|
| 73 |
+
"endswith",
|
| 74 |
+
"expandtabs",
|
| 75 |
+
"find",
|
| 76 |
+
"index",
|
| 77 |
+
"isalnum",
|
| 78 |
+
"isalpha",
|
| 79 |
+
"isdigit",
|
| 80 |
+
"islower",
|
| 81 |
+
"isspace",
|
| 82 |
+
"istitle",
|
| 83 |
+
"isupper",
|
| 84 |
+
"join",
|
| 85 |
+
"ljust",
|
| 86 |
+
"lower",
|
| 87 |
+
"lstrip",
|
| 88 |
+
"partition",
|
| 89 |
+
"replace",
|
| 90 |
+
"rfind",
|
| 91 |
+
"rindex",
|
| 92 |
+
"rjust",
|
| 93 |
+
"rpartition",
|
| 94 |
+
"rsplit",
|
| 95 |
+
"rstrip",
|
| 96 |
+
"split",
|
| 97 |
+
"splitlines",
|
| 98 |
+
"startswith",
|
| 99 |
+
"strip",
|
| 100 |
+
"swapcase",
|
| 101 |
+
"title",
|
| 102 |
+
"translate",
|
| 103 |
+
"upper",
|
| 104 |
+
"zfill",
|
| 105 |
+
"isnumeric",
|
| 106 |
+
"isdecimal",
|
| 107 |
+
"array",
|
| 108 |
+
"asarray",
|
| 109 |
+
"compare_chararrays",
|
| 110 |
+
"chararray",
|
| 111 |
+
]
|
python/user_packages/Python313/site-packages/numpy/core/__init__.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
The `numpy.core` submodule exists solely for backward compatibility
|
| 3 |
+
purposes. The original `core` was renamed to `_core` and made private.
|
| 4 |
+
`numpy.core` will be removed in the future.
|
| 5 |
+
"""
|
| 6 |
+
from numpy import _core
|
| 7 |
+
|
| 8 |
+
from ._utils import _raise_warning
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
# We used to use `np.core._ufunc_reconstruct` to unpickle.
|
| 12 |
+
# This is unnecessary, but old pickles saved before 1.20 will be using it,
|
| 13 |
+
# and there is no reason to break loading them.
|
| 14 |
+
def _ufunc_reconstruct(module, name):
|
| 15 |
+
# The `fromlist` kwarg is required to ensure that `mod` points to the
|
| 16 |
+
# inner-most module rather than the parent package when module name is
|
| 17 |
+
# nested. This makes it possible to pickle non-toplevel ufuncs such as
|
| 18 |
+
# scipy.special.expit for instance.
|
| 19 |
+
mod = __import__(module, fromlist=[name])
|
| 20 |
+
return getattr(mod, name)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
# force lazy-loading of submodules to ensure a warning is printed
|
| 24 |
+
|
| 25 |
+
__all__ = ["arrayprint", "defchararray", "_dtype_ctypes", "_dtype", # noqa: F822
|
| 26 |
+
"einsumfunc", "fromnumeric", "function_base", "getlimits",
|
| 27 |
+
"_internal", "multiarray", "_multiarray_umath", "numeric",
|
| 28 |
+
"numerictypes", "overrides", "records", "shape_base", "umath"]
|
| 29 |
+
|
| 30 |
+
def __getattr__(attr_name):
|
| 31 |
+
attr = getattr(_core, attr_name)
|
| 32 |
+
_raise_warning(attr_name)
|
| 33 |
+
return attr
|
python/user_packages/Python313/site-packages/numpy/core/__init__.pyi
ADDED
|
File without changes
|
python/user_packages/Python313/site-packages/numpy/core/_dtype.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import _dtype
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(_dtype, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core._dtype' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "_dtype")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/_dtype.pyi
ADDED
|
File without changes
|
python/user_packages/Python313/site-packages/numpy/core/_dtype_ctypes.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import _dtype_ctypes
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(_dtype_ctypes, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core._dtype_ctypes' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "_dtype_ctypes")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/_dtype_ctypes.pyi
ADDED
|
File without changes
|
python/user_packages/Python313/site-packages/numpy/core/_internal.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from numpy._core import _internal
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
# Build a new array from the information in a pickle.
|
| 5 |
+
# Note that the name numpy.core._internal._reconstruct is embedded in
|
| 6 |
+
# pickles of ndarrays made with NumPy before release 1.0
|
| 7 |
+
# so don't remove the name here, or you'll
|
| 8 |
+
# break backward compatibility.
|
| 9 |
+
def _reconstruct(subtype, shape, dtype):
|
| 10 |
+
from numpy import ndarray
|
| 11 |
+
return ndarray.__new__(subtype, shape, dtype)
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
# Pybind11 (in versions <= 2.11.1) imports _dtype_from_pep3118 from the
|
| 15 |
+
# _internal submodule, therefore it must be importable without a warning.
|
| 16 |
+
_dtype_from_pep3118 = _internal._dtype_from_pep3118
|
| 17 |
+
|
| 18 |
+
def __getattr__(attr_name):
|
| 19 |
+
from numpy._core import _internal
|
| 20 |
+
|
| 21 |
+
from ._utils import _raise_warning
|
| 22 |
+
ret = getattr(_internal, attr_name, None)
|
| 23 |
+
if ret is None:
|
| 24 |
+
raise AttributeError(
|
| 25 |
+
f"module 'numpy.core._internal' has no attribute {attr_name}")
|
| 26 |
+
_raise_warning(attr_name, "_internal")
|
| 27 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/_multiarray_umath.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from numpy import ufunc
|
| 2 |
+
from numpy._core import _multiarray_umath
|
| 3 |
+
|
| 4 |
+
for item in _multiarray_umath.__dir__():
|
| 5 |
+
# ufuncs appear in pickles with a path in numpy.core._multiarray_umath
|
| 6 |
+
# and so must import from this namespace without warning or error
|
| 7 |
+
attr = getattr(_multiarray_umath, item)
|
| 8 |
+
if isinstance(attr, ufunc):
|
| 9 |
+
globals()[item] = attr
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def __getattr__(attr_name):
|
| 13 |
+
from numpy._core import _multiarray_umath
|
| 14 |
+
|
| 15 |
+
from ._utils import _raise_warning
|
| 16 |
+
|
| 17 |
+
if attr_name in {"_ARRAY_API", "_UFUNC_API"}:
|
| 18 |
+
import sys
|
| 19 |
+
import textwrap
|
| 20 |
+
import traceback
|
| 21 |
+
|
| 22 |
+
from numpy.version import short_version
|
| 23 |
+
|
| 24 |
+
msg = textwrap.dedent(f"""
|
| 25 |
+
A module that was compiled using NumPy 1.x cannot be run in
|
| 26 |
+
NumPy {short_version} as it may crash. To support both 1.x and 2.x
|
| 27 |
+
versions of NumPy, modules must be compiled with NumPy 2.0.
|
| 28 |
+
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
|
| 29 |
+
|
| 30 |
+
If you are a user of the module, the easiest solution will be to
|
| 31 |
+
downgrade to 'numpy<2' or try to upgrade the affected module.
|
| 32 |
+
We expect that some modules will need time to support NumPy 2.
|
| 33 |
+
|
| 34 |
+
""")
|
| 35 |
+
tb_msg = "Traceback (most recent call last):"
|
| 36 |
+
for line in traceback.format_stack()[:-1]:
|
| 37 |
+
if "frozen importlib" in line:
|
| 38 |
+
continue
|
| 39 |
+
tb_msg += line
|
| 40 |
+
|
| 41 |
+
# Also print the message (with traceback). This is because old versions
|
| 42 |
+
# of NumPy unfortunately set up the import to replace (and hide) the
|
| 43 |
+
# error. The traceback shouldn't be needed, but e.g. pytest plugins
|
| 44 |
+
# seem to swallow it and we should be failing anyway...
|
| 45 |
+
sys.stderr.write(msg + tb_msg)
|
| 46 |
+
raise ImportError(msg)
|
| 47 |
+
|
| 48 |
+
ret = getattr(_multiarray_umath, attr_name, None)
|
| 49 |
+
if ret is None:
|
| 50 |
+
raise AttributeError(
|
| 51 |
+
"module 'numpy.core._multiarray_umath' has no attribute "
|
| 52 |
+
f"{attr_name}")
|
| 53 |
+
_raise_warning(attr_name, "_multiarray_umath")
|
| 54 |
+
return ret
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
del _multiarray_umath, ufunc
|
python/user_packages/Python313/site-packages/numpy/core/_utils.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import warnings
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def _raise_warning(attr: str, submodule: str | None = None) -> None:
|
| 5 |
+
new_module = "numpy._core"
|
| 6 |
+
old_module = "numpy.core"
|
| 7 |
+
if submodule is not None:
|
| 8 |
+
new_module = f"{new_module}.{submodule}"
|
| 9 |
+
old_module = f"{old_module}.{submodule}"
|
| 10 |
+
warnings.warn(
|
| 11 |
+
f"{old_module} is deprecated and has been renamed to {new_module}. "
|
| 12 |
+
"The numpy._core namespace contains private NumPy internals and its "
|
| 13 |
+
"use is discouraged, as NumPy internals can change without warning in "
|
| 14 |
+
"any release. In practice, most real-world usage of numpy.core is to "
|
| 15 |
+
"access functionality in the public NumPy API. If that is the case, "
|
| 16 |
+
"use the public NumPy API. If not, you are using NumPy internals. "
|
| 17 |
+
"If you would still like to access an internal attribute, "
|
| 18 |
+
f"use {new_module}.{attr}.",
|
| 19 |
+
DeprecationWarning,
|
| 20 |
+
stacklevel=3
|
| 21 |
+
)
|
python/user_packages/Python313/site-packages/numpy/core/arrayprint.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import arrayprint
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(arrayprint, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core.arrayprint' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "arrayprint")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/defchararray.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import defchararray
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(defchararray, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core.defchararray' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "defchararray")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/einsumfunc.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import einsumfunc
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(einsumfunc, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core.einsumfunc' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "einsumfunc")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/fromnumeric.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import fromnumeric
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(fromnumeric, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core.fromnumeric' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "fromnumeric")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/function_base.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import function_base
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(function_base, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core.function_base' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "function_base")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/getlimits.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import getlimits
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(getlimits, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core.getlimits' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "getlimits")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/multiarray.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from numpy._core import multiarray
|
| 2 |
+
|
| 3 |
+
# these must import without warning or error from numpy.core.multiarray to
|
| 4 |
+
# support old pickle files
|
| 5 |
+
for item in ["_reconstruct", "scalar"]:
|
| 6 |
+
globals()[item] = getattr(multiarray, item)
|
| 7 |
+
|
| 8 |
+
# Pybind11 (in versions <= 2.11.1) imports _ARRAY_API from the multiarray
|
| 9 |
+
# submodule as a part of NumPy initialization, therefore it must be importable
|
| 10 |
+
# without a warning.
|
| 11 |
+
_ARRAY_API = multiarray._ARRAY_API
|
| 12 |
+
|
| 13 |
+
def __getattr__(attr_name):
|
| 14 |
+
from numpy._core import multiarray
|
| 15 |
+
|
| 16 |
+
from ._utils import _raise_warning
|
| 17 |
+
ret = getattr(multiarray, attr_name, None)
|
| 18 |
+
if ret is None:
|
| 19 |
+
raise AttributeError(
|
| 20 |
+
f"module 'numpy.core.multiarray' has no attribute {attr_name}")
|
| 21 |
+
_raise_warning(attr_name, "multiarray")
|
| 22 |
+
return ret
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
del multiarray
|
python/user_packages/Python313/site-packages/numpy/core/numeric.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import numeric
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
|
| 6 |
+
sentinel = object()
|
| 7 |
+
ret = getattr(numeric, attr_name, sentinel)
|
| 8 |
+
if ret is sentinel:
|
| 9 |
+
raise AttributeError(
|
| 10 |
+
f"module 'numpy.core.numeric' has no attribute {attr_name}")
|
| 11 |
+
_raise_warning(attr_name, "numeric")
|
| 12 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/numerictypes.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import numerictypes
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(numerictypes, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core.numerictypes' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "numerictypes")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/overrides.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import overrides
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(overrides, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core.overrides' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "overrides")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/overrides.pyi
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NOTE: At runtime, this submodule dynamically re-exports any `numpy._core.overrides`
|
| 2 |
+
# member, and issues a `DeprecationWarning` when accessed. But since there is no
|
| 3 |
+
# `__dir__` or `__all__` present, these annotations would be unverifiable. Because
|
| 4 |
+
# this module is also deprecated in favor of `numpy._core`, and therefore not part of
|
| 5 |
+
# the public API, we omit the "re-exports", which in practice would require literal
|
| 6 |
+
# duplication of the stubs in order for the `@deprecated` decorator to be understood
|
| 7 |
+
# by type-checkers.
|
python/user_packages/Python313/site-packages/numpy/core/records.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import records
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(records, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core.records' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "records")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/shape_base.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import shape_base
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(shape_base, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core.shape_base' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "shape_base")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/core/umath.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def __getattr__(attr_name):
|
| 2 |
+
from numpy._core import umath
|
| 3 |
+
|
| 4 |
+
from ._utils import _raise_warning
|
| 5 |
+
ret = getattr(umath, attr_name, None)
|
| 6 |
+
if ret is None:
|
| 7 |
+
raise AttributeError(
|
| 8 |
+
f"module 'numpy.core.umath' has no attribute {attr_name}")
|
| 9 |
+
_raise_warning(attr_name, "umath")
|
| 10 |
+
return ret
|
python/user_packages/Python313/site-packages/numpy/ctypeslib/__init__.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from ._ctypeslib import (
|
| 2 |
+
__all__,
|
| 3 |
+
__doc__,
|
| 4 |
+
_concrete_ndptr,
|
| 5 |
+
_ndptr,
|
| 6 |
+
as_array,
|
| 7 |
+
as_ctypes,
|
| 8 |
+
as_ctypes_type,
|
| 9 |
+
c_intp,
|
| 10 |
+
ctypes,
|
| 11 |
+
load_library,
|
| 12 |
+
ndpointer,
|
| 13 |
+
)
|
python/user_packages/Python313/site-packages/numpy/ctypeslib/__init__.pyi
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ctypes
|
| 2 |
+
from ctypes import c_int64 as _c_intp
|
| 3 |
+
|
| 4 |
+
from ._ctypeslib import (
|
| 5 |
+
__all__ as __all__,
|
| 6 |
+
__doc__ as __doc__,
|
| 7 |
+
_concrete_ndptr as _concrete_ndptr,
|
| 8 |
+
_ndptr as _ndptr,
|
| 9 |
+
as_array as as_array,
|
| 10 |
+
as_ctypes as as_ctypes,
|
| 11 |
+
as_ctypes_type as as_ctypes_type,
|
| 12 |
+
c_intp as c_intp,
|
| 13 |
+
load_library as load_library,
|
| 14 |
+
ndpointer as ndpointer,
|
| 15 |
+
)
|
python/user_packages/Python313/site-packages/numpy/ctypeslib/_ctypeslib.py
ADDED
|
@@ -0,0 +1,603 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
============================
|
| 3 |
+
``ctypes`` Utility Functions
|
| 4 |
+
============================
|
| 5 |
+
|
| 6 |
+
See Also
|
| 7 |
+
--------
|
| 8 |
+
load_library : Load a C library.
|
| 9 |
+
ndpointer : Array restype/argtype with verification.
|
| 10 |
+
as_ctypes : Create a ctypes array from an ndarray.
|
| 11 |
+
as_array : Create an ndarray from a ctypes array.
|
| 12 |
+
|
| 13 |
+
References
|
| 14 |
+
----------
|
| 15 |
+
.. [1] "SciPy Cookbook: ctypes", https://scipy-cookbook.readthedocs.io/items/Ctypes.html
|
| 16 |
+
|
| 17 |
+
Examples
|
| 18 |
+
--------
|
| 19 |
+
Load the C library:
|
| 20 |
+
|
| 21 |
+
>>> _lib = np.ctypeslib.load_library('libmystuff', '.') #doctest: +SKIP
|
| 22 |
+
|
| 23 |
+
Our result type, an ndarray that must be of type double, be 1-dimensional
|
| 24 |
+
and is C-contiguous in memory:
|
| 25 |
+
|
| 26 |
+
>>> array_1d_double = np.ctypeslib.ndpointer(
|
| 27 |
+
... dtype=np.double,
|
| 28 |
+
... ndim=1, flags='CONTIGUOUS') #doctest: +SKIP
|
| 29 |
+
|
| 30 |
+
Our C-function typically takes an array and updates its values
|
| 31 |
+
in-place. For example::
|
| 32 |
+
|
| 33 |
+
void foo_func(double* x, int length)
|
| 34 |
+
{
|
| 35 |
+
int i;
|
| 36 |
+
for (i = 0; i < length; i++) {
|
| 37 |
+
x[i] = i*i;
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
We wrap it using:
|
| 42 |
+
|
| 43 |
+
>>> _lib.foo_func.restype = None #doctest: +SKIP
|
| 44 |
+
>>> _lib.foo_func.argtypes = [array_1d_double, c_int] #doctest: +SKIP
|
| 45 |
+
|
| 46 |
+
Then, we're ready to call ``foo_func``:
|
| 47 |
+
|
| 48 |
+
>>> out = np.empty(15, dtype=np.double)
|
| 49 |
+
>>> _lib.foo_func(out, len(out)) #doctest: +SKIP
|
| 50 |
+
|
| 51 |
+
"""
|
| 52 |
+
__all__ = ['load_library', 'ndpointer', 'c_intp', 'as_ctypes', 'as_array',
|
| 53 |
+
'as_ctypes_type']
|
| 54 |
+
|
| 55 |
+
import os
|
| 56 |
+
|
| 57 |
+
import numpy as np
|
| 58 |
+
import numpy._core.multiarray as mu
|
| 59 |
+
from numpy._utils import set_module
|
| 60 |
+
|
| 61 |
+
try:
|
| 62 |
+
import ctypes
|
| 63 |
+
except ImportError:
|
| 64 |
+
ctypes = None
|
| 65 |
+
|
| 66 |
+
if ctypes is None:
|
| 67 |
+
@set_module("numpy.ctypeslib")
|
| 68 |
+
def _dummy(*args, **kwds):
|
| 69 |
+
"""
|
| 70 |
+
Dummy object that raises an ImportError if ctypes is not available.
|
| 71 |
+
|
| 72 |
+
Raises
|
| 73 |
+
------
|
| 74 |
+
ImportError
|
| 75 |
+
If ctypes is not available.
|
| 76 |
+
|
| 77 |
+
"""
|
| 78 |
+
raise ImportError("ctypes is not available.")
|
| 79 |
+
load_library = _dummy
|
| 80 |
+
as_ctypes = _dummy
|
| 81 |
+
as_ctypes_type = _dummy
|
| 82 |
+
as_array = _dummy
|
| 83 |
+
ndpointer = _dummy
|
| 84 |
+
from numpy import intp as c_intp
|
| 85 |
+
_ndptr_base = object
|
| 86 |
+
else:
|
| 87 |
+
import numpy._core._internal as nic
|
| 88 |
+
c_intp = nic._getintp_ctype()
|
| 89 |
+
del nic
|
| 90 |
+
_ndptr_base = ctypes.c_void_p
|
| 91 |
+
|
| 92 |
+
# Adapted from Albert Strasheim
|
| 93 |
+
@set_module("numpy.ctypeslib")
|
| 94 |
+
def load_library(libname, loader_path):
|
| 95 |
+
"""
|
| 96 |
+
It is possible to load a library using
|
| 97 |
+
|
| 98 |
+
>>> lib = ctypes.cdll[<full_path_name>] # doctest: +SKIP
|
| 99 |
+
|
| 100 |
+
But there are cross-platform considerations, such as library file extensions,
|
| 101 |
+
plus the fact Windows will just load the first library it finds with that name.
|
| 102 |
+
NumPy supplies the load_library function as a convenience.
|
| 103 |
+
|
| 104 |
+
.. versionchanged:: 1.20.0
|
| 105 |
+
Allow libname and loader_path to take any
|
| 106 |
+
:term:`python:path-like object`.
|
| 107 |
+
|
| 108 |
+
Parameters
|
| 109 |
+
----------
|
| 110 |
+
libname : path-like
|
| 111 |
+
Name of the library, which can have 'lib' as a prefix,
|
| 112 |
+
but without an extension.
|
| 113 |
+
loader_path : path-like
|
| 114 |
+
Where the library can be found.
|
| 115 |
+
|
| 116 |
+
Returns
|
| 117 |
+
-------
|
| 118 |
+
ctypes.cdll[libpath] : library object
|
| 119 |
+
A ctypes library object
|
| 120 |
+
|
| 121 |
+
Raises
|
| 122 |
+
------
|
| 123 |
+
OSError
|
| 124 |
+
If there is no library with the expected extension, or the
|
| 125 |
+
library is defective and cannot be loaded.
|
| 126 |
+
"""
|
| 127 |
+
# Convert path-like objects into strings
|
| 128 |
+
libname = os.fsdecode(libname)
|
| 129 |
+
loader_path = os.fsdecode(loader_path)
|
| 130 |
+
|
| 131 |
+
ext = os.path.splitext(libname)[1]
|
| 132 |
+
if not ext:
|
| 133 |
+
import sys
|
| 134 |
+
import sysconfig
|
| 135 |
+
# Try to load library with platform-specific name, otherwise
|
| 136 |
+
# default to libname.[so|dll|dylib]. Sometimes, these files are
|
| 137 |
+
# built erroneously on non-linux platforms.
|
| 138 |
+
base_ext = ".so"
|
| 139 |
+
if sys.platform.startswith("darwin"):
|
| 140 |
+
base_ext = ".dylib"
|
| 141 |
+
elif sys.platform.startswith("win"):
|
| 142 |
+
base_ext = ".dll"
|
| 143 |
+
libname_ext = [libname + base_ext]
|
| 144 |
+
so_ext = sysconfig.get_config_var("EXT_SUFFIX")
|
| 145 |
+
if not so_ext == base_ext:
|
| 146 |
+
libname_ext.insert(0, libname + so_ext)
|
| 147 |
+
else:
|
| 148 |
+
libname_ext = [libname]
|
| 149 |
+
|
| 150 |
+
loader_path = os.path.abspath(loader_path)
|
| 151 |
+
if not os.path.isdir(loader_path):
|
| 152 |
+
libdir = os.path.dirname(loader_path)
|
| 153 |
+
else:
|
| 154 |
+
libdir = loader_path
|
| 155 |
+
|
| 156 |
+
for ln in libname_ext:
|
| 157 |
+
libpath = os.path.join(libdir, ln)
|
| 158 |
+
if os.path.exists(libpath):
|
| 159 |
+
try:
|
| 160 |
+
return ctypes.cdll[libpath]
|
| 161 |
+
except OSError:
|
| 162 |
+
# defective lib file
|
| 163 |
+
raise
|
| 164 |
+
# if no successful return in the libname_ext loop:
|
| 165 |
+
raise OSError("no file with expected extension")
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
def _num_fromflags(flaglist):
|
| 169 |
+
num = 0
|
| 170 |
+
for val in flaglist:
|
| 171 |
+
num += mu._flagdict[val]
|
| 172 |
+
return num
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
_flagnames = ['C_CONTIGUOUS', 'F_CONTIGUOUS', 'ALIGNED', 'WRITEABLE',
|
| 176 |
+
'OWNDATA', 'WRITEBACKIFCOPY']
|
| 177 |
+
def _flags_fromnum(num):
|
| 178 |
+
res = []
|
| 179 |
+
for key in _flagnames:
|
| 180 |
+
value = mu._flagdict[key]
|
| 181 |
+
if (num & value):
|
| 182 |
+
res.append(key)
|
| 183 |
+
return res
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
class _ndptr(_ndptr_base):
|
| 187 |
+
@classmethod
|
| 188 |
+
def from_param(cls, obj):
|
| 189 |
+
if not isinstance(obj, np.ndarray):
|
| 190 |
+
raise TypeError("argument must be an ndarray")
|
| 191 |
+
if cls._dtype_ is not None \
|
| 192 |
+
and obj.dtype != cls._dtype_:
|
| 193 |
+
raise TypeError(f"array must have data type {cls._dtype_}")
|
| 194 |
+
if cls._ndim_ is not None \
|
| 195 |
+
and obj.ndim != cls._ndim_:
|
| 196 |
+
raise TypeError("array must have %d dimension(s)" % cls._ndim_)
|
| 197 |
+
if cls._shape_ is not None \
|
| 198 |
+
and obj.shape != cls._shape_:
|
| 199 |
+
raise TypeError(f"array must have shape {str(cls._shape_)}")
|
| 200 |
+
if cls._flags_ is not None \
|
| 201 |
+
and ((obj.flags.num & cls._flags_) != cls._flags_):
|
| 202 |
+
raise TypeError(f"array must have flags {_flags_fromnum(cls._flags_)}")
|
| 203 |
+
return obj.ctypes
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
class _concrete_ndptr(_ndptr):
|
| 207 |
+
"""
|
| 208 |
+
Like _ndptr, but with `_shape_` and `_dtype_` specified.
|
| 209 |
+
|
| 210 |
+
Notably, this means the pointer has enough information to reconstruct
|
| 211 |
+
the array, which is not generally true.
|
| 212 |
+
"""
|
| 213 |
+
def _check_retval_(self):
|
| 214 |
+
"""
|
| 215 |
+
This method is called when this class is used as the .restype
|
| 216 |
+
attribute for a shared-library function, to automatically wrap the
|
| 217 |
+
pointer into an array.
|
| 218 |
+
"""
|
| 219 |
+
return self.contents
|
| 220 |
+
|
| 221 |
+
@property
|
| 222 |
+
def contents(self):
|
| 223 |
+
"""
|
| 224 |
+
Get an ndarray viewing the data pointed to by this pointer.
|
| 225 |
+
|
| 226 |
+
This mirrors the `contents` attribute of a normal ctypes pointer
|
| 227 |
+
"""
|
| 228 |
+
full_dtype = np.dtype((self._dtype_, self._shape_))
|
| 229 |
+
full_ctype = ctypes.c_char * full_dtype.itemsize
|
| 230 |
+
buffer = ctypes.cast(self, ctypes.POINTER(full_ctype)).contents
|
| 231 |
+
return np.frombuffer(buffer, dtype=full_dtype).squeeze(axis=0)
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
# Factory for an array-checking class with from_param defined for
|
| 235 |
+
# use with ctypes argtypes mechanism
|
| 236 |
+
_pointer_type_cache = {}
|
| 237 |
+
|
| 238 |
+
@set_module("numpy.ctypeslib")
|
| 239 |
+
def ndpointer(dtype=None, ndim=None, shape=None, flags=None):
|
| 240 |
+
"""
|
| 241 |
+
Array-checking restype/argtypes.
|
| 242 |
+
|
| 243 |
+
An ndpointer instance is used to describe an ndarray in restypes
|
| 244 |
+
and argtypes specifications. This approach is more flexible than
|
| 245 |
+
using, for example, ``POINTER(c_double)``, since several restrictions
|
| 246 |
+
can be specified, which are verified upon calling the ctypes function.
|
| 247 |
+
These include data type, number of dimensions, shape and flags. If a
|
| 248 |
+
given array does not satisfy the specified restrictions,
|
| 249 |
+
a ``TypeError`` is raised.
|
| 250 |
+
|
| 251 |
+
Parameters
|
| 252 |
+
----------
|
| 253 |
+
dtype : data-type, optional
|
| 254 |
+
Array data-type.
|
| 255 |
+
ndim : int, optional
|
| 256 |
+
Number of array dimensions.
|
| 257 |
+
shape : tuple of ints, optional
|
| 258 |
+
Array shape.
|
| 259 |
+
flags : str or tuple of str
|
| 260 |
+
Array flags; may be one or more of:
|
| 261 |
+
|
| 262 |
+
- C_CONTIGUOUS / C / CONTIGUOUS
|
| 263 |
+
- F_CONTIGUOUS / F / FORTRAN
|
| 264 |
+
- OWNDATA / O
|
| 265 |
+
- WRITEABLE / W
|
| 266 |
+
- ALIGNED / A
|
| 267 |
+
- WRITEBACKIFCOPY / X
|
| 268 |
+
|
| 269 |
+
Returns
|
| 270 |
+
-------
|
| 271 |
+
klass : ndpointer type object
|
| 272 |
+
A type object, which is an ``_ndtpr`` instance containing
|
| 273 |
+
dtype, ndim, shape and flags information.
|
| 274 |
+
|
| 275 |
+
Raises
|
| 276 |
+
------
|
| 277 |
+
TypeError
|
| 278 |
+
If a given array does not satisfy the specified restrictions.
|
| 279 |
+
|
| 280 |
+
Examples
|
| 281 |
+
--------
|
| 282 |
+
>>> clib.somefunc.argtypes = [np.ctypeslib.ndpointer(dtype=np.float64,
|
| 283 |
+
... ndim=1,
|
| 284 |
+
... flags='C_CONTIGUOUS')]
|
| 285 |
+
... #doctest: +SKIP
|
| 286 |
+
>>> clib.somefunc(np.array([1, 2, 3], dtype=np.float64))
|
| 287 |
+
... #doctest: +SKIP
|
| 288 |
+
|
| 289 |
+
"""
|
| 290 |
+
|
| 291 |
+
# normalize dtype to dtype | None
|
| 292 |
+
if dtype is not None:
|
| 293 |
+
dtype = np.dtype(dtype)
|
| 294 |
+
|
| 295 |
+
# normalize flags to int | None
|
| 296 |
+
num = None
|
| 297 |
+
if flags is not None:
|
| 298 |
+
if isinstance(flags, str):
|
| 299 |
+
flags = flags.split(',')
|
| 300 |
+
elif isinstance(flags, (int, np.integer)):
|
| 301 |
+
num = flags
|
| 302 |
+
flags = _flags_fromnum(num)
|
| 303 |
+
elif isinstance(flags, mu.flagsobj):
|
| 304 |
+
num = flags.num
|
| 305 |
+
flags = _flags_fromnum(num)
|
| 306 |
+
if num is None:
|
| 307 |
+
try:
|
| 308 |
+
flags = [x.strip().upper() for x in flags]
|
| 309 |
+
except Exception as e:
|
| 310 |
+
raise TypeError("invalid flags specification") from e
|
| 311 |
+
num = _num_fromflags(flags)
|
| 312 |
+
|
| 313 |
+
# normalize shape to tuple | None
|
| 314 |
+
if shape is not None:
|
| 315 |
+
try:
|
| 316 |
+
shape = tuple(shape)
|
| 317 |
+
except TypeError:
|
| 318 |
+
# single integer -> 1-tuple
|
| 319 |
+
shape = (shape,)
|
| 320 |
+
|
| 321 |
+
cache_key = (dtype, ndim, shape, num)
|
| 322 |
+
|
| 323 |
+
try:
|
| 324 |
+
return _pointer_type_cache[cache_key]
|
| 325 |
+
except KeyError:
|
| 326 |
+
pass
|
| 327 |
+
|
| 328 |
+
# produce a name for the new type
|
| 329 |
+
if dtype is None:
|
| 330 |
+
name = 'any'
|
| 331 |
+
elif dtype.names is not None:
|
| 332 |
+
name = str(id(dtype))
|
| 333 |
+
else:
|
| 334 |
+
name = dtype.str
|
| 335 |
+
if ndim is not None:
|
| 336 |
+
name += "_%dd" % ndim
|
| 337 |
+
if shape is not None:
|
| 338 |
+
name += "_" + "x".join(str(x) for x in shape)
|
| 339 |
+
if flags is not None:
|
| 340 |
+
name += "_" + "_".join(flags)
|
| 341 |
+
|
| 342 |
+
if dtype is not None and shape is not None:
|
| 343 |
+
base = _concrete_ndptr
|
| 344 |
+
else:
|
| 345 |
+
base = _ndptr
|
| 346 |
+
|
| 347 |
+
klass = type(f"ndpointer_{name}", (base,),
|
| 348 |
+
{"_dtype_": dtype,
|
| 349 |
+
"_shape_": shape,
|
| 350 |
+
"_ndim_": ndim,
|
| 351 |
+
"_flags_": num})
|
| 352 |
+
_pointer_type_cache[cache_key] = klass
|
| 353 |
+
return klass
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
if ctypes is not None:
|
| 357 |
+
def _ctype_ndarray(element_type, shape):
|
| 358 |
+
""" Create an ndarray of the given element type and shape """
|
| 359 |
+
for dim in shape[::-1]:
|
| 360 |
+
element_type = dim * element_type
|
| 361 |
+
# prevent the type name include np.ctypeslib
|
| 362 |
+
element_type.__module__ = None
|
| 363 |
+
return element_type
|
| 364 |
+
|
| 365 |
+
def _get_scalar_type_map():
|
| 366 |
+
"""
|
| 367 |
+
Return a dictionary mapping native endian scalar dtype to ctypes types
|
| 368 |
+
"""
|
| 369 |
+
ct = ctypes
|
| 370 |
+
simple_types = [
|
| 371 |
+
ct.c_byte, ct.c_short, ct.c_int, ct.c_long, ct.c_longlong,
|
| 372 |
+
ct.c_ubyte, ct.c_ushort, ct.c_uint, ct.c_ulong, ct.c_ulonglong,
|
| 373 |
+
ct.c_float, ct.c_double,
|
| 374 |
+
ct.c_bool,
|
| 375 |
+
]
|
| 376 |
+
return {np.dtype(ctype): ctype for ctype in simple_types}
|
| 377 |
+
|
| 378 |
+
_scalar_type_map = _get_scalar_type_map()
|
| 379 |
+
|
| 380 |
+
def _ctype_from_dtype_scalar(dtype):
|
| 381 |
+
# swapping twice ensure that `=` is promoted to <, >, or |
|
| 382 |
+
dtype_with_endian = dtype.newbyteorder('S').newbyteorder('S')
|
| 383 |
+
dtype_native = dtype.newbyteorder('=')
|
| 384 |
+
try:
|
| 385 |
+
ctype = _scalar_type_map[dtype_native]
|
| 386 |
+
except KeyError as e:
|
| 387 |
+
raise NotImplementedError(
|
| 388 |
+
f"Converting {dtype!r} to a ctypes type"
|
| 389 |
+
) from None
|
| 390 |
+
|
| 391 |
+
if dtype_with_endian.byteorder == '>':
|
| 392 |
+
ctype = ctype.__ctype_be__
|
| 393 |
+
elif dtype_with_endian.byteorder == '<':
|
| 394 |
+
ctype = ctype.__ctype_le__
|
| 395 |
+
|
| 396 |
+
return ctype
|
| 397 |
+
|
| 398 |
+
def _ctype_from_dtype_subarray(dtype):
|
| 399 |
+
element_dtype, shape = dtype.subdtype
|
| 400 |
+
ctype = _ctype_from_dtype(element_dtype)
|
| 401 |
+
return _ctype_ndarray(ctype, shape)
|
| 402 |
+
|
| 403 |
+
def _ctype_from_dtype_structured(dtype):
|
| 404 |
+
# extract offsets of each field
|
| 405 |
+
field_data = []
|
| 406 |
+
for name in dtype.names:
|
| 407 |
+
field_dtype, offset = dtype.fields[name][:2]
|
| 408 |
+
field_data.append((offset, name, _ctype_from_dtype(field_dtype)))
|
| 409 |
+
|
| 410 |
+
# ctypes doesn't care about field order
|
| 411 |
+
field_data = sorted(field_data, key=lambda f: f[0])
|
| 412 |
+
|
| 413 |
+
if len(field_data) > 1 and all(offset == 0 for offset, _, _ in field_data):
|
| 414 |
+
# union, if multiple fields all at address 0
|
| 415 |
+
size = 0
|
| 416 |
+
_fields_ = []
|
| 417 |
+
for offset, name, ctype in field_data:
|
| 418 |
+
_fields_.append((name, ctype))
|
| 419 |
+
size = max(size, ctypes.sizeof(ctype))
|
| 420 |
+
|
| 421 |
+
# pad to the right size
|
| 422 |
+
if dtype.itemsize != size:
|
| 423 |
+
_fields_.append(('', ctypes.c_char * dtype.itemsize))
|
| 424 |
+
|
| 425 |
+
# we inserted manual padding, so always `_pack_`
|
| 426 |
+
return type('union', (ctypes.Union,), {
|
| 427 |
+
'_fields_': _fields_,
|
| 428 |
+
'_pack_': 1,
|
| 429 |
+
'__module__': None,
|
| 430 |
+
})
|
| 431 |
+
else:
|
| 432 |
+
last_offset = 0
|
| 433 |
+
_fields_ = []
|
| 434 |
+
for offset, name, ctype in field_data:
|
| 435 |
+
padding = offset - last_offset
|
| 436 |
+
if padding < 0:
|
| 437 |
+
raise NotImplementedError("Overlapping fields")
|
| 438 |
+
if padding > 0:
|
| 439 |
+
_fields_.append(('', ctypes.c_char * padding))
|
| 440 |
+
|
| 441 |
+
_fields_.append((name, ctype))
|
| 442 |
+
last_offset = offset + ctypes.sizeof(ctype)
|
| 443 |
+
|
| 444 |
+
padding = dtype.itemsize - last_offset
|
| 445 |
+
if padding > 0:
|
| 446 |
+
_fields_.append(('', ctypes.c_char * padding))
|
| 447 |
+
|
| 448 |
+
# we inserted manual padding, so always `_pack_`
|
| 449 |
+
return type('struct', (ctypes.Structure,), {
|
| 450 |
+
'_fields_': _fields_,
|
| 451 |
+
'_pack_': 1,
|
| 452 |
+
'__module__': None,
|
| 453 |
+
})
|
| 454 |
+
|
| 455 |
+
def _ctype_from_dtype(dtype):
|
| 456 |
+
if dtype.fields is not None:
|
| 457 |
+
return _ctype_from_dtype_structured(dtype)
|
| 458 |
+
elif dtype.subdtype is not None:
|
| 459 |
+
return _ctype_from_dtype_subarray(dtype)
|
| 460 |
+
else:
|
| 461 |
+
return _ctype_from_dtype_scalar(dtype)
|
| 462 |
+
|
| 463 |
+
@set_module("numpy.ctypeslib")
|
| 464 |
+
def as_ctypes_type(dtype):
|
| 465 |
+
r"""
|
| 466 |
+
Convert a dtype into a ctypes type.
|
| 467 |
+
|
| 468 |
+
Parameters
|
| 469 |
+
----------
|
| 470 |
+
dtype : dtype
|
| 471 |
+
The dtype to convert
|
| 472 |
+
|
| 473 |
+
Returns
|
| 474 |
+
-------
|
| 475 |
+
ctype
|
| 476 |
+
A ctype scalar, union, array, or struct
|
| 477 |
+
|
| 478 |
+
Raises
|
| 479 |
+
------
|
| 480 |
+
NotImplementedError
|
| 481 |
+
If the conversion is not possible
|
| 482 |
+
|
| 483 |
+
Notes
|
| 484 |
+
-----
|
| 485 |
+
This function does not losslessly round-trip in either direction.
|
| 486 |
+
|
| 487 |
+
``np.dtype(as_ctypes_type(dt))`` will:
|
| 488 |
+
|
| 489 |
+
- insert padding fields
|
| 490 |
+
- reorder fields to be sorted by offset
|
| 491 |
+
- discard field titles
|
| 492 |
+
|
| 493 |
+
``as_ctypes_type(np.dtype(ctype))`` will:
|
| 494 |
+
|
| 495 |
+
- discard the class names of `ctypes.Structure`\ s and
|
| 496 |
+
`ctypes.Union`\ s
|
| 497 |
+
- convert single-element `ctypes.Union`\ s into single-element
|
| 498 |
+
`ctypes.Structure`\ s
|
| 499 |
+
- insert padding fields
|
| 500 |
+
|
| 501 |
+
Examples
|
| 502 |
+
--------
|
| 503 |
+
Converting a simple dtype:
|
| 504 |
+
|
| 505 |
+
>>> dt = np.dtype('int8')
|
| 506 |
+
>>> ctype = np.ctypeslib.as_ctypes_type(dt)
|
| 507 |
+
>>> ctype
|
| 508 |
+
<class 'ctypes.c_byte'>
|
| 509 |
+
|
| 510 |
+
Converting a structured dtype:
|
| 511 |
+
|
| 512 |
+
>>> dt = np.dtype([('x', 'i4'), ('y', 'f4')])
|
| 513 |
+
>>> ctype = np.ctypeslib.as_ctypes_type(dt)
|
| 514 |
+
>>> ctype
|
| 515 |
+
<class 'struct'>
|
| 516 |
+
|
| 517 |
+
"""
|
| 518 |
+
return _ctype_from_dtype(np.dtype(dtype))
|
| 519 |
+
|
| 520 |
+
@set_module("numpy.ctypeslib")
|
| 521 |
+
def as_array(obj, shape=None):
|
| 522 |
+
"""
|
| 523 |
+
Create a numpy array from a ctypes array or POINTER.
|
| 524 |
+
|
| 525 |
+
The numpy array shares the memory with the ctypes object.
|
| 526 |
+
|
| 527 |
+
The shape parameter must be given if converting from a ctypes POINTER.
|
| 528 |
+
The shape parameter is ignored if converting from a ctypes array
|
| 529 |
+
|
| 530 |
+
Examples
|
| 531 |
+
--------
|
| 532 |
+
Converting a ctypes integer array:
|
| 533 |
+
|
| 534 |
+
>>> import ctypes
|
| 535 |
+
>>> ctypes_array = (ctypes.c_int * 5)(0, 1, 2, 3, 4)
|
| 536 |
+
>>> np_array = np.ctypeslib.as_array(ctypes_array)
|
| 537 |
+
>>> np_array
|
| 538 |
+
array([0, 1, 2, 3, 4], dtype=int32)
|
| 539 |
+
|
| 540 |
+
Converting a ctypes POINTER:
|
| 541 |
+
|
| 542 |
+
>>> import ctypes
|
| 543 |
+
>>> buffer = (ctypes.c_int * 5)(0, 1, 2, 3, 4)
|
| 544 |
+
>>> pointer = ctypes.cast(buffer, ctypes.POINTER(ctypes.c_int))
|
| 545 |
+
>>> np_array = np.ctypeslib.as_array(pointer, (5,))
|
| 546 |
+
>>> np_array
|
| 547 |
+
array([0, 1, 2, 3, 4], dtype=int32)
|
| 548 |
+
|
| 549 |
+
"""
|
| 550 |
+
if isinstance(obj, ctypes._Pointer):
|
| 551 |
+
# convert pointers to an array of the desired shape
|
| 552 |
+
if shape is None:
|
| 553 |
+
raise TypeError(
|
| 554 |
+
'as_array() requires a shape argument when called on a '
|
| 555 |
+
'pointer')
|
| 556 |
+
p_arr_type = ctypes.POINTER(_ctype_ndarray(obj._type_, shape))
|
| 557 |
+
obj = ctypes.cast(obj, p_arr_type).contents
|
| 558 |
+
|
| 559 |
+
return np.asarray(obj)
|
| 560 |
+
|
| 561 |
+
@set_module("numpy.ctypeslib")
|
| 562 |
+
def as_ctypes(obj):
|
| 563 |
+
"""
|
| 564 |
+
Create and return a ctypes object from a numpy array. Actually
|
| 565 |
+
anything that exposes the __array_interface__ is accepted.
|
| 566 |
+
|
| 567 |
+
Examples
|
| 568 |
+
--------
|
| 569 |
+
Create ctypes object from inferred int ``np.array``:
|
| 570 |
+
|
| 571 |
+
>>> inferred_int_array = np.array([1, 2, 3])
|
| 572 |
+
>>> c_int_array = np.ctypeslib.as_ctypes(inferred_int_array)
|
| 573 |
+
>>> type(c_int_array)
|
| 574 |
+
<class 'c_long_Array_3'>
|
| 575 |
+
>>> c_int_array[:]
|
| 576 |
+
[1, 2, 3]
|
| 577 |
+
|
| 578 |
+
Create ctypes object from explicit 8 bit unsigned int ``np.array`` :
|
| 579 |
+
|
| 580 |
+
>>> exp_int_array = np.array([1, 2, 3], dtype=np.uint8)
|
| 581 |
+
>>> c_int_array = np.ctypeslib.as_ctypes(exp_int_array)
|
| 582 |
+
>>> type(c_int_array)
|
| 583 |
+
<class 'c_ubyte_Array_3'>
|
| 584 |
+
>>> c_int_array[:]
|
| 585 |
+
[1, 2, 3]
|
| 586 |
+
|
| 587 |
+
"""
|
| 588 |
+
ai = obj.__array_interface__
|
| 589 |
+
if ai["strides"]:
|
| 590 |
+
raise TypeError("strided arrays not supported")
|
| 591 |
+
if ai["version"] != 3:
|
| 592 |
+
raise TypeError("only __array_interface__ version 3 supported")
|
| 593 |
+
addr, readonly = ai["data"]
|
| 594 |
+
if readonly:
|
| 595 |
+
raise TypeError("readonly arrays unsupported")
|
| 596 |
+
|
| 597 |
+
# can't use `_dtype((ai["typestr"], ai["shape"]))` here, as it overflows
|
| 598 |
+
# dtype.itemsize (gh-14214)
|
| 599 |
+
ctype_scalar = as_ctypes_type(ai["typestr"])
|
| 600 |
+
result_type = _ctype_ndarray(ctype_scalar, ai["shape"])
|
| 601 |
+
result = result_type.from_address(addr)
|
| 602 |
+
result.__keep = obj
|
| 603 |
+
return result
|
python/user_packages/Python313/site-packages/numpy/ctypeslib/_ctypeslib.pyi
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NOTE: Numpy's mypy plugin is used for importing the correct
|
| 2 |
+
# platform-specific `ctypes._SimpleCData[int]` sub-type
|
| 3 |
+
import ctypes
|
| 4 |
+
from _typeshed import StrOrBytesPath
|
| 5 |
+
from collections.abc import Iterable, Sequence
|
| 6 |
+
from ctypes import c_int64 as _c_intp
|
| 7 |
+
from typing import Any, ClassVar, Generic, Literal as L, TypeAlias, TypeVar, overload
|
| 8 |
+
|
| 9 |
+
import numpy as np
|
| 10 |
+
from numpy import (
|
| 11 |
+
byte,
|
| 12 |
+
double,
|
| 13 |
+
dtype,
|
| 14 |
+
generic,
|
| 15 |
+
intc,
|
| 16 |
+
long,
|
| 17 |
+
longdouble,
|
| 18 |
+
longlong,
|
| 19 |
+
ndarray,
|
| 20 |
+
short,
|
| 21 |
+
single,
|
| 22 |
+
ubyte,
|
| 23 |
+
uintc,
|
| 24 |
+
ulong,
|
| 25 |
+
ulonglong,
|
| 26 |
+
ushort,
|
| 27 |
+
void,
|
| 28 |
+
)
|
| 29 |
+
from numpy._core._internal import _ctypes
|
| 30 |
+
from numpy._core.multiarray import flagsobj
|
| 31 |
+
from numpy._typing import (
|
| 32 |
+
DTypeLike,
|
| 33 |
+
NDArray,
|
| 34 |
+
_AnyShape,
|
| 35 |
+
_ArrayLike,
|
| 36 |
+
_BoolCodes,
|
| 37 |
+
_ByteCodes,
|
| 38 |
+
_DoubleCodes,
|
| 39 |
+
_DTypeLike,
|
| 40 |
+
_IntCCodes,
|
| 41 |
+
_LongCodes,
|
| 42 |
+
_LongDoubleCodes,
|
| 43 |
+
_LongLongCodes,
|
| 44 |
+
_ShapeLike,
|
| 45 |
+
_ShortCodes,
|
| 46 |
+
_SingleCodes,
|
| 47 |
+
_UByteCodes,
|
| 48 |
+
_UIntCCodes,
|
| 49 |
+
_ULongCodes,
|
| 50 |
+
_ULongLongCodes,
|
| 51 |
+
_UShortCodes,
|
| 52 |
+
_VoidDTypeLike,
|
| 53 |
+
)
|
| 54 |
+
|
| 55 |
+
__all__ = ["load_library", "ndpointer", "c_intp", "as_ctypes", "as_array", "as_ctypes_type"]
|
| 56 |
+
|
| 57 |
+
# TODO: Add a proper `_Shape` bound once we've got variadic typevars
|
| 58 |
+
_DTypeT = TypeVar("_DTypeT", bound=dtype)
|
| 59 |
+
_DTypeOptionalT = TypeVar("_DTypeOptionalT", bound=dtype | None)
|
| 60 |
+
_ScalarT = TypeVar("_ScalarT", bound=generic)
|
| 61 |
+
|
| 62 |
+
_FlagsKind: TypeAlias = L[
|
| 63 |
+
"C_CONTIGUOUS", "CONTIGUOUS", "C",
|
| 64 |
+
"F_CONTIGUOUS", "FORTRAN", "F",
|
| 65 |
+
"ALIGNED", "A",
|
| 66 |
+
"WRITEABLE", "W",
|
| 67 |
+
"OWNDATA", "O",
|
| 68 |
+
"WRITEBACKIFCOPY", "X",
|
| 69 |
+
]
|
| 70 |
+
|
| 71 |
+
# TODO: Add a shape typevar once we have variadic typevars (PEP 646)
|
| 72 |
+
class _ndptr(ctypes.c_void_p, Generic[_DTypeOptionalT]):
|
| 73 |
+
# In practice these 4 classvars are defined in the dynamic class
|
| 74 |
+
# returned by `ndpointer`
|
| 75 |
+
_dtype_: ClassVar[_DTypeOptionalT]
|
| 76 |
+
_shape_: ClassVar[_AnyShape | None]
|
| 77 |
+
_ndim_: ClassVar[int | None]
|
| 78 |
+
_flags_: ClassVar[list[_FlagsKind] | None]
|
| 79 |
+
|
| 80 |
+
@overload # type: ignore[override]
|
| 81 |
+
@classmethod
|
| 82 |
+
def from_param(cls: type[_ndptr[None]], obj: NDArray[Any]) -> _ctypes[Any]: ...
|
| 83 |
+
@overload
|
| 84 |
+
@classmethod
|
| 85 |
+
def from_param(cls: type[_ndptr[_DTypeT]], obj: ndarray[Any, _DTypeT]) -> _ctypes[Any]: ...
|
| 86 |
+
|
| 87 |
+
class _concrete_ndptr(_ndptr[_DTypeT]):
|
| 88 |
+
_dtype_: ClassVar[_DTypeT]
|
| 89 |
+
_shape_: ClassVar[_AnyShape]
|
| 90 |
+
@property
|
| 91 |
+
def contents(self) -> ndarray[_AnyShape, _DTypeT]: ...
|
| 92 |
+
|
| 93 |
+
def load_library(libname: StrOrBytesPath, loader_path: StrOrBytesPath) -> ctypes.CDLL: ...
|
| 94 |
+
|
| 95 |
+
c_intp = _c_intp
|
| 96 |
+
|
| 97 |
+
@overload
|
| 98 |
+
def ndpointer(
|
| 99 |
+
dtype: None = None,
|
| 100 |
+
ndim: int | None = None,
|
| 101 |
+
shape: _ShapeLike | None = None,
|
| 102 |
+
flags: _FlagsKind | Iterable[_FlagsKind] | int | flagsobj | None = None,
|
| 103 |
+
) -> type[_ndptr[None]]: ...
|
| 104 |
+
@overload
|
| 105 |
+
def ndpointer(
|
| 106 |
+
dtype: _DTypeLike[_ScalarT],
|
| 107 |
+
ndim: int | None = None,
|
| 108 |
+
*,
|
| 109 |
+
shape: _ShapeLike,
|
| 110 |
+
flags: _FlagsKind | Iterable[_FlagsKind] | int | flagsobj | None = None,
|
| 111 |
+
) -> type[_concrete_ndptr[dtype[_ScalarT]]]: ...
|
| 112 |
+
@overload
|
| 113 |
+
def ndpointer(
|
| 114 |
+
dtype: DTypeLike | None,
|
| 115 |
+
ndim: int | None = None,
|
| 116 |
+
*,
|
| 117 |
+
shape: _ShapeLike,
|
| 118 |
+
flags: _FlagsKind | Iterable[_FlagsKind] | int | flagsobj | None = None,
|
| 119 |
+
) -> type[_concrete_ndptr[dtype]]: ...
|
| 120 |
+
@overload
|
| 121 |
+
def ndpointer(
|
| 122 |
+
dtype: _DTypeLike[_ScalarT],
|
| 123 |
+
ndim: int | None = None,
|
| 124 |
+
shape: None = None,
|
| 125 |
+
flags: _FlagsKind | Iterable[_FlagsKind] | int | flagsobj | None = None,
|
| 126 |
+
) -> type[_ndptr[dtype[_ScalarT]]]: ...
|
| 127 |
+
@overload
|
| 128 |
+
def ndpointer(
|
| 129 |
+
dtype: DTypeLike | None,
|
| 130 |
+
ndim: int | None = None,
|
| 131 |
+
shape: None = None,
|
| 132 |
+
flags: _FlagsKind | Iterable[_FlagsKind] | int | flagsobj | None = None,
|
| 133 |
+
) -> type[_ndptr[dtype]]: ...
|
| 134 |
+
|
| 135 |
+
@overload
|
| 136 |
+
def as_ctypes_type(dtype: _BoolCodes | _DTypeLike[np.bool] | type[ctypes.c_bool]) -> type[ctypes.c_bool]: ...
|
| 137 |
+
@overload
|
| 138 |
+
def as_ctypes_type(dtype: _ByteCodes | _DTypeLike[byte] | type[ctypes.c_byte]) -> type[ctypes.c_byte]: ...
|
| 139 |
+
@overload
|
| 140 |
+
def as_ctypes_type(dtype: _ShortCodes | _DTypeLike[short] | type[ctypes.c_short]) -> type[ctypes.c_short]: ...
|
| 141 |
+
@overload
|
| 142 |
+
def as_ctypes_type(dtype: _IntCCodes | _DTypeLike[intc] | type[ctypes.c_int]) -> type[ctypes.c_int]: ...
|
| 143 |
+
@overload
|
| 144 |
+
def as_ctypes_type(dtype: _LongCodes | _DTypeLike[long] | type[ctypes.c_long]) -> type[ctypes.c_long]: ...
|
| 145 |
+
@overload
|
| 146 |
+
def as_ctypes_type(dtype: type[int]) -> type[c_intp]: ...
|
| 147 |
+
@overload
|
| 148 |
+
def as_ctypes_type(dtype: _LongLongCodes | _DTypeLike[longlong] | type[ctypes.c_longlong]) -> type[ctypes.c_longlong]: ...
|
| 149 |
+
@overload
|
| 150 |
+
def as_ctypes_type(dtype: _UByteCodes | _DTypeLike[ubyte] | type[ctypes.c_ubyte]) -> type[ctypes.c_ubyte]: ...
|
| 151 |
+
@overload
|
| 152 |
+
def as_ctypes_type(dtype: _UShortCodes | _DTypeLike[ushort] | type[ctypes.c_ushort]) -> type[ctypes.c_ushort]: ...
|
| 153 |
+
@overload
|
| 154 |
+
def as_ctypes_type(dtype: _UIntCCodes | _DTypeLike[uintc] | type[ctypes.c_uint]) -> type[ctypes.c_uint]: ...
|
| 155 |
+
@overload
|
| 156 |
+
def as_ctypes_type(dtype: _ULongCodes | _DTypeLike[ulong] | type[ctypes.c_ulong]) -> type[ctypes.c_ulong]: ...
|
| 157 |
+
@overload
|
| 158 |
+
def as_ctypes_type(dtype: _ULongLongCodes | _DTypeLike[ulonglong] | type[ctypes.c_ulonglong]) -> type[ctypes.c_ulonglong]: ...
|
| 159 |
+
@overload
|
| 160 |
+
def as_ctypes_type(dtype: _SingleCodes | _DTypeLike[single] | type[ctypes.c_float]) -> type[ctypes.c_float]: ...
|
| 161 |
+
@overload
|
| 162 |
+
def as_ctypes_type(dtype: _DoubleCodes | _DTypeLike[double] | type[float | ctypes.c_double]) -> type[ctypes.c_double]: ...
|
| 163 |
+
@overload
|
| 164 |
+
def as_ctypes_type(dtype: _LongDoubleCodes | _DTypeLike[longdouble] | type[ctypes.c_longdouble]) -> type[ctypes.c_longdouble]: ...
|
| 165 |
+
@overload
|
| 166 |
+
def as_ctypes_type(dtype: _VoidDTypeLike) -> type[Any]: ... # `ctypes.Union` or `ctypes.Structure`
|
| 167 |
+
@overload
|
| 168 |
+
def as_ctypes_type(dtype: str) -> type[Any]: ...
|
| 169 |
+
|
| 170 |
+
@overload
|
| 171 |
+
def as_array(obj: ctypes._PointerLike, shape: Sequence[int]) -> NDArray[Any]: ...
|
| 172 |
+
@overload
|
| 173 |
+
def as_array(obj: _ArrayLike[_ScalarT], shape: _ShapeLike | None = None) -> NDArray[_ScalarT]: ...
|
| 174 |
+
@overload
|
| 175 |
+
def as_array(obj: object, shape: _ShapeLike | None = None) -> NDArray[Any]: ...
|
| 176 |
+
|
| 177 |
+
@overload
|
| 178 |
+
def as_ctypes(obj: np.bool) -> ctypes.c_bool: ...
|
| 179 |
+
@overload
|
| 180 |
+
def as_ctypes(obj: byte) -> ctypes.c_byte: ...
|
| 181 |
+
@overload
|
| 182 |
+
def as_ctypes(obj: short) -> ctypes.c_short: ...
|
| 183 |
+
@overload
|
| 184 |
+
def as_ctypes(obj: intc) -> ctypes.c_int: ...
|
| 185 |
+
@overload
|
| 186 |
+
def as_ctypes(obj: long) -> ctypes.c_long: ...
|
| 187 |
+
@overload
|
| 188 |
+
def as_ctypes(obj: longlong) -> ctypes.c_longlong: ... # type: ignore[overload-cannot-match]
|
| 189 |
+
@overload
|
| 190 |
+
def as_ctypes(obj: ubyte) -> ctypes.c_ubyte: ...
|
| 191 |
+
@overload
|
| 192 |
+
def as_ctypes(obj: ushort) -> ctypes.c_ushort: ...
|
| 193 |
+
@overload
|
| 194 |
+
def as_ctypes(obj: uintc) -> ctypes.c_uint: ...
|
| 195 |
+
@overload
|
| 196 |
+
def as_ctypes(obj: ulong) -> ctypes.c_ulong: ...
|
| 197 |
+
@overload
|
| 198 |
+
def as_ctypes(obj: ulonglong) -> ctypes.c_ulonglong: ... # type: ignore[overload-cannot-match]
|
| 199 |
+
@overload
|
| 200 |
+
def as_ctypes(obj: single) -> ctypes.c_float: ...
|
| 201 |
+
@overload
|
| 202 |
+
def as_ctypes(obj: double) -> ctypes.c_double: ...
|
| 203 |
+
@overload
|
| 204 |
+
def as_ctypes(obj: longdouble) -> ctypes.c_longdouble: ...
|
| 205 |
+
@overload
|
| 206 |
+
def as_ctypes(obj: void) -> Any: ... # `ctypes.Union` or `ctypes.Structure`
|
| 207 |
+
@overload
|
| 208 |
+
def as_ctypes(obj: NDArray[np.bool]) -> ctypes.Array[ctypes.c_bool]: ...
|
| 209 |
+
@overload
|
| 210 |
+
def as_ctypes(obj: NDArray[byte]) -> ctypes.Array[ctypes.c_byte]: ...
|
| 211 |
+
@overload
|
| 212 |
+
def as_ctypes(obj: NDArray[short]) -> ctypes.Array[ctypes.c_short]: ...
|
| 213 |
+
@overload
|
| 214 |
+
def as_ctypes(obj: NDArray[intc]) -> ctypes.Array[ctypes.c_int]: ...
|
| 215 |
+
@overload
|
| 216 |
+
def as_ctypes(obj: NDArray[long]) -> ctypes.Array[ctypes.c_long]: ...
|
| 217 |
+
@overload
|
| 218 |
+
def as_ctypes(obj: NDArray[longlong]) -> ctypes.Array[ctypes.c_longlong]: ... # type: ignore[overload-cannot-match]
|
| 219 |
+
@overload
|
| 220 |
+
def as_ctypes(obj: NDArray[ubyte]) -> ctypes.Array[ctypes.c_ubyte]: ...
|
| 221 |
+
@overload
|
| 222 |
+
def as_ctypes(obj: NDArray[ushort]) -> ctypes.Array[ctypes.c_ushort]: ...
|
| 223 |
+
@overload
|
| 224 |
+
def as_ctypes(obj: NDArray[uintc]) -> ctypes.Array[ctypes.c_uint]: ...
|
| 225 |
+
@overload
|
| 226 |
+
def as_ctypes(obj: NDArray[ulong]) -> ctypes.Array[ctypes.c_ulong]: ...
|
| 227 |
+
@overload
|
| 228 |
+
def as_ctypes(obj: NDArray[ulonglong]) -> ctypes.Array[ctypes.c_ulonglong]: ... # type: ignore[overload-cannot-match]
|
| 229 |
+
@overload
|
| 230 |
+
def as_ctypes(obj: NDArray[single]) -> ctypes.Array[ctypes.c_float]: ...
|
| 231 |
+
@overload
|
| 232 |
+
def as_ctypes(obj: NDArray[double]) -> ctypes.Array[ctypes.c_double]: ...
|
| 233 |
+
@overload
|
| 234 |
+
def as_ctypes(obj: NDArray[longdouble]) -> ctypes.Array[ctypes.c_longdouble]: ...
|
| 235 |
+
@overload
|
| 236 |
+
def as_ctypes(obj: NDArray[void]) -> ctypes.Array[Any]: ... # `ctypes.Union` or `ctypes.Structure`
|
python/user_packages/Python313/site-packages/numpy/doc/ufuncs.py
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
===================
|
| 3 |
+
Universal Functions
|
| 4 |
+
===================
|
| 5 |
+
|
| 6 |
+
Ufuncs are, generally speaking, mathematical functions or operations that are
|
| 7 |
+
applied element-by-element to the contents of an array. That is, the result
|
| 8 |
+
in each output array element only depends on the value in the corresponding
|
| 9 |
+
input array (or arrays) and on no other array elements. NumPy comes with a
|
| 10 |
+
large suite of ufuncs, and scipy extends that suite substantially. The simplest
|
| 11 |
+
example is the addition operator: ::
|
| 12 |
+
|
| 13 |
+
>>> np.array([0,2,3,4]) + np.array([1,1,-1,2])
|
| 14 |
+
array([1, 3, 2, 6])
|
| 15 |
+
|
| 16 |
+
The ufunc module lists all the available ufuncs in numpy. Documentation on
|
| 17 |
+
the specific ufuncs may be found in those modules. This documentation is
|
| 18 |
+
intended to address the more general aspects of ufuncs common to most of
|
| 19 |
+
them. All of the ufuncs that make use of Python operators (e.g., +, -, etc.)
|
| 20 |
+
have equivalent functions defined (e.g. add() for +)
|
| 21 |
+
|
| 22 |
+
Type coercion
|
| 23 |
+
=============
|
| 24 |
+
|
| 25 |
+
What happens when a binary operator (e.g., +,-,\\*,/, etc) deals with arrays of
|
| 26 |
+
two different types? What is the type of the result? Typically, the result is
|
| 27 |
+
the higher of the two types. For example: ::
|
| 28 |
+
|
| 29 |
+
float32 + float64 -> float64
|
| 30 |
+
int8 + int32 -> int32
|
| 31 |
+
int16 + float32 -> float32
|
| 32 |
+
float32 + complex64 -> complex64
|
| 33 |
+
|
| 34 |
+
There are some less obvious cases generally involving mixes of types
|
| 35 |
+
(e.g. uints, ints and floats) where equal bit sizes for each are not
|
| 36 |
+
capable of saving all the information in a different type of equivalent
|
| 37 |
+
bit size. Some examples are int32 vs float32 or uint32 vs int32.
|
| 38 |
+
Generally, the result is the higher type of larger size than both
|
| 39 |
+
(if available). So: ::
|
| 40 |
+
|
| 41 |
+
int32 + float32 -> float64
|
| 42 |
+
uint32 + int32 -> int64
|
| 43 |
+
|
| 44 |
+
Finally, the type coercion behavior when expressions involve Python
|
| 45 |
+
scalars is different than that seen for arrays. Since Python has a
|
| 46 |
+
limited number of types, combining a Python int with a dtype=np.int8
|
| 47 |
+
array does not coerce to the higher type but instead, the type of the
|
| 48 |
+
array prevails. So the rules for Python scalars combined with arrays is
|
| 49 |
+
that the result will be that of the array equivalent the Python scalar
|
| 50 |
+
if the Python scalar is of a higher 'kind' than the array (e.g., float
|
| 51 |
+
vs. int), otherwise the resultant type will be that of the array.
|
| 52 |
+
For example: ::
|
| 53 |
+
|
| 54 |
+
Python int + int8 -> int8
|
| 55 |
+
Python float + int8 -> float64
|
| 56 |
+
|
| 57 |
+
ufunc methods
|
| 58 |
+
=============
|
| 59 |
+
|
| 60 |
+
Binary ufuncs support 4 methods.
|
| 61 |
+
|
| 62 |
+
**.reduce(arr)** applies the binary operator to elements of the array in
|
| 63 |
+
sequence. For example: ::
|
| 64 |
+
|
| 65 |
+
>>> np.add.reduce(np.arange(10)) # adds all elements of array
|
| 66 |
+
45
|
| 67 |
+
|
| 68 |
+
For multidimensional arrays, the first dimension is reduced by default: ::
|
| 69 |
+
|
| 70 |
+
>>> np.add.reduce(np.arange(10).reshape(2,5))
|
| 71 |
+
array([ 5, 7, 9, 11, 13])
|
| 72 |
+
|
| 73 |
+
The axis keyword can be used to specify different axes to reduce: ::
|
| 74 |
+
|
| 75 |
+
>>> np.add.reduce(np.arange(10).reshape(2,5),axis=1)
|
| 76 |
+
array([10, 35])
|
| 77 |
+
|
| 78 |
+
**.accumulate(arr)** applies the binary operator and generates an
|
| 79 |
+
equivalently shaped array that includes the accumulated amount for each
|
| 80 |
+
element of the array. A couple examples: ::
|
| 81 |
+
|
| 82 |
+
>>> np.add.accumulate(np.arange(10))
|
| 83 |
+
array([ 0, 1, 3, 6, 10, 15, 21, 28, 36, 45])
|
| 84 |
+
>>> np.multiply.accumulate(np.arange(1,9))
|
| 85 |
+
array([ 1, 2, 6, 24, 120, 720, 5040, 40320])
|
| 86 |
+
|
| 87 |
+
The behavior for multidimensional arrays is the same as for .reduce(),
|
| 88 |
+
as is the use of the axis keyword).
|
| 89 |
+
|
| 90 |
+
**.reduceat(arr,indices)** allows one to apply reduce to selected parts
|
| 91 |
+
of an array. It is a difficult method to understand. See the documentation
|
| 92 |
+
at:
|
| 93 |
+
|
| 94 |
+
**.outer(arr1,arr2)** generates an outer operation on the two arrays arr1 and
|
| 95 |
+
arr2. It will work on multidimensional arrays (the shape of the result is
|
| 96 |
+
the concatenation of the two input shapes.: ::
|
| 97 |
+
|
| 98 |
+
>>> np.multiply.outer(np.arange(3),np.arange(4))
|
| 99 |
+
array([[0, 0, 0, 0],
|
| 100 |
+
[0, 1, 2, 3],
|
| 101 |
+
[0, 2, 4, 6]])
|
| 102 |
+
|
| 103 |
+
Output arguments
|
| 104 |
+
================
|
| 105 |
+
|
| 106 |
+
All ufuncs accept an optional output array. The array must be of the expected
|
| 107 |
+
output shape. Beware that if the type of the output array is of a different
|
| 108 |
+
(and lower) type than the output result, the results may be silently truncated
|
| 109 |
+
or otherwise corrupted in the downcast to the lower type. This usage is useful
|
| 110 |
+
when one wants to avoid creating large temporary arrays and instead allows one
|
| 111 |
+
to reuse the same array memory repeatedly (at the expense of not being able to
|
| 112 |
+
use more convenient operator notation in expressions). Note that when the
|
| 113 |
+
output argument is used, the ufunc still returns a reference to the result.
|
| 114 |
+
|
| 115 |
+
>>> x = np.arange(2)
|
| 116 |
+
>>> np.add(np.arange(2, dtype=float), np.arange(2, dtype=float), x,
|
| 117 |
+
... casting='unsafe')
|
| 118 |
+
array([0, 2])
|
| 119 |
+
>>> x
|
| 120 |
+
array([0, 2])
|
| 121 |
+
|
| 122 |
+
and & or as ufuncs
|
| 123 |
+
==================
|
| 124 |
+
|
| 125 |
+
Invariably people try to use the python 'and' and 'or' as logical operators
|
| 126 |
+
(and quite understandably). But these operators do not behave as normal
|
| 127 |
+
operators since Python treats these quite differently. They cannot be
|
| 128 |
+
overloaded with array equivalents. Thus using 'and' or 'or' with an array
|
| 129 |
+
results in an error. There are two alternatives:
|
| 130 |
+
|
| 131 |
+
1) use the ufunc functions logical_and() and logical_or().
|
| 132 |
+
2) use the bitwise operators & and \\|. The drawback of these is that if
|
| 133 |
+
the arguments to these operators are not boolean arrays, the result is
|
| 134 |
+
likely incorrect. On the other hand, most usages of logical_and and
|
| 135 |
+
logical_or are with boolean arrays. As long as one is careful, this is
|
| 136 |
+
a convenient way to apply these operators.
|
| 137 |
+
|
| 138 |
+
"""
|
python/user_packages/Python313/site-packages/numpy/f2py/__init__.py
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Fortran to Python Interface Generator.
|
| 2 |
+
|
| 3 |
+
Copyright 1999 -- 2011 Pearu Peterson all rights reserved.
|
| 4 |
+
Copyright 2011 -- present NumPy Developers.
|
| 5 |
+
Permission to use, modify, and distribute this software is given under the terms
|
| 6 |
+
of the NumPy License.
|
| 7 |
+
|
| 8 |
+
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
|
| 9 |
+
"""
|
| 10 |
+
__all__ = ['run_main', 'get_include']
|
| 11 |
+
|
| 12 |
+
import os
|
| 13 |
+
import subprocess
|
| 14 |
+
import sys
|
| 15 |
+
import warnings
|
| 16 |
+
|
| 17 |
+
from numpy.exceptions import VisibleDeprecationWarning
|
| 18 |
+
|
| 19 |
+
from . import diagnose, f2py2e
|
| 20 |
+
|
| 21 |
+
run_main = f2py2e.run_main
|
| 22 |
+
main = f2py2e.main
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def get_include():
|
| 26 |
+
"""
|
| 27 |
+
Return the directory that contains the ``fortranobject.c`` and ``.h`` files.
|
| 28 |
+
|
| 29 |
+
.. note::
|
| 30 |
+
|
| 31 |
+
This function is not needed when building an extension with
|
| 32 |
+
`numpy.distutils` directly from ``.f`` and/or ``.pyf`` files
|
| 33 |
+
in one go.
|
| 34 |
+
|
| 35 |
+
Python extension modules built with f2py-generated code need to use
|
| 36 |
+
``fortranobject.c`` as a source file, and include the ``fortranobject.h``
|
| 37 |
+
header. This function can be used to obtain the directory containing
|
| 38 |
+
both of these files.
|
| 39 |
+
|
| 40 |
+
Returns
|
| 41 |
+
-------
|
| 42 |
+
include_path : str
|
| 43 |
+
Absolute path to the directory containing ``fortranobject.c`` and
|
| 44 |
+
``fortranobject.h``.
|
| 45 |
+
|
| 46 |
+
Notes
|
| 47 |
+
-----
|
| 48 |
+
.. versionadded:: 1.21.1
|
| 49 |
+
|
| 50 |
+
Unless the build system you are using has specific support for f2py,
|
| 51 |
+
building a Python extension using a ``.pyf`` signature file is a two-step
|
| 52 |
+
process. For a module ``mymod``:
|
| 53 |
+
|
| 54 |
+
* Step 1: run ``python -m numpy.f2py mymod.pyf --quiet``. This
|
| 55 |
+
generates ``mymodmodule.c`` and (if needed)
|
| 56 |
+
``mymod-f2pywrappers.f`` files next to ``mymod.pyf``.
|
| 57 |
+
* Step 2: build your Python extension module. This requires the
|
| 58 |
+
following source files:
|
| 59 |
+
|
| 60 |
+
* ``mymodmodule.c``
|
| 61 |
+
* ``mymod-f2pywrappers.f`` (if it was generated in Step 1)
|
| 62 |
+
* ``fortranobject.c``
|
| 63 |
+
|
| 64 |
+
See Also
|
| 65 |
+
--------
|
| 66 |
+
numpy.get_include : function that returns the numpy include directory
|
| 67 |
+
|
| 68 |
+
"""
|
| 69 |
+
return os.path.join(os.path.dirname(__file__), 'src')
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def __getattr__(attr):
|
| 73 |
+
|
| 74 |
+
# Avoid importing things that aren't needed for building
|
| 75 |
+
# which might import the main numpy module
|
| 76 |
+
if attr == "test":
|
| 77 |
+
from numpy._pytesttester import PytestTester
|
| 78 |
+
test = PytestTester(__name__)
|
| 79 |
+
return test
|
| 80 |
+
|
| 81 |
+
else:
|
| 82 |
+
raise AttributeError(f"module {__name__!r} has no attribute {attr!r}")
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def __dir__():
|
| 86 |
+
return list(globals().keys() | {"test"})
|
python/user_packages/Python313/site-packages/numpy/f2py/__init__.pyi
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .f2py2e import main as main, run_main
|
| 2 |
+
|
| 3 |
+
__all__ = ["get_include", "run_main"]
|
| 4 |
+
|
| 5 |
+
def get_include() -> str: ...
|
python/user_packages/Python313/site-packages/numpy/f2py/__main__.py
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# See:
|
| 2 |
+
# https://web.archive.org/web/20140822061353/http://cens.ioc.ee/projects/f2py2e
|
| 3 |
+
from numpy.f2py.f2py2e import main
|
| 4 |
+
|
| 5 |
+
main()
|