auto-sync 2026-07-02T13:37:00Z workspace (part 10)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/INSTALLERAdded+1
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/METADATAAdded+139
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/RECORDAdded
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/WHEELAdded+5
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/entry_points.txtAdded+13
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/LICENSE.txtAdded+30
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/include/numpy/libdivide/LICENSE.txtAdded+21
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/common/pythoncapi-compat/COPYINGAdded+14
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/highway/LICENSEAdded+371
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/multiarray/dragon4_LICENSE.txtAdded+27
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/npysort/x86-simd-sort/LICENSE.mdAdded+28
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/umath/svml/LICENSEAdded+30
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/fft/pocketfft/LICENSE.mdAdded+25
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/linalg/lapack_lite/LICENSE.txtAdded+48
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/ma/LICENSEAdded+24
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/LICENSE.mdAdded+71
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/distributions/LICENSE.mdAdded+61
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/mt19937/LICENSE.mdAdded+61
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/pcg64/LICENSE.mdAdded+22
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/philox/LICENSE.mdAdded+31
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/sfc64/LICENSE.mdAdded+27
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/splitmix64/LICENSE.mdAdded+9
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/nditer.pyAdded+4
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/numeric.pyAdded+90
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/numerictypes.pyAdded+17
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/random.pyAdded+1498
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/recfunctions.pyAdded+164
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/scalars.pyAdded+249
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/shape.pyAdded+19
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/simple.pyAdded+170
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/ufunc_config.pyAdded+64
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/ufunclike.pyAdded+52
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/ufuncs.pyAdded+16
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/warnings_and_errors.pyAdded+6
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arithmetic.pyiAdded+719
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/array_api_info.pyiAdded+70
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/array_constructors.pyiAdded+279
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arraypad.pyiAdded+27
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arrayprint.pyiAdded+25
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arraysetops.pyiAdded+74
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arrayterator.pyiAdded+27
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/bitwise_ops.pyiAdded+166
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/char.pyiAdded+225
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/chararray.pyiAdded+138
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/comparisons.pyiAdded+264
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/constants.pyiAdded+14
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/ctypeslib.pyiAdded+81
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/datasource.pyiAdded+23
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/dtype.pyiAdded+132
- workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/einsumfunc.pyiAdded+39
1pip123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139Metadata-Version: 2.2Name: numpyVersion: 2.4.2+computecanadaSummary: Fundamental package for array computing in PythonDescription-Content-Type: text/markdownClassifier: Development Status :: 5 - Production/StableClassifier: Intended Audience :: Science/ResearchClassifier: Intended Audience :: DevelopersClassifier: Programming Language :: CClassifier: Programming Language :: PythonClassifier: Programming Language :: Python :: 3Classifier: Programming Language :: Python :: 3.11Classifier: Programming Language :: Python :: 3.12Classifier: Programming Language :: Python :: 3.13Classifier: Programming Language :: Python :: 3.14Classifier: Programming Language :: Python :: 3 :: OnlyClassifier: Programming Language :: Python :: Implementation :: CPythonClassifier: Topic :: Software DevelopmentClassifier: Topic :: Scientific/EngineeringClassifier: Typing :: TypedClassifier: Operating System :: Microsoft :: WindowsClassifier: Operating System :: POSIXClassifier: Operating System :: UnixClassifier: Operating System :: MacOSAuthor: Travis E. Oliphant et al.Maintainer-email: NumPy Developers <numpy-discussion@python.org>Project-URL: homepage, https://numpy.orgProject-URL: documentation, https://numpy.org/doc/Project-URL: source, https://github.com/numpy/numpyProject-URL: download, https://pypi.org/project/numpy/#filesProject-URL: tracker, https://github.com/numpy/numpy/issuesProject-URL: release notes, https://numpy.org/doc/stable/releaseRequires-Python: >=3.11License-File: LICENSE.txtLicense-File: numpy/_core/include/numpy/libdivide/LICENSE.txtLicense-File: numpy/_core/src/common/pythoncapi-compat/COPYINGLicense-File: numpy/_core/src/highway/LICENSELicense-File: numpy/_core/src/multiarray/dragon4_LICENSE.txtLicense-File: numpy/_core/src/npysort/x86-simd-sort/LICENSE.mdLicense-File: numpy/_core/src/umath/svml/LICENSELicense-File: numpy/fft/pocketfft/LICENSE.mdLicense-File: numpy/linalg/lapack_lite/LICENSE.txtLicense-File: numpy/ma/LICENSELicense-File: numpy/random/LICENSE.mdLicense-File: numpy/random/src/distributions/LICENSE.mdLicense-File: numpy/random/src/mt19937/LICENSE.mdLicense-File: numpy/random/src/pcg64/LICENSE.mdLicense-File: numpy/random/src/philox/LICENSE.mdLicense-File: numpy/random/src/sfc64/LICENSE.mdLicense-File: numpy/random/src/splitmix64/LICENSE.mdLicense-Expression: BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0
<h1 align="center"><img src="https://raw.githubusercontent.com/numpy/numpy/main/branding/logo/primary/numpylogo.svg" width="300"></h1><br>
[](https://numfocus.org)[](https://pypi.org/project/numpy/)[](https://anaconda.org/conda-forge/numpy)[](https://stackoverflow.com/questions/tagged/numpy)[](https://doi.org/10.1038/s41586-020-2649-2)[](https://insights.linuxfoundation.org/project/numpy)[](https://securityscorecards.dev/viewer/?uri=github.com/numpy/numpy)[](https://pypi.org/project/numpy/)
NumPy is the fundamental package for scientific computing with Python.
- **Website:** https://numpy.org- **Documentation:** https://numpy.org/doc- **Mailing list:** https://mail.python.org/mailman/listinfo/numpy-discussion- **Source code:** https://github.com/numpy/numpy- **Contributing:** https://numpy.org/devdocs/dev/index.html- **Bug reports:** https://github.com/numpy/numpy/issues- **Report a security vulnerability:** https://tidelift.com/docs/security
It provides:
- a powerful N-dimensional array object- sophisticated (broadcasting) functions- tools for integrating C/C++ and Fortran code- useful linear algebra, Fourier transform, and random number capabilities
Testing:
NumPy requires `pytest` and `hypothesis`. Tests can then be run after installation with:
python -c "import numpy, sys; sys.exit(numpy.test() is False)"
Code of Conduct----------------------
NumPy is a community-driven open source project developed by a diverse group of[contributors](https://numpy.org/teams/). The NumPy leadership has made a strongcommitment to creating an open, inclusive, and positive community. Please read the[NumPy Code of Conduct](https://numpy.org/code-of-conduct/) for guidance on how to interactwith others in a way that makes our community thrive.
Call for Contributions----------------------
The NumPy project welcomes your expertise and enthusiasm!
Small improvements or fixes are always appreciated. If you are considering larger contributionsto the source code, please contact us through the [mailinglist](https://mail.python.org/mailman/listinfo/numpy-discussion) first.
Writing code isn’t the only way to contribute to NumPy. You can also:- review pull requests- help us stay on top of new and old issues- develop tutorials, presentations, and other educational materials- maintain and improve [our website](https://github.com/numpy/numpy.org)- develop graphic design for our brand assets and promotional materials- translate website content- help with outreach and onboard new contributors- write grant proposals and help with other fundraising efforts
For more information about the ways you can contribute to NumPy, visit [our website](https://numpy.org/contribute/). If you’re unsure where to start or how your skills fit in, reach out! You canask on the mailing list or here, on GitHub, by opening a new issue or leaving acomment on a relevant issue that is already open.
Our preferred channels of communication are all public, but if you’d like tospeak to us in private first, contact our community coordinators atnumpy-team@googlegroups.com or on Slack (write numpy-team@googlegroups.com foran invitation).
We also have a biweekly community call, details of which are announced on themailing list. You are very welcome to join.
If you are new to contributing to open source, [thisguide](https://opensource.guide/how-to-contribute/) helps explain why, what,and how to successfully get involved.12345Wheel-Version: 1.0Generator: wheelfile 0.0.8Root-Is-Purelib: trueTag: cp311-cp311-linux_x86_64
12345678910111213[pkg_config]numpy = numpy._core.lib.pkgconfig
[array_api]numpy = numpy
[pyinstaller40]hook-dirs = numpy:_pyinstaller_hooks_dir
[console_scripts]f2py = numpy.f2py.f2py2e:mainnumpy-config = numpy._configtool:main
123456789101112131415161718192021222324252627282930Copyright (c) 2005-2025, NumPy Developers.All rights reserved.
Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions aremet:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the NumPy Developers nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.123456789101112131415161718192021 zlib License ------------
Copyright (C) 2010 - 2019 ridiculous_fish, <libdivide@ridiculousfish.com> Copyright (C) 2016 - 2019 Kim Walisch, <kim.walisch@gmail.com>
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution.1234567891011121314BSD Zero Clause License
Copyright Contributors to the pythoncapi_compat project.
Permission to use, copy, modify, and/or distribute this software for anypurpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITHREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITYAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROMLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OROTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE ORPERFORMANCE OF THIS SOFTWARE.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371This project is primarily dual-licensed under your choice of either the ApacheLicense 2.0 or the BSD 3-Clause License.
The following files are licensed under different terms:* hwy/contrib/random/random-inl.h: CC0 1.0 Universal
The full texts of all applicable licenses are included below, separated by'---'.
--------------------------------------------------------------------------------Apache License 2.0--------------------------------------------------------------------------------
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
--------------------------------------------------------------------------------BSD 3-Clause License--------------------------------------------------------------------------------
Copyright (c) The Highway Project Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLEFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ORSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVERCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------CC0 1.0 Universal--------------------------------------------------------------------------------
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
Statement of Purpose
The laws of most jurisdictions throughout the world automatically conferexclusive Copyright and Related Rights (defined below) upon the creatorand subsequent owner(s) (each and all, an "owner") of an original work ofauthorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work forthe purpose of contributing to a commons of creative, cultural andscientific works ("Commons") that the public can reliably and without fearof later claims of infringement build upon, modify, incorporate in otherworks, reuse and redistribute as freely as possible in any form whatsoeverand for any purposes, including without limitation commercial purposes.These owners may contribute to the Commons to promote the ideal of a freeculture and the further production of creative, cultural and scientificworks, or to gain reputation or greater distribution for their Work inpart through the use and efforts of others.
For these and/or other purposes and motivations, and without anyexpectation of additional consideration or compensation, the personassociating CC0 with a Work (the "Affirmer"), to the extent that he or sheis an owner of Copyright and Related Rights in the Work, voluntarilyelects to apply CC0 to the Work and publicly distribute the Work under itsterms, with knowledge of his or her Copyright and Related Rights in theWork and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may beprotected by copyright and related or neighboring rights ("Copyright andRelated Rights"). Copyright and Related Rights include, but are notlimited to, the following:
i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; ii. moral rights retained by the original author(s) and/or performer(s);iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; v. rights protecting the extraction, dissemination, use and reuse of data in a Work; vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); andvii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contraventionof, applicable law, Affirmer hereby overtly, fully, permanently,irrevocably and unconditionally waives, abandons, and surrenders all ofAffirmer's Copyright and Related Rights and associated claims and causesof action, whether now known or unknown (including existing as well asfuture claims and causes of action), in the Work (i) in all territoriesworldwide, (ii) for the maximum duration provided by applicable law ortreaty (including future time extensions), (iii) in any current or futuremedium and for any number of copies, and (iv) for any purpose whatsoever,including without limitation commercial, advertising or promotionalpurposes (the "Waiver"). Affirmer makes the Waiver for the benefit of eachmember of the public at large and to the detriment of Affirmer's heirs andsuccessors, fully intending that such Waiver shall not be subject torevocation, rescission, cancellation, termination, or any other legal orequitable action to disrupt the quiet enjoyment of the Work by the publicas contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reasonbe judged legally invalid or ineffective under applicable law, then theWaiver shall be preserved to the maximum extent permitted taking intoaccount Affirmer's express Statement of Purpose. In addition, to theextent the Waiver is so judged Affirmer hereby grants to each affectedperson a royalty-free, non transferable, non sublicensable, non exclusive,irrevocable and unconditional license to exercise Affirmer's Copyright andRelated Rights in the Work (i) in all territories worldwide, (ii) for themaximum duration provided by applicable law or treaty (including futuretime extensions), (iii) in any current or future medium and for any numberof copies, and (iv) for any purpose whatsoever, including withoutlimitation commercial, advertising or promotional purposes (the"License"). The License shall be deemed effective as of the date CC0 wasapplied by Affirmer to the Work. Should any part of the License for anyreason be judged legally invalid or ineffective under applicable law, suchpartial invalidity or ineffectiveness shall not invalidate the remainderof the License, and in such case Affirmer hereby affirms that he or shewill not (i) exercise any of his or her remaining Copyright and RelatedRights in the Work or (ii) assert any associated claims and causes ofaction with respect to the Work, in either case contrary to Affirmer'sexpress Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.123456789101112131415161718192021222324252627Copyright (c) 2014 Ryan Juckett
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), todeal in the Software without restriction, including without limitation therights to use, copy, modify, merge, publish, distribute, sublicense, and/orsell copies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISINGFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGSIN THE SOFTWARE.
dragon4.c|h h contains a modified version of Ryan Juckett's Dragon4implementation, obtained from https://www.ryanjuckett.com,which has been ported from C++ to C and which hasmodifications specific to printing floats in numpy.
Ryan Juckett's original code was under the Zlib license; he gave numpypermission to include it under the MIT license instead.12345678910111213141516171819202122232425262728BSD 3-Clause License
Copyright (c) 2022, Intel. All rights reserved.
Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLEFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ORSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVERCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.123456789101112131415161718192021222324252627282930Copyright (c) 2005-2021, NumPy Developers.All rights reserved.
Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions aremet:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the NumPy Developers nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.12345678910111213141516171819202122232425Copyright (C) 2010-2018 Max-Planck-SocietyAll rights reserved.
Redistribution and use in source and binary forms, with or without modification,are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.* Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ANDANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FORANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ONANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THISSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748Copyright (c) 1992-2013 The University of Tennessee and The University of Tennessee Research Foundation. All rights reserved.Copyright (c) 2000-2013 The University of California Berkeley. All rights reserved.Copyright (c) 2006-2013 The University of Colorado Denver. All rights reserved.
$COPYRIGHT$
Additional copyrights may follow
$HEADER$
Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions aremet:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer listed in this license in the documentation and/or other materials provided with the distribution.
- Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
The copyright holders provide no reassurances that the source codeprovided does not infringe any patent, copyright, or any otherintellectual property rights of third parties. The copyright holdersdisclaim any liability to any recipient for claims brought againstrecipient by any third party for infringement of that partiesintellectual property rights.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.123456789101112131415161718192021222324* Copyright (c) 2006, University of Georgia and Pierre G.F. Gerard-Marchant* All rights reserved.* Redistribution and use in source and binary forms, with or without* modification, are permitted provided that the following conditions are met:** * Redistributions of source code must retain the above copyright* notice, this list of conditions and the following disclaimer.* * Redistributions in binary form must reproduce the above copyright* notice, this list of conditions and the following disclaimer in the* documentation and/or other materials provided with the distribution.* * Neither the name of the University of Georgia nor the* names of its contributors may be used to endorse or promote products* derived from this software without specific prior written permission.** THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE* DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071**This software is dual-licensed under the The University of Illinois/NCSAOpen Source License (NCSA) and The 3-Clause BSD License**
# NCSA Open Source License**Copyright (c) 2019 Kevin Sheppard. All rights reserved.**
Developed by: Kevin Sheppard (<kevin.sheppard@economics.ox.ac.uk>,<kevin.k.sheppard@gmail.com>)[http://www.kevinsheppard.com](http://www.kevinsheppard.com)
Permission is hereby granted, free of charge, to any person obtaining a copy ofthis software and associated documentation files (the "Software"), to deal withthe Software without restriction, including without limitation the rights touse, copy, modify, merge, publish, distribute, sublicense, and/or sell copiesof the Software, and to permit persons to whom the Software is furnished to doso, subject to the following conditions:
Redistributions of source code must retain the above copyright notice, thislist of conditions and the following disclaimers.
Redistributions in binary form must reproduce the above copyright notice, thislist of conditions and the following disclaimers in the documentation and/orother materials provided with the distribution.
Neither the names of Kevin Sheppard, nor the names of any contributors may beused to endorse or promote products derived from this Software without specificprior written permission.
**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THECONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITHTHE SOFTWARE.**
# 3-Clause BSD License**Copyright (c) 2019 Kevin Sheppard. All rights reserved.**
Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
**THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BELIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, ORCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OFSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESSINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER INCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OFTHE POSSIBILITY OF SUCH DAMAGE.**
# Components
Many parts of this module have been derived from original sources, often the algorithm's designer. Component licenses are located with the component code.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061## NumPy
Copyright (c) 2005-2017, NumPy Developers.All rights reserved.
Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions aremet:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the NumPy Developers nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
## Julia
The ziggurat methods were derived from Julia.
Copyright (c) 2009-2019: Jeff Bezanson, Stefan Karpinski, Viral B. Shah,and other contributors:
https://github.com/JuliaLang/julia/contributors
Permission is hereby granted, free of charge, to any person obtaininga copy of this software and associated documentation files (the"Software"), to deal in the Software without restriction, includingwithout limitation the rights to use, copy, modify, merge, publish,distribute, sublicense, and/or sell copies of the Software, and topermit persons to whom the Software is furnished to do so, subject tothe following conditions:
The above copyright notice and this permission notice shall beincluded in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ANDNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BELIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTIONOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTIONWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061# MT19937
Copyright (c) 2003-2005, Jean-Sebastien Roy (js@jeannot.org)
The rk_random and rk_seed functions algorithms and the original design ofthe Mersenne Twister RNG:
Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNEROR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, ORPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OFLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDINGNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THISSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original algorithm for the implementation of rk_interval function fromRichard J. Wagner's implementation of the Mersenne Twister RNG, optimised byMagnus Jonsson.
Constants used in the rk_double implementation by Isaku Wada.
Permission is hereby granted, free of charge, to any person obtaining acopy of this software and associated documentation files (the"Software"), to deal in the Software without restriction, includingwithout limitation the rights to use, copy, modify, merge, publish,distribute, sublicense, and/or sell copies of the Software, and topermit persons to whom the Software is furnished to do so, subject tothe following conditions:
The above copyright notice and this permission notice shall be includedin all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANYCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THESOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.12345678910111213141516171819202122# PCG64
## The MIT License
PCG Random Number Generation for C.
Copyright 2014 Melissa O'Neill <oneill@pcg-random.org>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation 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:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.12345678910111213141516171819202122232425262728293031# PHILOX
Copyright 2010-2012, D. E. Shaw Research.All rights reserved.
Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions aremet:
* Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of D. E. Shaw Research nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.123456789101112131415161718192021222324252627# SFC64
## The MIT License
Adapted from a C++ implementation of Chris Doty-Humphrey's SFC PRNG.
https://gist.github.com/imneme/f1f7821f07cf76504a97f6537c818083
Copyright (c) 2018 Melissa E. O'Neill
Permission is hereby granted, free of charge, to any person obtaining acopy of this software and associated documentation files (the "Software"),to deal in the Software without restriction, including without limitationthe rights to use, copy, modify, merge, publish, distribute, sublicense,and/or sell copies of the Software, and to permit persons to whom theSoftware is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISINGFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHERDEALINGS IN THE SOFTWARE.123456789# SPLITMIX64
Written in 2015 by Sebastiano Vigna (vigna@acm.org)
To the extent possible under law, the author has dedicated all copyrightand related and neighboring rights to this software to the public domainworldwide. This software is distributed without any warranty.
See <http://creativecommons.org/publicdomain/zero/1.0/>.1234import numpy as np
arr = np.array([1])np.nditer([arr, None])123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990"""Tests for :mod:`numpy._core.numeric`.
Does not include tests which fall under ``array_constructors``."""
from typing import Any
import numpy as np
class SubClass(np.ndarray[tuple[Any, ...], np.dtype[np.float64]]): ...
i8 = np.int64(1)
A = np.arange(27).reshape(3, 3, 3)B = A.tolist()C = np.empty((27, 27)).view(SubClass)
np.count_nonzero(i8)np.count_nonzero(A)np.count_nonzero(B)np.count_nonzero(A, keepdims=True)np.count_nonzero(A, axis=0)
np.isfortran(i8)np.isfortran(A)
np.argwhere(i8)np.argwhere(A)
np.flatnonzero(i8)np.flatnonzero(A)
np.correlate(B[0][0], A.ravel(), mode="valid")np.correlate(A.ravel(), A.ravel(), mode="same")
np.convolve(B[0][0], A.ravel(), mode="valid")np.convolve(A.ravel(), A.ravel(), mode="same")
np.outer(i8, A)np.outer(B, A)np.outer(A, A)np.outer(A, A, out=C)
np.tensordot(B, A)np.tensordot(A, A)np.tensordot(A, A, axes=0)np.tensordot(A, A, axes=(0, 1))
np.isscalar(i8)np.isscalar(A)np.isscalar(B)
np.roll(A, 1)np.roll(A, (1, 2))np.roll(B, 1)
np.rollaxis(A, 0, 1)
np.moveaxis(A, 0, 1)np.moveaxis(A, (0, 1), (1, 2))
np.cross(B, A)np.cross(A, A)
np.indices([0, 1, 2])np.indices([0, 1, 2], sparse=False)np.indices([0, 1, 2], sparse=True)
np.binary_repr(1)
np.base_repr(1)
np.allclose(i8, A)np.allclose(B, A)np.allclose(A, A)
np.isclose(i8, A)np.isclose(B, A)np.isclose(A, A)
np.array_equal(i8, A)np.array_equal(B, A)np.array_equal(A, A)
np.array_equiv(i8, A)np.array_equiv(B, A)np.array_equiv(A, A)1234567891011121314151617import numpy as np
np.isdtype(np.float64, (np.int64, np.float64))np.isdtype(np.int64, "signed integer")
np.issubdtype("S1", np.bytes_)np.issubdtype(np.float64, np.float32)
np.ScalarTypenp.ScalarType[0]np.ScalarType[3]np.ScalarType[8]np.ScalarType[10]
np.typecodes["Character"]np.typecodes["Complex"]np.typecodes["All"]1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498from __future__ import annotations
from typing import Any
import numpy as np
SEED_NONE = NoneSEED_INT = 4579435749574957634658964293569SEED_ARR: np.ndarray[Any, np.dtype[np.int64]] = np.array([1, 2, 3, 4], dtype=np.int64)SEED_ARRLIKE: list[int] = [1, 2, 3, 4]SEED_SEED_SEQ: np.random.SeedSequence = np.random.SeedSequence(0)SEED_MT19937: np.random.MT19937 = np.random.MT19937(0)SEED_PCG64: np.random.PCG64 = np.random.PCG64(0)SEED_PHILOX: np.random.Philox = np.random.Philox(0)SEED_SFC64: np.random.SFC64 = np.random.SFC64(0)
# default rngnp.random.default_rng()np.random.default_rng(SEED_NONE)np.random.default_rng(SEED_INT)np.random.default_rng(SEED_ARR)np.random.default_rng(SEED_ARRLIKE)np.random.default_rng(SEED_SEED_SEQ)np.random.default_rng(SEED_MT19937)np.random.default_rng(SEED_PCG64)np.random.default_rng(SEED_PHILOX)np.random.default_rng(SEED_SFC64)
# Seed Sequencenp.random.SeedSequence(SEED_NONE)np.random.SeedSequence(SEED_INT)np.random.SeedSequence(SEED_ARR)np.random.SeedSequence(SEED_ARRLIKE)
# Bit Generatorsnp.random.MT19937(SEED_NONE)np.random.MT19937(SEED_INT)np.random.MT19937(SEED_ARR)np.random.MT19937(SEED_ARRLIKE)np.random.MT19937(SEED_SEED_SEQ)
np.random.PCG64(SEED_NONE)np.random.PCG64(SEED_INT)np.random.PCG64(SEED_ARR)np.random.PCG64(SEED_ARRLIKE)np.random.PCG64(SEED_SEED_SEQ)
np.random.Philox(SEED_NONE)np.random.Philox(SEED_INT)np.random.Philox(SEED_ARR)np.random.Philox(SEED_ARRLIKE)np.random.Philox(SEED_SEED_SEQ)
np.random.SFC64(SEED_NONE)np.random.SFC64(SEED_INT)np.random.SFC64(SEED_ARR)np.random.SFC64(SEED_ARRLIKE)np.random.SFC64(SEED_SEED_SEQ)
seed_seq: np.random.bit_generator.SeedSequence = np.random.SeedSequence(SEED_NONE)seed_seq.spawn(10)seed_seq.generate_state(3)seed_seq.generate_state(3, "u4")seed_seq.generate_state(3, "uint32")seed_seq.generate_state(3, "u8")seed_seq.generate_state(3, "uint64")seed_seq.generate_state(3, np.uint32)seed_seq.generate_state(3, np.uint64)
def_gen: np.random.Generator = np.random.default_rng()
D_arr_0p1: np.ndarray[Any, np.dtype[np.float64]] = np.array([0.1])D_arr_0p5: np.ndarray[Any, np.dtype[np.float64]] = np.array([0.5])D_arr_0p9: np.ndarray[Any, np.dtype[np.float64]] = np.array([0.9])D_arr_1p5: np.ndarray[Any, np.dtype[np.float64]] = np.array([1.5])I_arr_10: np.ndarray[Any, np.dtype[np.int_]] = np.array([10], dtype=np.int_)I_arr_20: np.ndarray[Any, np.dtype[np.int_]] = np.array([20], dtype=np.int_)D_arr_like_0p1: list[float] = [0.1]D_arr_like_0p5: list[float] = [0.5]D_arr_like_0p9: list[float] = [0.9]D_arr_like_1p5: list[float] = [1.5]I_arr_like_10: list[int] = [10]I_arr_like_20: list[int] = [20]D_2D_like: list[list[float]] = [[1, 2], [2, 3], [3, 4], [4, 5.1]]D_2D: np.ndarray[Any, np.dtype[np.float64]] = np.array(D_2D_like)
S_out: np.ndarray[Any, np.dtype[np.float32]] = np.empty(1, dtype=np.float32)D_out: np.ndarray[Any, np.dtype[np.float64]] = np.empty(1)
def_gen.standard_normal()def_gen.standard_normal(dtype=np.float32)def_gen.standard_normal(dtype="float32")def_gen.standard_normal(dtype="double")def_gen.standard_normal(dtype=np.float64)def_gen.standard_normal(size=None)def_gen.standard_normal(size=1)def_gen.standard_normal(size=1, dtype=np.float32)def_gen.standard_normal(size=1, dtype="f4")def_gen.standard_normal(size=1, dtype="float32", out=S_out)def_gen.standard_normal(dtype=np.float32, out=S_out)def_gen.standard_normal(size=1, dtype=np.float64)def_gen.standard_normal(size=1, dtype="float64")def_gen.standard_normal(size=1, dtype="f8")def_gen.standard_normal(out=D_out)def_gen.standard_normal(size=1, dtype="float64")def_gen.standard_normal(size=1, dtype="float64", out=D_out)
def_gen.random()def_gen.random(dtype=np.float32)def_gen.random(dtype="float32")def_gen.random(dtype="double")def_gen.random(dtype=np.float64)def_gen.random(size=None)def_gen.random(size=1)def_gen.random(size=1, dtype=np.float32)def_gen.random(size=1, dtype="f4")def_gen.random(size=1, dtype="float32", out=S_out)def_gen.random(dtype=np.float32, out=S_out)def_gen.random(size=1, dtype=np.float64)def_gen.random(size=1, dtype="float64")def_gen.random(size=1, dtype="f8")def_gen.random(out=D_out)def_gen.random(size=1, dtype="float64")def_gen.random(size=1, dtype="float64", out=D_out)
def_gen.standard_cauchy()def_gen.standard_cauchy(size=None)def_gen.standard_cauchy(size=1)
def_gen.standard_exponential()def_gen.standard_exponential(method="inv")def_gen.standard_exponential(dtype=np.float32)def_gen.standard_exponential(dtype="float32")def_gen.standard_exponential(dtype="double")def_gen.standard_exponential(dtype=np.float64)def_gen.standard_exponential(size=None)def_gen.standard_exponential(size=None, method="inv")def_gen.standard_exponential(size=1, method="inv")def_gen.standard_exponential(size=1, dtype=np.float32)def_gen.standard_exponential(size=1, dtype="f4", method="inv")def_gen.standard_exponential(size=1, dtype="float32", out=S_out)def_gen.standard_exponential(dtype=np.float32, out=S_out)def_gen.standard_exponential(size=1, dtype=np.float64, method="inv")def_gen.standard_exponential(size=1, dtype="float64")def_gen.standard_exponential(size=1, dtype="f8")def_gen.standard_exponential(out=D_out)def_gen.standard_exponential(size=1, dtype="float64")def_gen.standard_exponential(size=1, dtype="float64", out=D_out)
def_gen.zipf(1.5)def_gen.zipf(1.5, size=None)def_gen.zipf(1.5, size=1)def_gen.zipf(D_arr_1p5)def_gen.zipf(D_arr_1p5, size=1)def_gen.zipf(D_arr_like_1p5)def_gen.zipf(D_arr_like_1p5, size=1)
def_gen.weibull(0.5)def_gen.weibull(0.5, size=None)def_gen.weibull(0.5, size=1)def_gen.weibull(D_arr_0p5)def_gen.weibull(D_arr_0p5, size=1)def_gen.weibull(D_arr_like_0p5)def_gen.weibull(D_arr_like_0p5, size=1)
def_gen.standard_t(0.5)def_gen.standard_t(0.5, size=None)def_gen.standard_t(0.5, size=1)def_gen.standard_t(D_arr_0p5)def_gen.standard_t(D_arr_0p5, size=1)def_gen.standard_t(D_arr_like_0p5)def_gen.standard_t(D_arr_like_0p5, size=1)
def_gen.poisson(0.5)def_gen.poisson(0.5, size=None)def_gen.poisson(0.5, size=1)def_gen.poisson(D_arr_0p5)def_gen.poisson(D_arr_0p5, size=1)def_gen.poisson(D_arr_like_0p5)def_gen.poisson(D_arr_like_0p5, size=1)
def_gen.power(0.5)def_gen.power(0.5, size=None)def_gen.power(0.5, size=1)def_gen.power(D_arr_0p5)def_gen.power(D_arr_0p5, size=1)def_gen.power(D_arr_like_0p5)def_gen.power(D_arr_like_0p5, size=1)
def_gen.pareto(0.5)def_gen.pareto(0.5, size=None)def_gen.pareto(0.5, size=1)def_gen.pareto(D_arr_0p5)def_gen.pareto(D_arr_0p5, size=1)def_gen.pareto(D_arr_like_0p5)def_gen.pareto(D_arr_like_0p5, size=1)
def_gen.chisquare(0.5)def_gen.chisquare(0.5, size=None)def_gen.chisquare(0.5, size=1)def_gen.chisquare(D_arr_0p5)def_gen.chisquare(D_arr_0p5, size=1)def_gen.chisquare(D_arr_like_0p5)def_gen.chisquare(D_arr_like_0p5, size=1)
def_gen.exponential(0.5)def_gen.exponential(0.5, size=None)def_gen.exponential(0.5, size=1)def_gen.exponential(D_arr_0p5)def_gen.exponential(D_arr_0p5, size=1)def_gen.exponential(D_arr_like_0p5)def_gen.exponential(D_arr_like_0p5, size=1)
def_gen.geometric(0.5)def_gen.geometric(0.5, size=None)def_gen.geometric(0.5, size=1)def_gen.geometric(D_arr_0p5)def_gen.geometric(D_arr_0p5, size=1)def_gen.geometric(D_arr_like_0p5)def_gen.geometric(D_arr_like_0p5, size=1)
def_gen.logseries(0.5)def_gen.logseries(0.5, size=None)def_gen.logseries(0.5, size=1)def_gen.logseries(D_arr_0p5)def_gen.logseries(D_arr_0p5, size=1)def_gen.logseries(D_arr_like_0p5)def_gen.logseries(D_arr_like_0p5, size=1)
def_gen.rayleigh(0.5)def_gen.rayleigh(0.5, size=None)def_gen.rayleigh(0.5, size=1)def_gen.rayleigh(D_arr_0p5)def_gen.rayleigh(D_arr_0p5, size=1)def_gen.rayleigh(D_arr_like_0p5)def_gen.rayleigh(D_arr_like_0p5, size=1)
def_gen.standard_gamma(0.5)def_gen.standard_gamma(0.5, size=None)def_gen.standard_gamma(0.5, dtype="float32")def_gen.standard_gamma(0.5, size=None, dtype="float32")def_gen.standard_gamma(0.5, size=1)def_gen.standard_gamma(D_arr_0p5)def_gen.standard_gamma(D_arr_0p5, dtype="f4")def_gen.standard_gamma(0.5, size=1, dtype="float32", out=S_out)def_gen.standard_gamma(D_arr_0p5, dtype=np.float32, out=S_out)def_gen.standard_gamma(D_arr_0p5, size=1)def_gen.standard_gamma(D_arr_like_0p5)def_gen.standard_gamma(D_arr_like_0p5, size=1)def_gen.standard_gamma(0.5, out=D_out)def_gen.standard_gamma(D_arr_like_0p5, out=D_out)def_gen.standard_gamma(D_arr_like_0p5, size=1)def_gen.standard_gamma(D_arr_like_0p5, size=1, out=D_out, dtype=np.float64)
def_gen.vonmises(0.5, 0.5)def_gen.vonmises(0.5, 0.5, size=None)def_gen.vonmises(0.5, 0.5, size=1)def_gen.vonmises(D_arr_0p5, 0.5)def_gen.vonmises(0.5, D_arr_0p5)def_gen.vonmises(D_arr_0p5, 0.5, size=1)def_gen.vonmises(0.5, D_arr_0p5, size=1)def_gen.vonmises(D_arr_like_0p5, 0.5)def_gen.vonmises(0.5, D_arr_like_0p5)def_gen.vonmises(D_arr_0p5, D_arr_0p5)def_gen.vonmises(D_arr_like_0p5, D_arr_like_0p5)def_gen.vonmises(D_arr_0p5, D_arr_0p5, size=1)def_gen.vonmises(D_arr_like_0p5, D_arr_like_0p5, size=1)
def_gen.wald(0.5, 0.5)def_gen.wald(0.5, 0.5, size=None)def_gen.wald(0.5, 0.5, size=1)def_gen.wald(D_arr_0p5, 0.5)def_gen.wald(0.5, D_arr_0p5)def_gen.wald(D_arr_0p5, 0.5, size=1)def_gen.wald(0.5, D_arr_0p5, size=1)def_gen.wald(D_arr_like_0p5, 0.5)def_gen.wald(0.5, D_arr_like_0p5)def_gen.wald(D_arr_0p5, D_arr_0p5)def_gen.wald(D_arr_like_0p5, D_arr_like_0p5)def_gen.wald(D_arr_0p5, D_arr_0p5, size=1)def_gen.wald(D_arr_like_0p5, D_arr_like_0p5, size=1)
def_gen.uniform(0.5, 0.5)def_gen.uniform(0.5, 0.5, size=None)def_gen.uniform(0.5, 0.5, size=1)def_gen.uniform(D_arr_0p5, 0.5)def_gen.uniform(0.5, D_arr_0p5)def_gen.uniform(D_arr_0p5, 0.5, size=1)def_gen.uniform(0.5, D_arr_0p5, size=1)def_gen.uniform(D_arr_like_0p5, 0.5)def_gen.uniform(0.5, D_arr_like_0p5)def_gen.uniform(D_arr_0p5, D_arr_0p5)def_gen.uniform(D_arr_like_0p5, D_arr_like_0p5)def_gen.uniform(D_arr_0p5, D_arr_0p5, size=1)def_gen.uniform(D_arr_like_0p5, D_arr_like_0p5, size=1)
def_gen.beta(0.5, 0.5)def_gen.beta(0.5, 0.5, size=None)def_gen.beta(0.5, 0.5, size=1)def_gen.beta(D_arr_0p5, 0.5)def_gen.beta(0.5, D_arr_0p5)def_gen.beta(D_arr_0p5, 0.5, size=1)def_gen.beta(0.5, D_arr_0p5, size=1)def_gen.beta(D_arr_like_0p5, 0.5)def_gen.beta(0.5, D_arr_like_0p5)def_gen.beta(D_arr_0p5, D_arr_0p5)def_gen.beta(D_arr_like_0p5, D_arr_like_0p5)def_gen.beta(D_arr_0p5, D_arr_0p5, size=1)def_gen.beta(D_arr_like_0p5, D_arr_like_0p5, size=1)
def_gen.f(0.5, 0.5)def_gen.f(0.5, 0.5, size=None)def_gen.f(0.5, 0.5, size=1)def_gen.f(D_arr_0p5, 0.5)def_gen.f(0.5, D_arr_0p5)def_gen.f(D_arr_0p5, 0.5, size=1)def_gen.f(0.5, D_arr_0p5, size=1)def_gen.f(D_arr_like_0p5, 0.5)def_gen.f(0.5, D_arr_like_0p5)def_gen.f(D_arr_0p5, D_arr_0p5)def_gen.f(D_arr_like_0p5, D_arr_like_0p5)def_gen.f(D_arr_0p5, D_arr_0p5, size=1)def_gen.f(D_arr_like_0p5, D_arr_like_0p5, size=1)
def_gen.gamma(0.5, 0.5)def_gen.gamma(0.5, 0.5, size=None)def_gen.gamma(0.5, 0.5, size=1)def_gen.gamma(D_arr_0p5, 0.5)def_gen.gamma(0.5, D_arr_0p5)def_gen.gamma(D_arr_0p5, 0.5, size=1)def_gen.gamma(0.5, D_arr_0p5, size=1)def_gen.gamma(D_arr_like_0p5, 0.5)def_gen.gamma(0.5, D_arr_like_0p5)def_gen.gamma(D_arr_0p5, D_arr_0p5)def_gen.gamma(D_arr_like_0p5, D_arr_like_0p5)def_gen.gamma(D_arr_0p5, D_arr_0p5, size=1)def_gen.gamma(D_arr_like_0p5, D_arr_like_0p5, size=1)
def_gen.gumbel(0.5, 0.5)def_gen.gumbel(0.5, 0.5, size=None)def_gen.gumbel(0.5, 0.5, size=1)def_gen.gumbel(D_arr_0p5, 0.5)def_gen.gumbel(0.5, D_arr_0p5)def_gen.gumbel(D_arr_0p5, 0.5, size=1)def_gen.gumbel(0.5, D_arr_0p5, size=1)def_gen.gumbel(D_arr_like_0p5, 0.5)def_gen.gumbel(0.5, D_arr_like_0p5)def_gen.gumbel(D_arr_0p5, D_arr_0p5)def_gen.gumbel(D_arr_like_0p5, D_arr_like_0p5)def_gen.gumbel(D_arr_0p5, D_arr_0p5, size=1)def_gen.gumbel(D_arr_like_0p5, D_arr_like_0p5, size=1)
def_gen.laplace(0.5, 0.5)def_gen.laplace(0.5, 0.5, size=None)def_gen.laplace(0.5, 0.5, size=1)def_gen.laplace(D_arr_0p5, 0.5)def_gen.laplace(0.5, D_arr_0p5)def_gen.laplace(D_arr_0p5, 0.5, size=1)def_gen.laplace(0.5, D_arr_0p5, size=1)def_gen.laplace(D_arr_like_0p5, 0.5)def_gen.laplace(0.5, D_arr_like_0p5)def_gen.laplace(D_arr_0p5, D_arr_0p5)def_gen.laplace(D_arr_like_0p5, D_arr_like_0p5)def_gen.laplace(D_arr_0p5, D_arr_0p5, size=1)def_gen.laplace(D_arr_like_0p5, D_arr_like_0p5, size=1)
def_gen.logistic(0.5, 0.5)def_gen.logistic(0.5, 0.5, size=None)def_gen.logistic(0.5, 0.5, size=1)def_gen.logistic(D_arr_0p5, 0.5)def_gen.logistic(0.5, D_arr_0p5)def_gen.logistic(D_arr_0p5, 0.5, size=1)def_gen.logistic(0.5, D_arr_0p5, size=1)def_gen.logistic(D_arr_like_0p5, 0.5)def_gen.logistic(0.5, D_arr_like_0p5)def_gen.logistic(D_arr_0p5, D_arr_0p5)def_gen.logistic(D_arr_like_0p5, D_arr_like_0p5)def_gen.logistic(D_arr_0p5, D_arr_0p5, size=1)def_gen.logistic(D_arr_like_0p5, D_arr_like_0p5, size=1)
def_gen.lognormal(0.5, 0.5)def_gen.lognormal(0.5, 0.5, size=None)def_gen.lognormal(0.5, 0.5, size=1)def_gen.lognormal(D_arr_0p5, 0.5)def_gen.lognormal(0.5, D_arr_0p5)def_gen.lognormal(D_arr_0p5, 0.5, size=1)def_gen.lognormal(0.5, D_arr_0p5, size=1)def_gen.lognormal(D_arr_like_0p5, 0.5)def_gen.lognormal(0.5, D_arr_like_0p5)def_gen.lognormal(D_arr_0p5, D_arr_0p5)def_gen.lognormal(D_arr_like_0p5, D_arr_like_0p5)def_gen.lognormal(D_arr_0p5, D_arr_0p5, size=1)def_gen.lognormal(D_arr_like_0p5, D_arr_like_0p5, size=1)
def_gen.noncentral_chisquare(0.5, 0.5)def_gen.noncentral_chisquare(0.5, 0.5, size=None)def_gen.noncentral_chisquare(0.5, 0.5, size=1)def_gen.noncentral_chisquare(D_arr_0p5, 0.5)def_gen.noncentral_chisquare(0.5, D_arr_0p5)def_gen.noncentral_chisquare(D_arr_0p5, 0.5, size=1)def_gen.noncentral_chisquare(0.5, D_arr_0p5, size=1)def_gen.noncentral_chisquare(D_arr_like_0p5, 0.5)def_gen.noncentral_chisquare(0.5, D_arr_like_0p5)def_gen.noncentral_chisquare(D_arr_0p5, D_arr_0p5)def_gen.noncentral_chisquare(D_arr_like_0p5, D_arr_like_0p5)def_gen.noncentral_chisquare(D_arr_0p5, D_arr_0p5, size=1)def_gen.noncentral_chisquare(D_arr_like_0p5, D_arr_like_0p5, size=1)
def_gen.normal(0.5, 0.5)def_gen.normal(0.5, 0.5, size=None)def_gen.normal(0.5, 0.5, size=1)def_gen.normal(D_arr_0p5, 0.5)def_gen.normal(0.5, D_arr_0p5)def_gen.normal(D_arr_0p5, 0.5, size=1)def_gen.normal(0.5, D_arr_0p5, size=1)def_gen.normal(D_arr_like_0p5, 0.5)def_gen.normal(0.5, D_arr_like_0p5)def_gen.normal(D_arr_0p5, D_arr_0p5)def_gen.normal(D_arr_like_0p5, D_arr_like_0p5)def_gen.normal(D_arr_0p5, D_arr_0p5, size=1)def_gen.normal(D_arr_like_0p5, D_arr_like_0p5, size=1)
def_gen.triangular(0.1, 0.5, 0.9)def_gen.triangular(0.1, 0.5, 0.9, size=None)def_gen.triangular(0.1, 0.5, 0.9, size=1)def_gen.triangular(D_arr_0p1, 0.5, 0.9)def_gen.triangular(0.1, D_arr_0p5, 0.9)def_gen.triangular(D_arr_0p1, 0.5, D_arr_like_0p9, size=1)def_gen.triangular(0.1, D_arr_0p5, 0.9, size=1)def_gen.triangular(D_arr_like_0p1, 0.5, D_arr_0p9)def_gen.triangular(0.5, D_arr_like_0p5, 0.9)def_gen.triangular(D_arr_0p1, D_arr_0p5, 0.9)def_gen.triangular(D_arr_like_0p1, D_arr_like_0p5, 0.9)def_gen.triangular(D_arr_0p1, D_arr_0p5, D_arr_0p9, size=1)def_gen.triangular(D_arr_like_0p1, D_arr_like_0p5, D_arr_like_0p9, size=1)
def_gen.noncentral_f(0.1, 0.5, 0.9)def_gen.noncentral_f(0.1, 0.5, 0.9, size=None)def_gen.noncentral_f(0.1, 0.5, 0.9, size=1)def_gen.noncentral_f(D_arr_0p1, 0.5, 0.9)def_gen.noncentral_f(0.1, D_arr_0p5, 0.9)def_gen.noncentral_f(D_arr_0p1, 0.5, D_arr_like_0p9, size=1)def_gen.noncentral_f(0.1, D_arr_0p5, 0.9, size=1)def_gen.noncentral_f(D_arr_like_0p1, 0.5, D_arr_0p9)def_gen.noncentral_f(0.5, D_arr_like_0p5, 0.9)def_gen.noncentral_f(D_arr_0p1, D_arr_0p5, 0.9)def_gen.noncentral_f(D_arr_like_0p1, D_arr_like_0p5, 0.9)def_gen.noncentral_f(D_arr_0p1, D_arr_0p5, D_arr_0p9, size=1)def_gen.noncentral_f(D_arr_like_0p1, D_arr_like_0p5, D_arr_like_0p9, size=1)
def_gen.binomial(10, 0.5)def_gen.binomial(10, 0.5, size=None)def_gen.binomial(10, 0.5, size=1)def_gen.binomial(I_arr_10, 0.5)def_gen.binomial(10, D_arr_0p5)def_gen.binomial(I_arr_10, 0.5, size=1)def_gen.binomial(10, D_arr_0p5, size=1)def_gen.binomial(I_arr_like_10, 0.5)def_gen.binomial(10, D_arr_like_0p5)def_gen.binomial(I_arr_10, D_arr_0p5)def_gen.binomial(I_arr_like_10, D_arr_like_0p5)def_gen.binomial(I_arr_10, D_arr_0p5, size=1)def_gen.binomial(I_arr_like_10, D_arr_like_0p5, size=1)
def_gen.negative_binomial(10, 0.5)def_gen.negative_binomial(10, 0.5, size=None)def_gen.negative_binomial(10, 0.5, size=1)def_gen.negative_binomial(I_arr_10, 0.5)def_gen.negative_binomial(10, D_arr_0p5)def_gen.negative_binomial(I_arr_10, 0.5, size=1)def_gen.negative_binomial(10, D_arr_0p5, size=1)def_gen.negative_binomial(I_arr_like_10, 0.5)def_gen.negative_binomial(10, D_arr_like_0p5)def_gen.negative_binomial(I_arr_10, D_arr_0p5)def_gen.negative_binomial(I_arr_like_10, D_arr_like_0p5)def_gen.negative_binomial(I_arr_10, D_arr_0p5, size=1)def_gen.negative_binomial(I_arr_like_10, D_arr_like_0p5, size=1)
def_gen.hypergeometric(20, 20, 10)def_gen.hypergeometric(20, 20, 10, size=None)def_gen.hypergeometric(20, 20, 10, size=1)def_gen.hypergeometric(I_arr_20, 20, 10)def_gen.hypergeometric(20, I_arr_20, 10)def_gen.hypergeometric(I_arr_20, 20, I_arr_like_10, size=1)def_gen.hypergeometric(20, I_arr_20, 10, size=1)def_gen.hypergeometric(I_arr_like_20, 20, I_arr_10)def_gen.hypergeometric(20, I_arr_like_20, 10)def_gen.hypergeometric(I_arr_20, I_arr_20, 10)def_gen.hypergeometric(I_arr_like_20, I_arr_like_20, 10)def_gen.hypergeometric(I_arr_20, I_arr_20, I_arr_10, size=1)def_gen.hypergeometric(I_arr_like_20, I_arr_like_20, I_arr_like_10, size=1)
I_int64_100: np.ndarray[Any, np.dtype[np.int64]] = np.array([100], dtype=np.int64)
def_gen.integers(0, 100)def_gen.integers(100)def_gen.integers([100])def_gen.integers(0, [100])
I_bool_low: np.ndarray[Any, np.dtype[np.bool]] = np.array([0], dtype=np.bool)I_bool_low_like: list[int] = [0]I_bool_high_open: np.ndarray[Any, np.dtype[np.bool]] = np.array([1], dtype=np.bool)I_bool_high_closed: np.ndarray[Any, np.dtype[np.bool]] = np.array([1], dtype=np.bool)
def_gen.integers(2, dtype=bool)def_gen.integers(0, 2, dtype=bool)def_gen.integers(1, dtype=bool, endpoint=True)def_gen.integers(0, 1, dtype=bool, endpoint=True)def_gen.integers(I_bool_low_like, 1, dtype=bool, endpoint=True)def_gen.integers(I_bool_high_open, dtype=bool)def_gen.integers(I_bool_low, I_bool_high_open, dtype=bool)def_gen.integers(0, I_bool_high_open, dtype=bool)def_gen.integers(I_bool_high_closed, dtype=bool, endpoint=True)def_gen.integers(I_bool_low, I_bool_high_closed, dtype=bool, endpoint=True)def_gen.integers(0, I_bool_high_closed, dtype=bool, endpoint=True)
def_gen.integers(2, dtype=np.bool)def_gen.integers(0, 2, dtype=np.bool)def_gen.integers(1, dtype=np.bool, endpoint=True)def_gen.integers(0, 1, dtype=np.bool, endpoint=True)def_gen.integers(I_bool_low_like, 1, dtype=np.bool, endpoint=True)def_gen.integers(I_bool_high_open, dtype=np.bool)def_gen.integers(I_bool_low, I_bool_high_open, dtype=np.bool)def_gen.integers(0, I_bool_high_open, dtype=np.bool)def_gen.integers(I_bool_high_closed, dtype=np.bool, endpoint=True)def_gen.integers(I_bool_low, I_bool_high_closed, dtype=np.bool, endpoint=True)def_gen.integers(0, I_bool_high_closed, dtype=np.bool, endpoint=True)
I_u1_low: np.ndarray[Any, np.dtype[np.uint8]] = np.array([0], dtype=np.uint8)I_u1_low_like: list[int] = [0]I_u1_high_open: np.ndarray[Any, np.dtype[np.uint8]] = np.array([255], dtype=np.uint8)I_u1_high_closed: np.ndarray[Any, np.dtype[np.uint8]] = np.array([255], dtype=np.uint8)
def_gen.integers(256, dtype="u1")def_gen.integers(0, 256, dtype="u1")def_gen.integers(255, dtype="u1", endpoint=True)def_gen.integers(0, 255, dtype="u1", endpoint=True)def_gen.integers(I_u1_low_like, 255, dtype="u1", endpoint=True)def_gen.integers(I_u1_high_open, dtype="u1")def_gen.integers(I_u1_low, I_u1_high_open, dtype="u1")def_gen.integers(0, I_u1_high_open, dtype="u1")def_gen.integers(I_u1_high_closed, dtype="u1", endpoint=True)def_gen.integers(I_u1_low, I_u1_high_closed, dtype="u1", endpoint=True)def_gen.integers(0, I_u1_high_closed, dtype="u1", endpoint=True)
def_gen.integers(256, dtype="uint8")def_gen.integers(0, 256, dtype="uint8")def_gen.integers(255, dtype="uint8", endpoint=True)def_gen.integers(0, 255, dtype="uint8", endpoint=True)def_gen.integers(I_u1_low_like, 255, dtype="uint8", endpoint=True)def_gen.integers(I_u1_high_open, dtype="uint8")def_gen.integers(I_u1_low, I_u1_high_open, dtype="uint8")def_gen.integers(0, I_u1_high_open, dtype="uint8")def_gen.integers(I_u1_high_closed, dtype="uint8", endpoint=True)def_gen.integers(I_u1_low, I_u1_high_closed, dtype="uint8", endpoint=True)def_gen.integers(0, I_u1_high_closed, dtype="uint8", endpoint=True)
def_gen.integers(256, dtype=np.uint8)def_gen.integers(0, 256, dtype=np.uint8)def_gen.integers(255, dtype=np.uint8, endpoint=True)def_gen.integers(0, 255, dtype=np.uint8, endpoint=True)def_gen.integers(I_u1_low_like, 255, dtype=np.uint8, endpoint=True)def_gen.integers(I_u1_high_open, dtype=np.uint8)def_gen.integers(I_u1_low, I_u1_high_open, dtype=np.uint8)def_gen.integers(0, I_u1_high_open, dtype=np.uint8)def_gen.integers(I_u1_high_closed, dtype=np.uint8, endpoint=True)def_gen.integers(I_u1_low, I_u1_high_closed, dtype=np.uint8, endpoint=True)def_gen.integers(0, I_u1_high_closed, dtype=np.uint8, endpoint=True)
I_u2_low: np.ndarray[Any, np.dtype[np.uint16]] = np.array([0], dtype=np.uint16)I_u2_low_like: list[int] = [0]I_u2_high_open: np.ndarray[Any, np.dtype[np.uint16]] = np.array([65535], dtype=np.uint16)I_u2_high_closed: np.ndarray[Any, np.dtype[np.uint16]] = np.array([65535], dtype=np.uint16)
def_gen.integers(65536, dtype="u2")def_gen.integers(0, 65536, dtype="u2")def_gen.integers(65535, dtype="u2", endpoint=True)def_gen.integers(0, 65535, dtype="u2", endpoint=True)def_gen.integers(I_u2_low_like, 65535, dtype="u2", endpoint=True)def_gen.integers(I_u2_high_open, dtype="u2")def_gen.integers(I_u2_low, I_u2_high_open, dtype="u2")def_gen.integers(0, I_u2_high_open, dtype="u2")def_gen.integers(I_u2_high_closed, dtype="u2", endpoint=True)def_gen.integers(I_u2_low, I_u2_high_closed, dtype="u2", endpoint=True)def_gen.integers(0, I_u2_high_closed, dtype="u2", endpoint=True)
def_gen.integers(65536, dtype="uint16")def_gen.integers(0, 65536, dtype="uint16")def_gen.integers(65535, dtype="uint16", endpoint=True)def_gen.integers(0, 65535, dtype="uint16", endpoint=True)def_gen.integers(I_u2_low_like, 65535, dtype="uint16", endpoint=True)def_gen.integers(I_u2_high_open, dtype="uint16")def_gen.integers(I_u2_low, I_u2_high_open, dtype="uint16")def_gen.integers(0, I_u2_high_open, dtype="uint16")def_gen.integers(I_u2_high_closed, dtype="uint16", endpoint=True)def_gen.integers(I_u2_low, I_u2_high_closed, dtype="uint16", endpoint=True)def_gen.integers(0, I_u2_high_closed, dtype="uint16", endpoint=True)
def_gen.integers(65536, dtype=np.uint16)def_gen.integers(0, 65536, dtype=np.uint16)def_gen.integers(65535, dtype=np.uint16, endpoint=True)def_gen.integers(0, 65535, dtype=np.uint16, endpoint=True)def_gen.integers(I_u2_low_like, 65535, dtype=np.uint16, endpoint=True)def_gen.integers(I_u2_high_open, dtype=np.uint16)def_gen.integers(I_u2_low, I_u2_high_open, dtype=np.uint16)def_gen.integers(0, I_u2_high_open, dtype=np.uint16)def_gen.integers(I_u2_high_closed, dtype=np.uint16, endpoint=True)def_gen.integers(I_u2_low, I_u2_high_closed, dtype=np.uint16, endpoint=True)def_gen.integers(0, I_u2_high_closed, dtype=np.uint16, endpoint=True)
I_u4_low: np.ndarray[Any, np.dtype[np.uint32]] = np.array([0], dtype=np.uint32)I_u4_low_like: list[int] = [0]I_u4_high_open: np.ndarray[Any, np.dtype[np.uint32]] = np.array([4294967295], dtype=np.uint32)I_u4_high_closed: np.ndarray[Any, np.dtype[np.uint32]] = np.array([4294967295], dtype=np.uint32)
def_gen.integers(4294967296, dtype="u4")def_gen.integers(0, 4294967296, dtype="u4")def_gen.integers(4294967295, dtype="u4", endpoint=True)def_gen.integers(0, 4294967295, dtype="u4", endpoint=True)def_gen.integers(I_u4_low_like, 4294967295, dtype="u4", endpoint=True)def_gen.integers(I_u4_high_open, dtype="u4")def_gen.integers(I_u4_low, I_u4_high_open, dtype="u4")def_gen.integers(0, I_u4_high_open, dtype="u4")def_gen.integers(I_u4_high_closed, dtype="u4", endpoint=True)def_gen.integers(I_u4_low, I_u4_high_closed, dtype="u4", endpoint=True)def_gen.integers(0, I_u4_high_closed, dtype="u4", endpoint=True)
def_gen.integers(4294967296, dtype="uint32")def_gen.integers(0, 4294967296, dtype="uint32")def_gen.integers(4294967295, dtype="uint32", endpoint=True)def_gen.integers(0, 4294967295, dtype="uint32", endpoint=True)def_gen.integers(I_u4_low_like, 4294967295, dtype="uint32", endpoint=True)def_gen.integers(I_u4_high_open, dtype="uint32")def_gen.integers(I_u4_low, I_u4_high_open, dtype="uint32")def_gen.integers(0, I_u4_high_open, dtype="uint32")def_gen.integers(I_u4_high_closed, dtype="uint32", endpoint=True)def_gen.integers(I_u4_low, I_u4_high_closed, dtype="uint32", endpoint=True)def_gen.integers(0, I_u4_high_closed, dtype="uint32", endpoint=True)
def_gen.integers(4294967296, dtype=np.uint32)def_gen.integers(0, 4294967296, dtype=np.uint32)def_gen.integers(4294967295, dtype=np.uint32, endpoint=True)def_gen.integers(0, 4294967295, dtype=np.uint32, endpoint=True)def_gen.integers(I_u4_low_like, 4294967295, dtype=np.uint32, endpoint=True)def_gen.integers(I_u4_high_open, dtype=np.uint32)def_gen.integers(I_u4_low, I_u4_high_open, dtype=np.uint32)def_gen.integers(0, I_u4_high_open, dtype=np.uint32)def_gen.integers(I_u4_high_closed, dtype=np.uint32, endpoint=True)def_gen.integers(I_u4_low, I_u4_high_closed, dtype=np.uint32, endpoint=True)def_gen.integers(0, I_u4_high_closed, dtype=np.uint32, endpoint=True)
I_u8_low: np.ndarray[Any, np.dtype[np.uint64]] = np.array([0], dtype=np.uint64)I_u8_low_like: list[int] = [0]I_u8_high_open: np.ndarray[Any, np.dtype[np.uint64]] = np.array([18446744073709551615], dtype=np.uint64)I_u8_high_closed: np.ndarray[Any, np.dtype[np.uint64]] = np.array([18446744073709551615], dtype=np.uint64)
def_gen.integers(18446744073709551616, dtype="u8")def_gen.integers(0, 18446744073709551616, dtype="u8")def_gen.integers(18446744073709551615, dtype="u8", endpoint=True)def_gen.integers(0, 18446744073709551615, dtype="u8", endpoint=True)def_gen.integers(I_u8_low_like, 18446744073709551615, dtype="u8", endpoint=True)def_gen.integers(I_u8_high_open, dtype="u8")def_gen.integers(I_u8_low, I_u8_high_open, dtype="u8")def_gen.integers(0, I_u8_high_open, dtype="u8")def_gen.integers(I_u8_high_closed, dtype="u8", endpoint=True)def_gen.integers(I_u8_low, I_u8_high_closed, dtype="u8", endpoint=True)def_gen.integers(0, I_u8_high_closed, dtype="u8", endpoint=True)
def_gen.integers(18446744073709551616, dtype="uint64")def_gen.integers(0, 18446744073709551616, dtype="uint64")def_gen.integers(18446744073709551615, dtype="uint64", endpoint=True)def_gen.integers(0, 18446744073709551615, dtype="uint64", endpoint=True)def_gen.integers(I_u8_low_like, 18446744073709551615, dtype="uint64", endpoint=True)def_gen.integers(I_u8_high_open, dtype="uint64")def_gen.integers(I_u8_low, I_u8_high_open, dtype="uint64")def_gen.integers(0, I_u8_high_open, dtype="uint64")def_gen.integers(I_u8_high_closed, dtype="uint64", endpoint=True)def_gen.integers(I_u8_low, I_u8_high_closed, dtype="uint64", endpoint=True)def_gen.integers(0, I_u8_high_closed, dtype="uint64", endpoint=True)
def_gen.integers(18446744073709551616, dtype=np.uint64)def_gen.integers(0, 18446744073709551616, dtype=np.uint64)def_gen.integers(18446744073709551615, dtype=np.uint64, endpoint=True)def_gen.integers(0, 18446744073709551615, dtype=np.uint64, endpoint=True)def_gen.integers(I_u8_low_like, 18446744073709551615, dtype=np.uint64, endpoint=True)def_gen.integers(I_u8_high_open, dtype=np.uint64)def_gen.integers(I_u8_low, I_u8_high_open, dtype=np.uint64)def_gen.integers(0, I_u8_high_open, dtype=np.uint64)def_gen.integers(I_u8_high_closed, dtype=np.uint64, endpoint=True)def_gen.integers(I_u8_low, I_u8_high_closed, dtype=np.uint64, endpoint=True)def_gen.integers(0, I_u8_high_closed, dtype=np.uint64, endpoint=True)
I_i1_low: np.ndarray[Any, np.dtype[np.int8]] = np.array([-128], dtype=np.int8)I_i1_low_like: list[int] = [-128]I_i1_high_open: np.ndarray[Any, np.dtype[np.int8]] = np.array([127], dtype=np.int8)I_i1_high_closed: np.ndarray[Any, np.dtype[np.int8]] = np.array([127], dtype=np.int8)
def_gen.integers(128, dtype="i1")def_gen.integers(-128, 128, dtype="i1")def_gen.integers(127, dtype="i1", endpoint=True)def_gen.integers(-128, 127, dtype="i1", endpoint=True)def_gen.integers(I_i1_low_like, 127, dtype="i1", endpoint=True)def_gen.integers(I_i1_high_open, dtype="i1")def_gen.integers(I_i1_low, I_i1_high_open, dtype="i1")def_gen.integers(-128, I_i1_high_open, dtype="i1")def_gen.integers(I_i1_high_closed, dtype="i1", endpoint=True)def_gen.integers(I_i1_low, I_i1_high_closed, dtype="i1", endpoint=True)def_gen.integers(-128, I_i1_high_closed, dtype="i1", endpoint=True)
def_gen.integers(128, dtype="int8")def_gen.integers(-128, 128, dtype="int8")def_gen.integers(127, dtype="int8", endpoint=True)def_gen.integers(-128, 127, dtype="int8", endpoint=True)def_gen.integers(I_i1_low_like, 127, dtype="int8", endpoint=True)def_gen.integers(I_i1_high_open, dtype="int8")def_gen.integers(I_i1_low, I_i1_high_open, dtype="int8")def_gen.integers(-128, I_i1_high_open, dtype="int8")def_gen.integers(I_i1_high_closed, dtype="int8", endpoint=True)def_gen.integers(I_i1_low, I_i1_high_closed, dtype="int8", endpoint=True)def_gen.integers(-128, I_i1_high_closed, dtype="int8", endpoint=True)
def_gen.integers(128, dtype=np.int8)def_gen.integers(-128, 128, dtype=np.int8)def_gen.integers(127, dtype=np.int8, endpoint=True)def_gen.integers(-128, 127, dtype=np.int8, endpoint=True)def_gen.integers(I_i1_low_like, 127, dtype=np.int8, endpoint=True)def_gen.integers(I_i1_high_open, dtype=np.int8)def_gen.integers(I_i1_low, I_i1_high_open, dtype=np.int8)def_gen.integers(-128, I_i1_high_open, dtype=np.int8)def_gen.integers(I_i1_high_closed, dtype=np.int8, endpoint=True)def_gen.integers(I_i1_low, I_i1_high_closed, dtype=np.int8, endpoint=True)def_gen.integers(-128, I_i1_high_closed, dtype=np.int8, endpoint=True)
I_i2_low: np.ndarray[Any, np.dtype[np.int16]] = np.array([-32768], dtype=np.int16)I_i2_low_like: list[int] = [-32768]I_i2_high_open: np.ndarray[Any, np.dtype[np.int16]] = np.array([32767], dtype=np.int16)I_i2_high_closed: np.ndarray[Any, np.dtype[np.int16]] = np.array([32767], dtype=np.int16)
def_gen.integers(32768, dtype="i2")def_gen.integers(-32768, 32768, dtype="i2")def_gen.integers(32767, dtype="i2", endpoint=True)def_gen.integers(-32768, 32767, dtype="i2", endpoint=True)def_gen.integers(I_i2_low_like, 32767, dtype="i2", endpoint=True)def_gen.integers(I_i2_high_open, dtype="i2")def_gen.integers(I_i2_low, I_i2_high_open, dtype="i2")def_gen.integers(-32768, I_i2_high_open, dtype="i2")def_gen.integers(I_i2_high_closed, dtype="i2", endpoint=True)def_gen.integers(I_i2_low, I_i2_high_closed, dtype="i2", endpoint=True)def_gen.integers(-32768, I_i2_high_closed, dtype="i2", endpoint=True)
def_gen.integers(32768, dtype="int16")def_gen.integers(-32768, 32768, dtype="int16")def_gen.integers(32767, dtype="int16", endpoint=True)def_gen.integers(-32768, 32767, dtype="int16", endpoint=True)def_gen.integers(I_i2_low_like, 32767, dtype="int16", endpoint=True)def_gen.integers(I_i2_high_open, dtype="int16")def_gen.integers(I_i2_low, I_i2_high_open, dtype="int16")def_gen.integers(-32768, I_i2_high_open, dtype="int16")def_gen.integers(I_i2_high_closed, dtype="int16", endpoint=True)def_gen.integers(I_i2_low, I_i2_high_closed, dtype="int16", endpoint=True)def_gen.integers(-32768, I_i2_high_closed, dtype="int16", endpoint=True)
def_gen.integers(32768, dtype=np.int16)def_gen.integers(-32768, 32768, dtype=np.int16)def_gen.integers(32767, dtype=np.int16, endpoint=True)def_gen.integers(-32768, 32767, dtype=np.int16, endpoint=True)def_gen.integers(I_i2_low_like, 32767, dtype=np.int16, endpoint=True)def_gen.integers(I_i2_high_open, dtype=np.int16)def_gen.integers(I_i2_low, I_i2_high_open, dtype=np.int16)def_gen.integers(-32768, I_i2_high_open, dtype=np.int16)def_gen.integers(I_i2_high_closed, dtype=np.int16, endpoint=True)def_gen.integers(I_i2_low, I_i2_high_closed, dtype=np.int16, endpoint=True)def_gen.integers(-32768, I_i2_high_closed, dtype=np.int16, endpoint=True)
I_i4_low: np.ndarray[Any, np.dtype[np.int32]] = np.array([-2147483648], dtype=np.int32)I_i4_low_like: list[int] = [-2147483648]I_i4_high_open: np.ndarray[Any, np.dtype[np.int32]] = np.array([2147483647], dtype=np.int32)I_i4_high_closed: np.ndarray[Any, np.dtype[np.int32]] = np.array([2147483647], dtype=np.int32)
def_gen.integers(2147483648, dtype="i4")def_gen.integers(-2147483648, 2147483648, dtype="i4")def_gen.integers(2147483647, dtype="i4", endpoint=True)def_gen.integers(-2147483648, 2147483647, dtype="i4", endpoint=True)def_gen.integers(I_i4_low_like, 2147483647, dtype="i4", endpoint=True)def_gen.integers(I_i4_high_open, dtype="i4")def_gen.integers(I_i4_low, I_i4_high_open, dtype="i4")def_gen.integers(-2147483648, I_i4_high_open, dtype="i4")def_gen.integers(I_i4_high_closed, dtype="i4", endpoint=True)def_gen.integers(I_i4_low, I_i4_high_closed, dtype="i4", endpoint=True)def_gen.integers(-2147483648, I_i4_high_closed, dtype="i4", endpoint=True)
def_gen.integers(2147483648, dtype="int32")def_gen.integers(-2147483648, 2147483648, dtype="int32")def_gen.integers(2147483647, dtype="int32", endpoint=True)def_gen.integers(-2147483648, 2147483647, dtype="int32", endpoint=True)def_gen.integers(I_i4_low_like, 2147483647, dtype="int32", endpoint=True)def_gen.integers(I_i4_high_open, dtype="int32")def_gen.integers(I_i4_low, I_i4_high_open, dtype="int32")def_gen.integers(-2147483648, I_i4_high_open, dtype="int32")def_gen.integers(I_i4_high_closed, dtype="int32", endpoint=True)def_gen.integers(I_i4_low, I_i4_high_closed, dtype="int32", endpoint=True)def_gen.integers(-2147483648, I_i4_high_closed, dtype="int32", endpoint=True)
def_gen.integers(2147483648, dtype=np.int32)def_gen.integers(-2147483648, 2147483648, dtype=np.int32)def_gen.integers(2147483647, dtype=np.int32, endpoint=True)def_gen.integers(-2147483648, 2147483647, dtype=np.int32, endpoint=True)def_gen.integers(I_i4_low_like, 2147483647, dtype=np.int32, endpoint=True)def_gen.integers(I_i4_high_open, dtype=np.int32)def_gen.integers(I_i4_low, I_i4_high_open, dtype=np.int32)def_gen.integers(-2147483648, I_i4_high_open, dtype=np.int32)def_gen.integers(I_i4_high_closed, dtype=np.int32, endpoint=True)def_gen.integers(I_i4_low, I_i4_high_closed, dtype=np.int32, endpoint=True)def_gen.integers(-2147483648, I_i4_high_closed, dtype=np.int32, endpoint=True)
I_i8_low: np.ndarray[Any, np.dtype[np.int64]] = np.array([-9223372036854775808], dtype=np.int64)I_i8_low_like: list[int] = [-9223372036854775808]I_i8_high_open: np.ndarray[Any, np.dtype[np.int64]] = np.array([9223372036854775807], dtype=np.int64)I_i8_high_closed: np.ndarray[Any, np.dtype[np.int64]] = np.array([9223372036854775807], dtype=np.int64)
def_gen.integers(9223372036854775808, dtype="i8")def_gen.integers(-9223372036854775808, 9223372036854775808, dtype="i8")def_gen.integers(9223372036854775807, dtype="i8", endpoint=True)def_gen.integers(-9223372036854775808, 9223372036854775807, dtype="i8", endpoint=True)def_gen.integers(I_i8_low_like, 9223372036854775807, dtype="i8", endpoint=True)def_gen.integers(I_i8_high_open, dtype="i8")def_gen.integers(I_i8_low, I_i8_high_open, dtype="i8")def_gen.integers(-9223372036854775808, I_i8_high_open, dtype="i8")def_gen.integers(I_i8_high_closed, dtype="i8", endpoint=True)def_gen.integers(I_i8_low, I_i8_high_closed, dtype="i8", endpoint=True)def_gen.integers(-9223372036854775808, I_i8_high_closed, dtype="i8", endpoint=True)
def_gen.integers(9223372036854775808, dtype="int64")def_gen.integers(-9223372036854775808, 9223372036854775808, dtype="int64")def_gen.integers(9223372036854775807, dtype="int64", endpoint=True)def_gen.integers(-9223372036854775808, 9223372036854775807, dtype="int64", endpoint=True)def_gen.integers(I_i8_low_like, 9223372036854775807, dtype="int64", endpoint=True)def_gen.integers(I_i8_high_open, dtype="int64")def_gen.integers(I_i8_low, I_i8_high_open, dtype="int64")def_gen.integers(-9223372036854775808, I_i8_high_open, dtype="int64")def_gen.integers(I_i8_high_closed, dtype="int64", endpoint=True)def_gen.integers(I_i8_low, I_i8_high_closed, dtype="int64", endpoint=True)def_gen.integers(-9223372036854775808, I_i8_high_closed, dtype="int64", endpoint=True)
def_gen.integers(9223372036854775808, dtype=np.int64)def_gen.integers(-9223372036854775808, 9223372036854775808, dtype=np.int64)def_gen.integers(9223372036854775807, dtype=np.int64, endpoint=True)def_gen.integers(-9223372036854775808, 9223372036854775807, dtype=np.int64, endpoint=True)def_gen.integers(I_i8_low_like, 9223372036854775807, dtype=np.int64, endpoint=True)def_gen.integers(I_i8_high_open, dtype=np.int64)def_gen.integers(I_i8_low, I_i8_high_open, dtype=np.int64)def_gen.integers(-9223372036854775808, I_i8_high_open, dtype=np.int64)def_gen.integers(I_i8_high_closed, dtype=np.int64, endpoint=True)def_gen.integers(I_i8_low, I_i8_high_closed, dtype=np.int64, endpoint=True)def_gen.integers(-9223372036854775808, I_i8_high_closed, dtype=np.int64, endpoint=True)
def_gen.bit_generator
def_gen.bytes(2)
def_gen.choice(5)def_gen.choice(5, 3)def_gen.choice(5, 3, replace=True)def_gen.choice(5, 3, p=[1 / 5] * 5)def_gen.choice(5, 3, p=[1 / 5] * 5, replace=False)
def_gen.choice(["pooh", "rabbit", "piglet", "Christopher"])def_gen.choice(["pooh", "rabbit", "piglet", "Christopher"], 3)def_gen.choice(["pooh", "rabbit", "piglet", "Christopher"], 3, p=[1 / 4] * 4)def_gen.choice(["pooh", "rabbit", "piglet", "Christopher"], 3, replace=True)def_gen.choice(["pooh", "rabbit", "piglet", "Christopher"], 3, replace=False, p=np.array([1 / 8, 1 / 8, 1 / 2, 1 / 4]))
def_gen.dirichlet([0.5, 0.5])def_gen.dirichlet(np.array([0.5, 0.5]))def_gen.dirichlet(np.array([0.5, 0.5]), size=3)
def_gen.multinomial(20, [1 / 6.0] * 6)def_gen.multinomial(20, np.array([0.5, 0.5]))def_gen.multinomial(20, [1 / 6.0] * 6, size=2)def_gen.multinomial([[10], [20]], [1 / 6.0] * 6, size=(2, 2))def_gen.multinomial(np.array([[10], [20]]), np.array([0.5, 0.5]), size=(2, 2))
def_gen.multivariate_hypergeometric([3, 5, 7], 2)def_gen.multivariate_hypergeometric(np.array([3, 5, 7]), 2)def_gen.multivariate_hypergeometric(np.array([3, 5, 7]), 2, size=4)def_gen.multivariate_hypergeometric(np.array([3, 5, 7]), 2, size=(4, 7))def_gen.multivariate_hypergeometric([3, 5, 7], 2, method="count")def_gen.multivariate_hypergeometric(np.array([3, 5, 7]), 2, method="marginals")
def_gen.multivariate_normal([0.0], [[1.0]])def_gen.multivariate_normal([0.0], np.array([[1.0]]))def_gen.multivariate_normal(np.array([0.0]), [[1.0]])def_gen.multivariate_normal([0.0], np.array([[1.0]]))
def_gen.permutation(10)def_gen.permutation([1, 2, 3, 4])def_gen.permutation(np.array([1, 2, 3, 4]))def_gen.permutation(D_2D, axis=1)def_gen.permuted(D_2D)def_gen.permuted(D_2D_like)def_gen.permuted(D_2D, axis=1)def_gen.permuted(D_2D, out=D_2D)def_gen.permuted(D_2D_like, out=D_2D)def_gen.permuted(D_2D_like, out=D_2D)def_gen.permuted(D_2D, axis=1, out=D_2D)
def_gen.shuffle(np.arange(10))def_gen.shuffle([1, 2, 3, 4, 5])def_gen.shuffle(D_2D, axis=1)
def_gen.__str__()def_gen.__repr__()def_gen.__setstate__(dict(def_gen.bit_generator.state))
# RandomStaterandom_st: np.random.RandomState = np.random.RandomState()
random_st.standard_normal()random_st.standard_normal(size=None)random_st.standard_normal(size=1)
random_st.random()random_st.random(size=None)random_st.random(size=1)
random_st.standard_cauchy()random_st.standard_cauchy(size=None)random_st.standard_cauchy(size=1)
random_st.standard_exponential()random_st.standard_exponential(size=None)random_st.standard_exponential(size=1)
random_st.zipf(1.5)random_st.zipf(1.5, size=None)random_st.zipf(1.5, size=1)random_st.zipf(D_arr_1p5)random_st.zipf(D_arr_1p5, size=1)random_st.zipf(D_arr_like_1p5)random_st.zipf(D_arr_like_1p5, size=1)
random_st.weibull(0.5)random_st.weibull(0.5, size=None)random_st.weibull(0.5, size=1)random_st.weibull(D_arr_0p5)random_st.weibull(D_arr_0p5, size=1)random_st.weibull(D_arr_like_0p5)random_st.weibull(D_arr_like_0p5, size=1)
random_st.standard_t(0.5)random_st.standard_t(0.5, size=None)random_st.standard_t(0.5, size=1)random_st.standard_t(D_arr_0p5)random_st.standard_t(D_arr_0p5, size=1)random_st.standard_t(D_arr_like_0p5)random_st.standard_t(D_arr_like_0p5, size=1)
random_st.poisson(0.5)random_st.poisson(0.5, size=None)random_st.poisson(0.5, size=1)random_st.poisson(D_arr_0p5)random_st.poisson(D_arr_0p5, size=1)random_st.poisson(D_arr_like_0p5)random_st.poisson(D_arr_like_0p5, size=1)
random_st.power(0.5)random_st.power(0.5, size=None)random_st.power(0.5, size=1)random_st.power(D_arr_0p5)random_st.power(D_arr_0p5, size=1)random_st.power(D_arr_like_0p5)random_st.power(D_arr_like_0p5, size=1)
random_st.pareto(0.5)random_st.pareto(0.5, size=None)random_st.pareto(0.5, size=1)random_st.pareto(D_arr_0p5)random_st.pareto(D_arr_0p5, size=1)random_st.pareto(D_arr_like_0p5)random_st.pareto(D_arr_like_0p5, size=1)
random_st.chisquare(0.5)random_st.chisquare(0.5, size=None)random_st.chisquare(0.5, size=1)random_st.chisquare(D_arr_0p5)random_st.chisquare(D_arr_0p5, size=1)random_st.chisquare(D_arr_like_0p5)random_st.chisquare(D_arr_like_0p5, size=1)
random_st.exponential(0.5)random_st.exponential(0.5, size=None)random_st.exponential(0.5, size=1)random_st.exponential(D_arr_0p5)random_st.exponential(D_arr_0p5, size=1)random_st.exponential(D_arr_like_0p5)random_st.exponential(D_arr_like_0p5, size=1)
random_st.geometric(0.5)random_st.geometric(0.5, size=None)random_st.geometric(0.5, size=1)random_st.geometric(D_arr_0p5)random_st.geometric(D_arr_0p5, size=1)random_st.geometric(D_arr_like_0p5)random_st.geometric(D_arr_like_0p5, size=1)
random_st.logseries(0.5)random_st.logseries(0.5, size=None)random_st.logseries(0.5, size=1)random_st.logseries(D_arr_0p5)random_st.logseries(D_arr_0p5, size=1)random_st.logseries(D_arr_like_0p5)random_st.logseries(D_arr_like_0p5, size=1)
random_st.rayleigh(0.5)random_st.rayleigh(0.5, size=None)random_st.rayleigh(0.5, size=1)random_st.rayleigh(D_arr_0p5)random_st.rayleigh(D_arr_0p5, size=1)random_st.rayleigh(D_arr_like_0p5)random_st.rayleigh(D_arr_like_0p5, size=1)
random_st.standard_gamma(0.5)random_st.standard_gamma(0.5, size=None)random_st.standard_gamma(0.5, size=1)random_st.standard_gamma(D_arr_0p5)random_st.standard_gamma(D_arr_0p5, size=1)random_st.standard_gamma(D_arr_like_0p5)random_st.standard_gamma(D_arr_like_0p5, size=1)random_st.standard_gamma(D_arr_like_0p5, size=1)
random_st.vonmises(0.5, 0.5)random_st.vonmises(0.5, 0.5, size=None)random_st.vonmises(0.5, 0.5, size=1)random_st.vonmises(D_arr_0p5, 0.5)random_st.vonmises(0.5, D_arr_0p5)random_st.vonmises(D_arr_0p5, 0.5, size=1)random_st.vonmises(0.5, D_arr_0p5, size=1)random_st.vonmises(D_arr_like_0p5, 0.5)random_st.vonmises(0.5, D_arr_like_0p5)random_st.vonmises(D_arr_0p5, D_arr_0p5)random_st.vonmises(D_arr_like_0p5, D_arr_like_0p5)random_st.vonmises(D_arr_0p5, D_arr_0p5, size=1)random_st.vonmises(D_arr_like_0p5, D_arr_like_0p5, size=1)
random_st.wald(0.5, 0.5)random_st.wald(0.5, 0.5, size=None)random_st.wald(0.5, 0.5, size=1)random_st.wald(D_arr_0p5, 0.5)random_st.wald(0.5, D_arr_0p5)random_st.wald(D_arr_0p5, 0.5, size=1)random_st.wald(0.5, D_arr_0p5, size=1)random_st.wald(D_arr_like_0p5, 0.5)random_st.wald(0.5, D_arr_like_0p5)random_st.wald(D_arr_0p5, D_arr_0p5)random_st.wald(D_arr_like_0p5, D_arr_like_0p5)random_st.wald(D_arr_0p5, D_arr_0p5, size=1)random_st.wald(D_arr_like_0p5, D_arr_like_0p5, size=1)
random_st.uniform(0.5, 0.5)random_st.uniform(0.5, 0.5, size=None)random_st.uniform(0.5, 0.5, size=1)random_st.uniform(D_arr_0p5, 0.5)random_st.uniform(0.5, D_arr_0p5)random_st.uniform(D_arr_0p5, 0.5, size=1)random_st.uniform(0.5, D_arr_0p5, size=1)random_st.uniform(D_arr_like_0p5, 0.5)random_st.uniform(0.5, D_arr_like_0p5)random_st.uniform(D_arr_0p5, D_arr_0p5)random_st.uniform(D_arr_like_0p5, D_arr_like_0p5)random_st.uniform(D_arr_0p5, D_arr_0p5, size=1)random_st.uniform(D_arr_like_0p5, D_arr_like_0p5, size=1)
random_st.beta(0.5, 0.5)random_st.beta(0.5, 0.5, size=None)random_st.beta(0.5, 0.5, size=1)random_st.beta(D_arr_0p5, 0.5)random_st.beta(0.5, D_arr_0p5)random_st.beta(D_arr_0p5, 0.5, size=1)random_st.beta(0.5, D_arr_0p5, size=1)random_st.beta(D_arr_like_0p5, 0.5)random_st.beta(0.5, D_arr_like_0p5)random_st.beta(D_arr_0p5, D_arr_0p5)random_st.beta(D_arr_like_0p5, D_arr_like_0p5)random_st.beta(D_arr_0p5, D_arr_0p5, size=1)random_st.beta(D_arr_like_0p5, D_arr_like_0p5, size=1)
random_st.f(0.5, 0.5)random_st.f(0.5, 0.5, size=None)random_st.f(0.5, 0.5, size=1)random_st.f(D_arr_0p5, 0.5)random_st.f(0.5, D_arr_0p5)random_st.f(D_arr_0p5, 0.5, size=1)random_st.f(0.5, D_arr_0p5, size=1)random_st.f(D_arr_like_0p5, 0.5)random_st.f(0.5, D_arr_like_0p5)random_st.f(D_arr_0p5, D_arr_0p5)random_st.f(D_arr_like_0p5, D_arr_like_0p5)random_st.f(D_arr_0p5, D_arr_0p5, size=1)random_st.f(D_arr_like_0p5, D_arr_like_0p5, size=1)
random_st.gamma(0.5, 0.5)random_st.gamma(0.5, 0.5, size=None)random_st.gamma(0.5, 0.5, size=1)random_st.gamma(D_arr_0p5, 0.5)random_st.gamma(0.5, D_arr_0p5)random_st.gamma(D_arr_0p5, 0.5, size=1)random_st.gamma(0.5, D_arr_0p5, size=1)random_st.gamma(D_arr_like_0p5, 0.5)random_st.gamma(0.5, D_arr_like_0p5)random_st.gamma(D_arr_0p5, D_arr_0p5)random_st.gamma(D_arr_like_0p5, D_arr_like_0p5)random_st.gamma(D_arr_0p5, D_arr_0p5, size=1)random_st.gamma(D_arr_like_0p5, D_arr_like_0p5, size=1)
random_st.gumbel(0.5, 0.5)random_st.gumbel(0.5, 0.5, size=None)random_st.gumbel(0.5, 0.5, size=1)random_st.gumbel(D_arr_0p5, 0.5)random_st.gumbel(0.5, D_arr_0p5)random_st.gumbel(D_arr_0p5, 0.5, size=1)random_st.gumbel(0.5, D_arr_0p5, size=1)random_st.gumbel(D_arr_like_0p5, 0.5)random_st.gumbel(0.5, D_arr_like_0p5)random_st.gumbel(D_arr_0p5, D_arr_0p5)random_st.gumbel(D_arr_like_0p5, D_arr_like_0p5)random_st.gumbel(D_arr_0p5, D_arr_0p5, size=1)random_st.gumbel(D_arr_like_0p5, D_arr_like_0p5, size=1)
random_st.laplace(0.5, 0.5)random_st.laplace(0.5, 0.5, size=None)random_st.laplace(0.5, 0.5, size=1)random_st.laplace(D_arr_0p5, 0.5)random_st.laplace(0.5, D_arr_0p5)random_st.laplace(D_arr_0p5, 0.5, size=1)random_st.laplace(0.5, D_arr_0p5, size=1)random_st.laplace(D_arr_like_0p5, 0.5)random_st.laplace(0.5, D_arr_like_0p5)random_st.laplace(D_arr_0p5, D_arr_0p5)random_st.laplace(D_arr_like_0p5, D_arr_like_0p5)random_st.laplace(D_arr_0p5, D_arr_0p5, size=1)random_st.laplace(D_arr_like_0p5, D_arr_like_0p5, size=1)
random_st.logistic(0.5, 0.5)random_st.logistic(0.5, 0.5, size=None)random_st.logistic(0.5, 0.5, size=1)random_st.logistic(D_arr_0p5, 0.5)random_st.logistic(0.5, D_arr_0p5)random_st.logistic(D_arr_0p5, 0.5, size=1)random_st.logistic(0.5, D_arr_0p5, size=1)random_st.logistic(D_arr_like_0p5, 0.5)random_st.logistic(0.5, D_arr_like_0p5)random_st.logistic(D_arr_0p5, D_arr_0p5)random_st.logistic(D_arr_like_0p5, D_arr_like_0p5)random_st.logistic(D_arr_0p5, D_arr_0p5, size=1)random_st.logistic(D_arr_like_0p5, D_arr_like_0p5, size=1)
random_st.lognormal(0.5, 0.5)random_st.lognormal(0.5, 0.5, size=None)random_st.lognormal(0.5, 0.5, size=1)random_st.lognormal(D_arr_0p5, 0.5)random_st.lognormal(0.5, D_arr_0p5)random_st.lognormal(D_arr_0p5, 0.5, size=1)random_st.lognormal(0.5, D_arr_0p5, size=1)random_st.lognormal(D_arr_like_0p5, 0.5)random_st.lognormal(0.5, D_arr_like_0p5)random_st.lognormal(D_arr_0p5, D_arr_0p5)random_st.lognormal(D_arr_like_0p5, D_arr_like_0p5)random_st.lognormal(D_arr_0p5, D_arr_0p5, size=1)random_st.lognormal(D_arr_like_0p5, D_arr_like_0p5, size=1)
random_st.noncentral_chisquare(0.5, 0.5)random_st.noncentral_chisquare(0.5, 0.5, size=None)random_st.noncentral_chisquare(0.5, 0.5, size=1)random_st.noncentral_chisquare(D_arr_0p5, 0.5)random_st.noncentral_chisquare(0.5, D_arr_0p5)random_st.noncentral_chisquare(D_arr_0p5, 0.5, size=1)random_st.noncentral_chisquare(0.5, D_arr_0p5, size=1)random_st.noncentral_chisquare(D_arr_like_0p5, 0.5)random_st.noncentral_chisquare(0.5, D_arr_like_0p5)random_st.noncentral_chisquare(D_arr_0p5, D_arr_0p5)random_st.noncentral_chisquare(D_arr_like_0p5, D_arr_like_0p5)random_st.noncentral_chisquare(D_arr_0p5, D_arr_0p5, size=1)random_st.noncentral_chisquare(D_arr_like_0p5, D_arr_like_0p5, size=1)
random_st.normal(0.5, 0.5)random_st.normal(0.5, 0.5, size=None)random_st.normal(0.5, 0.5, size=1)random_st.normal(D_arr_0p5, 0.5)random_st.normal(0.5, D_arr_0p5)random_st.normal(D_arr_0p5, 0.5, size=1)random_st.normal(0.5, D_arr_0p5, size=1)random_st.normal(D_arr_like_0p5, 0.5)random_st.normal(0.5, D_arr_like_0p5)random_st.normal(D_arr_0p5, D_arr_0p5)random_st.normal(D_arr_like_0p5, D_arr_like_0p5)random_st.normal(D_arr_0p5, D_arr_0p5, size=1)random_st.normal(D_arr_like_0p5, D_arr_like_0p5, size=1)
random_st.triangular(0.1, 0.5, 0.9)random_st.triangular(0.1, 0.5, 0.9, size=None)random_st.triangular(0.1, 0.5, 0.9, size=1)random_st.triangular(D_arr_0p1, 0.5, 0.9)random_st.triangular(0.1, D_arr_0p5, 0.9)random_st.triangular(D_arr_0p1, 0.5, D_arr_like_0p9, size=1)random_st.triangular(0.1, D_arr_0p5, 0.9, size=1)random_st.triangular(D_arr_like_0p1, 0.5, D_arr_0p9)random_st.triangular(0.5, D_arr_like_0p5, 0.9)random_st.triangular(D_arr_0p1, D_arr_0p5, 0.9)random_st.triangular(D_arr_like_0p1, D_arr_like_0p5, 0.9)random_st.triangular(D_arr_0p1, D_arr_0p5, D_arr_0p9, size=1)random_st.triangular(D_arr_like_0p1, D_arr_like_0p5, D_arr_like_0p9, size=1)
random_st.noncentral_f(0.1, 0.5, 0.9)random_st.noncentral_f(0.1, 0.5, 0.9, size=None)random_st.noncentral_f(0.1, 0.5, 0.9, size=1)random_st.noncentral_f(D_arr_0p1, 0.5, 0.9)random_st.noncentral_f(0.1, D_arr_0p5, 0.9)random_st.noncentral_f(D_arr_0p1, 0.5, D_arr_like_0p9, size=1)random_st.noncentral_f(0.1, D_arr_0p5, 0.9, size=1)random_st.noncentral_f(D_arr_like_0p1, 0.5, D_arr_0p9)random_st.noncentral_f(0.5, D_arr_like_0p5, 0.9)random_st.noncentral_f(D_arr_0p1, D_arr_0p5, 0.9)random_st.noncentral_f(D_arr_like_0p1, D_arr_like_0p5, 0.9)random_st.noncentral_f(D_arr_0p1, D_arr_0p5, D_arr_0p9, size=1)random_st.noncentral_f(D_arr_like_0p1, D_arr_like_0p5, D_arr_like_0p9, size=1)
random_st.binomial(10, 0.5)random_st.binomial(10, 0.5, size=None)random_st.binomial(10, 0.5, size=1)random_st.binomial(I_arr_10, 0.5)random_st.binomial(10, D_arr_0p5)random_st.binomial(I_arr_10, 0.5, size=1)random_st.binomial(10, D_arr_0p5, size=1)random_st.binomial(I_arr_like_10, 0.5)random_st.binomial(10, D_arr_like_0p5)random_st.binomial(I_arr_10, D_arr_0p5)random_st.binomial(I_arr_like_10, D_arr_like_0p5)random_st.binomial(I_arr_10, D_arr_0p5, size=1)random_st.binomial(I_arr_like_10, D_arr_like_0p5, size=1)
random_st.negative_binomial(10, 0.5)random_st.negative_binomial(10, 0.5, size=None)random_st.negative_binomial(10, 0.5, size=1)random_st.negative_binomial(I_arr_10, 0.5)random_st.negative_binomial(10, D_arr_0p5)random_st.negative_binomial(I_arr_10, 0.5, size=1)random_st.negative_binomial(10, D_arr_0p5, size=1)random_st.negative_binomial(I_arr_like_10, 0.5)random_st.negative_binomial(10, D_arr_like_0p5)random_st.negative_binomial(I_arr_10, D_arr_0p5)random_st.negative_binomial(I_arr_like_10, D_arr_like_0p5)random_st.negative_binomial(I_arr_10, D_arr_0p5, size=1)random_st.negative_binomial(I_arr_like_10, D_arr_like_0p5, size=1)
random_st.hypergeometric(20, 20, 10)random_st.hypergeometric(20, 20, 10, size=None)random_st.hypergeometric(20, 20, 10, size=1)random_st.hypergeometric(I_arr_20, 20, 10)random_st.hypergeometric(20, I_arr_20, 10)random_st.hypergeometric(I_arr_20, 20, I_arr_like_10, size=1)random_st.hypergeometric(20, I_arr_20, 10, size=1)random_st.hypergeometric(I_arr_like_20, 20, I_arr_10)random_st.hypergeometric(20, I_arr_like_20, 10)random_st.hypergeometric(I_arr_20, I_arr_20, 10)random_st.hypergeometric(I_arr_like_20, I_arr_like_20, 10)random_st.hypergeometric(I_arr_20, I_arr_20, I_arr_10, size=1)random_st.hypergeometric(I_arr_like_20, I_arr_like_20, I_arr_like_10, size=1)
random_st.randint(0, 100)random_st.randint(100)random_st.randint([100])random_st.randint(0, [100])
random_st.randint(2, dtype=bool)random_st.randint(0, 2, dtype=bool)random_st.randint(I_bool_high_open, dtype=bool)random_st.randint(I_bool_low, I_bool_high_open, dtype=bool)random_st.randint(0, I_bool_high_open, dtype=bool)
random_st.randint(2, dtype=np.bool)random_st.randint(0, 2, dtype=np.bool)random_st.randint(I_bool_high_open, dtype=np.bool)random_st.randint(I_bool_low, I_bool_high_open, dtype=np.bool)random_st.randint(0, I_bool_high_open, dtype=np.bool)
random_st.randint(256, dtype="u1")random_st.randint(0, 256, dtype="u1")random_st.randint(I_u1_high_open, dtype="u1")random_st.randint(I_u1_low, I_u1_high_open, dtype="u1")random_st.randint(0, I_u1_high_open, dtype="u1")
random_st.randint(256, dtype="uint8")random_st.randint(0, 256, dtype="uint8")random_st.randint(I_u1_high_open, dtype="uint8")random_st.randint(I_u1_low, I_u1_high_open, dtype="uint8")random_st.randint(0, I_u1_high_open, dtype="uint8")
random_st.randint(256, dtype=np.uint8)random_st.randint(0, 256, dtype=np.uint8)random_st.randint(I_u1_high_open, dtype=np.uint8)random_st.randint(I_u1_low, I_u1_high_open, dtype=np.uint8)random_st.randint(0, I_u1_high_open, dtype=np.uint8)
random_st.randint(65536, dtype="u2")random_st.randint(0, 65536, dtype="u2")random_st.randint(I_u2_high_open, dtype="u2")random_st.randint(I_u2_low, I_u2_high_open, dtype="u2")random_st.randint(0, I_u2_high_open, dtype="u2")
random_st.randint(65536, dtype="uint16")random_st.randint(0, 65536, dtype="uint16")random_st.randint(I_u2_high_open, dtype="uint16")random_st.randint(I_u2_low, I_u2_high_open, dtype="uint16")random_st.randint(0, I_u2_high_open, dtype="uint16")
random_st.randint(65536, dtype=np.uint16)random_st.randint(0, 65536, dtype=np.uint16)random_st.randint(I_u2_high_open, dtype=np.uint16)random_st.randint(I_u2_low, I_u2_high_open, dtype=np.uint16)random_st.randint(0, I_u2_high_open, dtype=np.uint16)
random_st.randint(4294967296, dtype="u4")random_st.randint(0, 4294967296, dtype="u4")random_st.randint(I_u4_high_open, dtype="u4")random_st.randint(I_u4_low, I_u4_high_open, dtype="u4")random_st.randint(0, I_u4_high_open, dtype="u4")
random_st.randint(4294967296, dtype="uint32")random_st.randint(0, 4294967296, dtype="uint32")random_st.randint(I_u4_high_open, dtype="uint32")random_st.randint(I_u4_low, I_u4_high_open, dtype="uint32")random_st.randint(0, I_u4_high_open, dtype="uint32")
random_st.randint(4294967296, dtype=np.uint32)random_st.randint(0, 4294967296, dtype=np.uint32)random_st.randint(I_u4_high_open, dtype=np.uint32)random_st.randint(I_u4_low, I_u4_high_open, dtype=np.uint32)random_st.randint(0, I_u4_high_open, dtype=np.uint32)
random_st.randint(18446744073709551616, dtype="u8")random_st.randint(0, 18446744073709551616, dtype="u8")random_st.randint(I_u8_high_open, dtype="u8")random_st.randint(I_u8_low, I_u8_high_open, dtype="u8")random_st.randint(0, I_u8_high_open, dtype="u8")
random_st.randint(18446744073709551616, dtype="uint64")random_st.randint(0, 18446744073709551616, dtype="uint64")random_st.randint(I_u8_high_open, dtype="uint64")random_st.randint(I_u8_low, I_u8_high_open, dtype="uint64")random_st.randint(0, I_u8_high_open, dtype="uint64")
random_st.randint(18446744073709551616, dtype=np.uint64)random_st.randint(0, 18446744073709551616, dtype=np.uint64)random_st.randint(I_u8_high_open, dtype=np.uint64)random_st.randint(I_u8_low, I_u8_high_open, dtype=np.uint64)random_st.randint(0, I_u8_high_open, dtype=np.uint64)
random_st.randint(128, dtype="i1")random_st.randint(-128, 128, dtype="i1")random_st.randint(I_i1_high_open, dtype="i1")random_st.randint(I_i1_low, I_i1_high_open, dtype="i1")random_st.randint(-128, I_i1_high_open, dtype="i1")
random_st.randint(128, dtype="int8")random_st.randint(-128, 128, dtype="int8")random_st.randint(I_i1_high_open, dtype="int8")random_st.randint(I_i1_low, I_i1_high_open, dtype="int8")random_st.randint(-128, I_i1_high_open, dtype="int8")
random_st.randint(128, dtype=np.int8)random_st.randint(-128, 128, dtype=np.int8)random_st.randint(I_i1_high_open, dtype=np.int8)random_st.randint(I_i1_low, I_i1_high_open, dtype=np.int8)random_st.randint(-128, I_i1_high_open, dtype=np.int8)
random_st.randint(32768, dtype="i2")random_st.randint(-32768, 32768, dtype="i2")random_st.randint(I_i2_high_open, dtype="i2")random_st.randint(I_i2_low, I_i2_high_open, dtype="i2")random_st.randint(-32768, I_i2_high_open, dtype="i2")random_st.randint(32768, dtype="int16")random_st.randint(-32768, 32768, dtype="int16")random_st.randint(I_i2_high_open, dtype="int16")random_st.randint(I_i2_low, I_i2_high_open, dtype="int16")random_st.randint(-32768, I_i2_high_open, dtype="int16")random_st.randint(32768, dtype=np.int16)random_st.randint(-32768, 32768, dtype=np.int16)random_st.randint(I_i2_high_open, dtype=np.int16)random_st.randint(I_i2_low, I_i2_high_open, dtype=np.int16)random_st.randint(-32768, I_i2_high_open, dtype=np.int16)
random_st.randint(2147483648, dtype="i4")random_st.randint(-2147483648, 2147483648, dtype="i4")random_st.randint(I_i4_high_open, dtype="i4")random_st.randint(I_i4_low, I_i4_high_open, dtype="i4")random_st.randint(-2147483648, I_i4_high_open, dtype="i4")
random_st.randint(2147483648, dtype="int32")random_st.randint(-2147483648, 2147483648, dtype="int32")random_st.randint(I_i4_high_open, dtype="int32")random_st.randint(I_i4_low, I_i4_high_open, dtype="int32")random_st.randint(-2147483648, I_i4_high_open, dtype="int32")
random_st.randint(2147483648, dtype=np.int32)random_st.randint(-2147483648, 2147483648, dtype=np.int32)random_st.randint(I_i4_high_open, dtype=np.int32)random_st.randint(I_i4_low, I_i4_high_open, dtype=np.int32)random_st.randint(-2147483648, I_i4_high_open, dtype=np.int32)
random_st.randint(9223372036854775808, dtype="i8")random_st.randint(-9223372036854775808, 9223372036854775808, dtype="i8")random_st.randint(I_i8_high_open, dtype="i8")random_st.randint(I_i8_low, I_i8_high_open, dtype="i8")random_st.randint(-9223372036854775808, I_i8_high_open, dtype="i8")
random_st.randint(9223372036854775808, dtype="int64")random_st.randint(-9223372036854775808, 9223372036854775808, dtype="int64")random_st.randint(I_i8_high_open, dtype="int64")random_st.randint(I_i8_low, I_i8_high_open, dtype="int64")random_st.randint(-9223372036854775808, I_i8_high_open, dtype="int64")
random_st.randint(9223372036854775808, dtype=np.int64)random_st.randint(-9223372036854775808, 9223372036854775808, dtype=np.int64)random_st.randint(I_i8_high_open, dtype=np.int64)random_st.randint(I_i8_low, I_i8_high_open, dtype=np.int64)random_st.randint(-9223372036854775808, I_i8_high_open, dtype=np.int64)
bg: np.random.BitGenerator = random_st._bit_generator
random_st.bytes(2)
random_st.choice(5)random_st.choice(5, 3)random_st.choice(5, 3, replace=True)random_st.choice(5, 3, p=[1 / 5] * 5)random_st.choice(5, 3, p=[1 / 5] * 5, replace=False)
random_st.choice(["pooh", "rabbit", "piglet", "Christopher"])random_st.choice(["pooh", "rabbit", "piglet", "Christopher"], 3)random_st.choice(["pooh", "rabbit", "piglet", "Christopher"], 3, p=[1 / 4] * 4)random_st.choice(["pooh", "rabbit", "piglet", "Christopher"], 3, replace=True)random_st.choice(["pooh", "rabbit", "piglet", "Christopher"], 3, replace=False, p=np.array([1 / 8, 1 / 8, 1 / 2, 1 / 4]))
random_st.dirichlet([0.5, 0.5])random_st.dirichlet(np.array([0.5, 0.5]))random_st.dirichlet(np.array([0.5, 0.5]), size=3)
random_st.multinomial(20, [1 / 6.0] * 6)random_st.multinomial(20, np.array([0.5, 0.5]))random_st.multinomial(20, [1 / 6.0] * 6, size=2)
random_st.multivariate_normal([0.0], [[1.0]])random_st.multivariate_normal([0.0], np.array([[1.0]]))random_st.multivariate_normal(np.array([0.0]), [[1.0]])random_st.multivariate_normal([0.0], np.array([[1.0]]))
random_st.permutation(10)random_st.permutation([1, 2, 3, 4])random_st.permutation(np.array([1, 2, 3, 4]))random_st.permutation(D_2D)
random_st.shuffle(np.arange(10))random_st.shuffle([1, 2, 3, 4, 5])random_st.shuffle(D_2D)
np.random.RandomState(SEED_PCG64)np.random.RandomState(0)np.random.RandomState([0, 1, 2])random_st.__str__()random_st.__repr__()random_st_state = random_st.__getstate__()random_st.__setstate__(random_st_state)random_st.seed()random_st.seed(1)random_st.seed([0, 1])random_st_get_state = random_st.get_state()random_st_get_state_legacy = random_st.get_state(legacy=True)random_st.set_state(random_st_get_state)
random_st.rand()random_st.rand(1)random_st.rand(1, 2)random_st.randn()random_st.randn(1)random_st.randn(1, 2)random_st.random_sample()random_st.random_sample(1)random_st.random_sample(size=(1, 2))
random_st.tomaxint()random_st.tomaxint(1)random_st.tomaxint((1,))
np.random.mtrand.set_bit_generator(SEED_PCG64)np.random.mtrand.get_bit_generator()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164"""These tests are based on the doctests from `numpy/lib/recfunctions.py`."""
from typing import Any, assert_type
import numpy as npimport numpy.typing as nptfrom numpy.lib import recfunctions as rfn
def test_recursive_fill_fields() -> None: a: npt.NDArray[np.void] = np.array( [(1, 10.0), (2, 20.0)], dtype=[("A", np.int64), ("B", np.float64)], ) b = np.zeros((3,), dtype=a.dtype) out = rfn.recursive_fill_fields(a, b) assert_type(out, np.ndarray[tuple[int], np.dtype[np.void]])
def test_get_names() -> None: names: tuple[str | Any, ...] names = rfn.get_names(np.empty((1,), dtype=[("A", int)]).dtype) names = rfn.get_names(np.empty((1,), dtype=[("A", int), ("B", float)]).dtype)
adtype = np.dtype([("a", int), ("b", [("b_a", int), ("b_b", int)])]) names = rfn.get_names(adtype)
def test_get_names_flat() -> None: names: tuple[str, ...] names = rfn.get_names_flat(np.empty((1,), dtype=[("A", int)]).dtype) names = rfn.get_names_flat(np.empty((1,), dtype=[("A", int), ("B", float)]).dtype)
adtype = np.dtype([("a", int), ("b", [("b_a", int), ("b_b", int)])]) names = rfn.get_names_flat(adtype)
def test_flatten_descr() -> None: ndtype = np.dtype([("a", "<i4"), ("b", [("b_a", "<f8"), ("b_b", "<i4")])]) assert_type(rfn.flatten_descr(ndtype), tuple[tuple[str, np.dtype]])
def test_get_fieldstructure() -> None: ndtype = np.dtype([ ("A", int), ("B", [("B_A", int), ("B_B", [("B_B_A", int), ("B_B_B", int)])]), ]) assert_type(rfn.get_fieldstructure(ndtype), dict[str, list[str]])
def test_merge_arrays() -> None: assert_type( rfn.merge_arrays(( np.ones((2,), np.int_), np.ones((3,), np.float64), )), np.recarray[tuple[int], np.dtype[np.void]], )
def test_drop_fields() -> None: ndtype = [("a", np.int64), ("b", [("b_a", np.double), ("b_b", np.int64)])] a = np.ones((3,), dtype=ndtype)
assert_type( rfn.drop_fields(a, "a"), np.ndarray[tuple[int], np.dtype[np.void]], ) assert_type( rfn.drop_fields(a, "a", asrecarray=True), np.rec.recarray[tuple[int], np.dtype[np.void]], ) assert_type( rfn.rec_drop_fields(a, "a"), np.rec.recarray[tuple[int], np.dtype[np.void]], )
def test_rename_fields() -> None: ndtype = [("a", np.int64), ("b", [("b_a", np.double), ("b_b", np.int64)])] a = np.ones((3,), dtype=ndtype)
assert_type( rfn.rename_fields(a, {"a": "A", "b_b": "B_B"}), np.ndarray[tuple[int], np.dtype[np.void]], )
def test_repack_fields() -> None: dt: np.dtype[np.void] = np.dtype("u1, <i8, <f8", align=True)
assert_type(rfn.repack_fields(dt), np.dtype[np.void]) assert_type(rfn.repack_fields(dt.type(0)), np.void) assert_type( rfn.repack_fields(np.ones((3,), dtype=dt)), np.ndarray[tuple[int], np.dtype[np.void]], )
def test_structured_to_unstructured() -> None: a = np.zeros(4, dtype=[("a", "i4"), ("b", "f4,u2"), ("c", "f4", 2)]) assert_type(rfn.structured_to_unstructured(a), npt.NDArray[Any])
def unstructured_to_structured() -> None: dt: np.dtype[np.void] = np.dtype([("a", "i4"), ("b", "f4,u2"), ("c", "f4", 2)]) a = np.arange(20, dtype=np.int32).reshape((4, 5)) assert_type(rfn.unstructured_to_structured(a, dt), npt.NDArray[np.void])
def test_apply_along_fields() -> None: b = np.ones(4, dtype=[("x", "i4"), ("y", "f4"), ("z", "f8")]) assert_type( rfn.apply_along_fields(np.mean, b), np.ndarray[tuple[int], np.dtype[np.void]], )
def test_assign_fields_by_name() -> None: b = np.ones(4, dtype=[("x", "i4"), ("y", "f4"), ("z", "f8")]) assert_type( rfn.apply_along_fields(np.mean, b), np.ndarray[tuple[int], np.dtype[np.void]], )
def test_require_fields() -> None: a = np.ones(4, dtype=[("a", "i4"), ("b", "f8"), ("c", "u1")]) assert_type( rfn.require_fields(a, [("b", "f4"), ("c", "u1")]), np.ndarray[tuple[int], np.dtype[np.void]], )
def test_stack_arrays() -> None: x = np.zeros((2,), np.int32) assert_type( rfn.stack_arrays(x), np.ndarray[tuple[int], np.dtype[np.int32]], )
z = np.ones((2,), [("A", "|S3"), ("B", float)]) zz = np.ones((2,), [("A", "|S3"), ("B", np.float64), ("C", np.float64)]) assert_type( rfn.stack_arrays((z, zz)), np.ma.MaskedArray[tuple[Any, ...], np.dtype[np.void]], )
def test_find_duplicates() -> None: ndtype = np.dtype([("a", int)])
a = np.ma.ones(7).view(ndtype) assert_type( rfn.find_duplicates(a), np.ma.MaskedArray[tuple[int], np.dtype[np.void]], ) assert_type( rfn.find_duplicates(a, ignoremask=True, return_index=True), tuple[ np.ma.MaskedArray[tuple[int], np.dtype[np.void]], np.ndarray[tuple[int], np.dtype[np.int_]], ], )123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249import datetime as dt
import pytest
import numpy as np
b = np.bool()b_ = np.bool_()u8 = np.uint64()i8 = np.int64()f8 = np.float64()c16 = np.complex128()U = np.str_()S = np.bytes_()
# Constructionclass D: def __index__(self) -> int: return 0
class C: def __complex__(self) -> complex: return 3j
class B: def __int__(self) -> int: return 4
class A: def __float__(self) -> float: return 4.0
np.complex64(3j)np.complex64(A())np.complex64(C())np.complex128(3j)np.complex128(C())np.complex128(None)np.complex64("1.2")np.complex128(b"2j")
np.int8(4)np.int16(3.4)np.int32(4)np.int64(-1)np.uint8(B())np.uint32()np.int32("1")np.int64(b"2")
np.float16(A())np.float32(16)np.float64(3.0)np.float64(None)np.float32("1")np.float16(b"2.5")
np.uint64(D())np.float32(D())np.complex64(D())
np.bytes_(b"hello")np.bytes_("hello", 'utf-8')np.bytes_("hello", encoding='utf-8')np.str_("hello")np.str_(b"hello", 'utf-8')np.str_(b"hello", encoding='utf-8')
# Array-ish semanticsnp.int8().realnp.int16().imagnp.int32().datanp.int64().flags
np.uint8().itemsize * 2np.uint16().ndim + 1np.uint32().stridesnp.uint64().shape
# Time structuresnp.datetime64()np.datetime64(0, "D")np.datetime64(0, b"D")np.datetime64(0, ('ms', 3))np.datetime64("2019")np.datetime64(b"2019")np.datetime64("2019", "D")np.datetime64("2019", "us")np.datetime64("2019", "as")np.datetime64(np.datetime64())np.datetime64(np.datetime64())np.datetime64(dt.datetime(2000, 5, 3))np.datetime64(dt.datetime(2000, 5, 3), "D")np.datetime64(dt.datetime(2000, 5, 3), "us")np.datetime64(dt.datetime(2000, 5, 3), "as")np.datetime64(dt.date(2000, 5, 3))np.datetime64(dt.date(2000, 5, 3), "D")np.datetime64(dt.date(2000, 5, 3), "us")np.datetime64(dt.date(2000, 5, 3), "as")np.datetime64(None)np.datetime64(None, "D")
np.timedelta64()np.timedelta64(0)np.timedelta64(0, "D")np.timedelta64(0, ('ms', 3))np.timedelta64(0, b"D")np.timedelta64("3")np.timedelta64(b"5")np.timedelta64(np.timedelta64(2))np.timedelta64(dt.timedelta(2))np.timedelta64(None)np.timedelta64(None, "D")
np.void(1)np.void(np.int64(1))np.void(True)np.void(np.bool(True))np.void(b"test")np.void(np.bytes_("test"))np.void(object(), [("a", "O"), ("b", "O")])np.void(object(), dtype=[("a", "O"), ("b", "O")])
# Protocolsi8 = np.int64()u8 = np.uint64()f8 = np.float64()c16 = np.complex128()b = np.bool()td = np.timedelta64()U = np.str_("1")S = np.bytes_("1")AR = np.array(1, dtype=np.float64)
int(i8)int(u8)int(f8)int(b)int(td)int(U)int(S)int(AR)with pytest.warns(np.exceptions.ComplexWarning): int(c16)
float(i8)float(u8)float(f8)float(b_)float(td)float(U)float(S)float(AR)with pytest.warns(np.exceptions.ComplexWarning): float(c16)
complex(i8)complex(u8)complex(f8)complex(c16)complex(b_)complex(td)complex(U)complex(AR)
# Miscc16.dtypec16.realc16.imagc16.real.realc16.real.imagc16.ndimc16.sizec16.itemsizec16.shapec16.stridesc16.squeeze()c16.byteswap()c16.transpose()
# Aliasesnp.byte()np.short()np.intc()np.intp()np.int_()np.longlong()
np.ubyte()np.ushort()np.uintc()np.uintp()np.uint()np.ulonglong()
np.half()np.single()np.double()np.longdouble()
np.csingle()np.cdouble()np.clongdouble()
b.item()i8.item()u8.item()f8.item()c16.item()U.item()S.item()
b.tolist()i8.tolist()u8.tolist()f8.tolist()c16.tolist()U.tolist()S.tolist()
b.ravel()i8.ravel()u8.ravel()f8.ravel()c16.ravel()U.ravel()S.ravel()
b.flatten()i8.flatten()u8.flatten()f8.flatten()c16.flatten()U.flatten()S.flatten()
b.reshape(1)i8.reshape(1)u8.reshape(1)f8.reshape(1)c16.reshape(1)U.reshape(1)S.reshape(1)12345678910111213141516171819from typing import Any, NamedTuple
import numpy as np
# Subtype of tuple[int, int]class XYGrid(NamedTuple): x_axis: int y_axis: int
# Test variance of _ShapeT_codef accepts_2d(a: np.ndarray[tuple[int, int], Any]) -> None: return None
accepts_2d(np.empty(XYGrid(2, 2)))accepts_2d(np.zeros(XYGrid(2, 2), dtype=int))accepts_2d(np.ones(XYGrid(2, 2), dtype=int))accepts_2d(np.full(XYGrid(2, 2), fill_value=5, dtype=int))123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170"""Simple expression that should pass with mypy."""import operatorfrom collections.abc import Iterable
import numpy as npimport numpy.typing as npt
# Basic checksarray = np.array([1, 2])
def ndarray_func(x: npt.NDArray[np.float64]) -> npt.NDArray[np.float64]: return x
ndarray_func(np.array([1, 2], dtype=np.float64))array == 1array.dtype == float
# Dtype constructionnp.dtype(float)np.dtype(np.float64)np.dtype(None)np.dtype("float64")np.dtype(np.dtype(float))np.dtype(("U", 10))np.dtype((np.int32, (2, 2)))# Define the arguments on the previous line to prevent bidirectional# type inference in mypy from broadening the types.two_tuples_dtype = [("R", "u1"), ("G", "u1"), ("B", "u1")]np.dtype(two_tuples_dtype)
three_tuples_dtype = [("R", "u1", 2)]np.dtype(three_tuples_dtype)
mixed_tuples_dtype = [("R", "u1"), ("G", np.str_, 1)]np.dtype(mixed_tuples_dtype)
shape_tuple_dtype = [("R", "u1", (2, 2))]np.dtype(shape_tuple_dtype)
shape_like_dtype = [("R", "u1", (2, 2)), ("G", np.str_, 1)]np.dtype(shape_like_dtype)
object_dtype = [("field1", object)]np.dtype(object_dtype)
np.dtype((np.int32, (np.int8, 4)))
# Dtype comparisonnp.dtype(float) == floatnp.dtype(float) != np.float64np.dtype(float) < Nonenp.dtype(float) <= "float64"np.dtype(float) > np.dtype(float)np.dtype(float) >= np.dtype(("U", 10))
# Iteration and indexingdef iterable_func(x: Iterable[object]) -> Iterable[object]: return x
iterable_func(array)list(array)iter(array)zip(array, array)array[1]array[:]array[...]array[:] = 0
array_2d = np.ones((3, 3))array_2d[:2, :2]array_2d[:2, :2] = 0array_2d[..., 0]array_2d[..., 0] = 2array_2d[-1, -1] = None
array_obj = np.zeros(1, dtype=np.object_)array_obj[0] = slice(None)
# Other special methodslen(array)str(array)array_scalar = np.array(1)int(array_scalar)float(array_scalar)complex(array_scalar)bytes(array_scalar)operator.index(array_scalar)bool(array_scalar)
# comparisonsarray < 1array <= 1array == 1array != 1array > 1array >= 11 < array1 <= array1 == array1 != array1 > array1 >= array
# binary arithmeticarray + 11 + arrayarray += 1
array - 11 - arrayarray -= 1
array * 11 * arrayarray *= 1
nonzero_array = np.array([1, 2])array / 11 / nonzero_arrayfloat_array = np.array([1.0, 2.0])float_array /= 1
array // 11 // nonzero_arrayarray //= 1
array % 11 % nonzero_arrayarray %= 1
divmod(array, 1)divmod(1, nonzero_array)
array ** 11 ** arrayarray **= 1
array << 11 << arrayarray <<= 1
array >> 11 >> arrayarray >>= 1
array & 11 & arrayarray &= 1
array ^ 11 ^ arrayarray ^= 1
array | 11 | arrayarray |= 1
# unary arithmetic-array+arrayabs(array)~array
# Other methodsarray.transpose()
array @ array12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364"""Typing tests for `numpy._core._ufunc_config`."""
import numpy as np
def func1(a: str, b: int) -> None: return None
def func2(a: str, b: int, c: float = 1.0) -> None: return None
def func3(a: str, b: int) -> int: return 0
class Write1: def write(self, a: str) -> None: return None
class Write2: def write(self, a: str, b: int = 1) -> None: return None
class Write3: def write(self, a: str) -> int: return 0
_err_default = np.geterr()_bufsize_default = np.getbufsize()_errcall_default = np.geterrcall()
try: np.seterr(all=None) np.seterr(divide="ignore") np.seterr(over="warn") np.seterr(under="call") np.seterr(invalid="raise") np.geterr()
np.setbufsize(4096) np.getbufsize()
np.seterrcall(func1) np.seterrcall(func2) np.seterrcall(func3) np.seterrcall(Write1()) np.seterrcall(Write2()) np.seterrcall(Write3()) np.geterrcall()
with np.errstate(call=func1, all="call"): pass with np.errstate(call=Write1(), divide="log", over="log"): pass
finally: np.seterr(**_err_default) np.setbufsize(_bufsize_default) np.seterrcall(_errcall_default)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152from __future__ import annotations
from typing import Any
import numpy as np
class Object: def __ceil__(self) -> Object: return self
def __floor__(self) -> Object: return self
def __trunc__(self) -> Object: return self
def __ge__(self, value: object) -> bool: return True
def __array__(self, dtype: np.typing.DTypeLike | None = None, copy: bool | None = None) -> np.ndarray[Any, np.dtype[np.object_]]: ret = np.empty((), dtype=object) ret[()] = self return ret
AR_LIKE_b = [True, True, False]AR_LIKE_u = [np.uint32(1), np.uint32(2), np.uint32(3)]AR_LIKE_i = [1, 2, 3]AR_LIKE_f = [1.0, 2.0, 3.0]AR_LIKE_O = [Object(), Object(), Object()]AR_U: np.ndarray[Any, np.dtype[np.str_]] = np.zeros(3, dtype="U5")
np.fix(AR_LIKE_b) # type: ignore[deprecated]np.fix(AR_LIKE_u) # type: ignore[deprecated]np.fix(AR_LIKE_i) # type: ignore[deprecated]np.fix(AR_LIKE_f) # type: ignore[deprecated]np.fix(AR_LIKE_O) # type: ignore[deprecated]np.fix(AR_LIKE_f, out=AR_U) # type: ignore[deprecated]
np.isposinf(AR_LIKE_b)np.isposinf(AR_LIKE_u)np.isposinf(AR_LIKE_i)np.isposinf(AR_LIKE_f)np.isposinf(AR_LIKE_f, out=AR_U)
np.isneginf(AR_LIKE_b)np.isneginf(AR_LIKE_u)np.isneginf(AR_LIKE_i)np.isneginf(AR_LIKE_f)np.isneginf(AR_LIKE_f, out=AR_U)12345678910111213141516import numpy as np
np.sin(1)np.sin([1, 2, 3])np.sin(1, out=np.empty(1))np.matmul(np.ones((2, 2, 2)), np.ones((2, 2, 2)), axes=[(0, 1), (0, 1), (0, 1)])np.sin(1, signature="D->D")# NOTE: `np.generic` subclasses are not guaranteed to support addition;# re-enable this we can infer the exact return type of `np.sin(...)`.## np.sin(1) + np.sin(1)np.sin.types[0]np.sin.__name__np.sin.__doc__
np.abs(np.array([1]))123456import numpy.exceptions as ex
ex.AxisError("test")ex.AxisError(1, ndim=2)ex.AxisError(1, ndim=2, msg_prefix="error")ex.AxisError(1, ndim=2, msg_prefix=None)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719import datetime as dtfrom typing import Any, assert_type
import numpy as npimport numpy.typing as nptfrom numpy._typing import _64Bit, _128Bit
b: boolc: complexf: floati: int
c16: np.complex128c8: np.complex64
# Can't directly import `np.float128` as it is not available on all platformsf16: np.floating[_128Bit]f8: np.float64f4: np.float32
i8: np.int64i4: np.int32
u8: np.uint64u4: np.uint32
b_: np.bool
M8: np.datetime64M8_none: np.datetime64[None]M8_date: np.datetime64[dt.date]M8_time: np.datetime64[dt.datetime]M8_int: np.datetime64[int]date: dt.datetime: dt.datetime
m8: np.timedelta64m8_none: np.timedelta64[None]m8_int: np.timedelta64[int]m8_delta: np.timedelta64[dt.timedelta]delta: dt.timedelta
AR_b: npt.NDArray[np.bool]AR_u: npt.NDArray[np.uint32]AR_i: npt.NDArray[np.int64]AR_f: npt.NDArray[np.float64]AR_c: npt.NDArray[np.complex128]AR_m: npt.NDArray[np.timedelta64]AR_M: npt.NDArray[np.datetime64]AR_O: npt.NDArray[np.object_]AR_S: npt.NDArray[np.bytes_]AR_U: npt.NDArray[np.str_]AR_T: np.ndarray[tuple[Any, ...], np.dtypes.StringDType]AR_floating: npt.NDArray[np.floating]AR_number: npt.NDArray[np.number]AR_Any: npt.NDArray[Any]
AR_LIKE_b: list[bool]AR_LIKE_u: list[np.uint32]AR_LIKE_i: list[int]AR_LIKE_f: list[float]AR_LIKE_c: list[complex]AR_LIKE_m: list[np.timedelta64]AR_LIKE_M: list[np.datetime64]AR_LIKE_O: list[np.object_]
# Array subtraction
assert_type(AR_number - AR_number, npt.NDArray[np.number])
assert_type(AR_b - AR_LIKE_u, npt.NDArray[np.uint32])assert_type(AR_b - AR_LIKE_i, npt.NDArray[np.signedinteger])assert_type(AR_b - AR_LIKE_f, npt.NDArray[np.floating])assert_type(AR_b - AR_LIKE_c, npt.NDArray[np.complexfloating])assert_type(AR_b - AR_LIKE_m, npt.NDArray[np.timedelta64])assert_type(AR_b - AR_LIKE_O, Any)
assert_type(AR_LIKE_u - AR_b, npt.NDArray[np.uint32])assert_type(AR_LIKE_i - AR_b, npt.NDArray[np.signedinteger])assert_type(AR_LIKE_f - AR_b, npt.NDArray[np.floating])assert_type(AR_LIKE_c - AR_b, npt.NDArray[np.complexfloating])assert_type(AR_LIKE_m - AR_b, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_M - AR_b, npt.NDArray[np.datetime64])assert_type(AR_LIKE_O - AR_b, Any)
assert_type(AR_u - AR_LIKE_b, npt.NDArray[np.uint32])assert_type(AR_u - AR_LIKE_u, npt.NDArray[np.unsignedinteger])assert_type(AR_u - AR_LIKE_i, npt.NDArray[np.signedinteger])assert_type(AR_u - AR_LIKE_f, npt.NDArray[np.floating])assert_type(AR_u - AR_LIKE_c, npt.NDArray[np.complexfloating])assert_type(AR_u - AR_LIKE_m, npt.NDArray[np.timedelta64])assert_type(AR_u - AR_LIKE_O, Any)
assert_type(AR_LIKE_b - AR_u, npt.NDArray[np.uint32])assert_type(AR_LIKE_u - AR_u, npt.NDArray[np.unsignedinteger])assert_type(AR_LIKE_i - AR_u, npt.NDArray[np.signedinteger])assert_type(AR_LIKE_f - AR_u, npt.NDArray[np.floating])assert_type(AR_LIKE_c - AR_u, npt.NDArray[np.complexfloating])assert_type(AR_LIKE_m - AR_u, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_M - AR_u, npt.NDArray[np.datetime64])assert_type(AR_LIKE_O - AR_u, Any)
assert_type(AR_i - AR_LIKE_b, npt.NDArray[np.int64])assert_type(AR_i - AR_LIKE_u, npt.NDArray[np.signedinteger])assert_type(AR_i - AR_LIKE_i, npt.NDArray[np.signedinteger])assert_type(AR_i - AR_LIKE_f, npt.NDArray[np.floating])assert_type(AR_i - AR_LIKE_c, npt.NDArray[np.complexfloating])assert_type(AR_i - AR_LIKE_m, npt.NDArray[np.timedelta64])assert_type(AR_i - AR_LIKE_O, Any)
assert_type(AR_LIKE_b - AR_i, npt.NDArray[np.int64])assert_type(AR_LIKE_u - AR_i, npt.NDArray[np.signedinteger])assert_type(AR_LIKE_i - AR_i, npt.NDArray[np.signedinteger])assert_type(AR_LIKE_f - AR_i, npt.NDArray[np.floating])assert_type(AR_LIKE_c - AR_i, npt.NDArray[np.complexfloating])assert_type(AR_LIKE_m - AR_i, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_M - AR_i, npt.NDArray[np.datetime64])assert_type(AR_LIKE_O - AR_i, Any)
assert_type(AR_f - AR_LIKE_b, npt.NDArray[np.float64])assert_type(AR_f - AR_LIKE_u, npt.NDArray[np.float64])assert_type(AR_f - AR_LIKE_i, npt.NDArray[np.float64])assert_type(AR_f - AR_LIKE_f, npt.NDArray[np.float64])assert_type(AR_f - AR_LIKE_c, npt.NDArray[np.complexfloating])assert_type(AR_f - AR_LIKE_O, Any)
assert_type(AR_LIKE_b - AR_f, npt.NDArray[np.float64])assert_type(AR_LIKE_u - AR_f, npt.NDArray[np.float64])assert_type(AR_LIKE_i - AR_f, npt.NDArray[np.float64])assert_type(AR_LIKE_f - AR_f, npt.NDArray[np.float64])assert_type(AR_LIKE_c - AR_f, npt.NDArray[np.complexfloating])assert_type(AR_LIKE_O - AR_f, Any)
assert_type(AR_c - AR_LIKE_b, npt.NDArray[np.complex128])assert_type(AR_c - AR_LIKE_u, npt.NDArray[np.complex128])assert_type(AR_c - AR_LIKE_i, npt.NDArray[np.complex128])assert_type(AR_c - AR_LIKE_f, npt.NDArray[np.complex128])assert_type(AR_c - AR_LIKE_c, npt.NDArray[np.complex128])assert_type(AR_c - AR_LIKE_O, Any)
assert_type(AR_LIKE_b - AR_c, npt.NDArray[np.complex128])assert_type(AR_LIKE_u - AR_c, npt.NDArray[np.complex128])assert_type(AR_LIKE_i - AR_c, npt.NDArray[np.complex128])assert_type(AR_LIKE_f - AR_c, npt.NDArray[np.complex128])assert_type(AR_LIKE_c - AR_c, npt.NDArray[np.complex128])assert_type(AR_LIKE_O - AR_c, Any)
assert_type(AR_m - AR_LIKE_b, npt.NDArray[np.timedelta64])assert_type(AR_m - AR_LIKE_u, npt.NDArray[np.timedelta64])assert_type(AR_m - AR_LIKE_i, npt.NDArray[np.timedelta64])assert_type(AR_m - AR_LIKE_m, npt.NDArray[np.timedelta64])assert_type(AR_m - AR_LIKE_O, Any)
assert_type(AR_LIKE_b - AR_m, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_u - AR_m, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_i - AR_m, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_m - AR_m, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_M - AR_m, npt.NDArray[np.datetime64])assert_type(AR_LIKE_O - AR_m, Any)
assert_type(AR_M - AR_LIKE_b, npt.NDArray[np.datetime64])assert_type(AR_M - AR_LIKE_u, npt.NDArray[np.datetime64])assert_type(AR_M - AR_LIKE_i, npt.NDArray[np.datetime64])assert_type(AR_M - AR_LIKE_m, npt.NDArray[np.datetime64])assert_type(AR_M - AR_LIKE_M, npt.NDArray[np.timedelta64])assert_type(AR_M - AR_LIKE_O, Any)
assert_type(AR_LIKE_M - AR_M, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_O - AR_M, Any)
assert_type(AR_O - AR_LIKE_b, Any)assert_type(AR_O - AR_LIKE_u, Any)assert_type(AR_O - AR_LIKE_i, Any)assert_type(AR_O - AR_LIKE_f, Any)assert_type(AR_O - AR_LIKE_c, Any)assert_type(AR_O - AR_LIKE_m, Any)assert_type(AR_O - AR_LIKE_M, Any)assert_type(AR_O - AR_LIKE_O, Any)
assert_type(AR_LIKE_b - AR_O, Any)assert_type(AR_LIKE_u - AR_O, Any)assert_type(AR_LIKE_i - AR_O, Any)assert_type(AR_LIKE_f - AR_O, Any)assert_type(AR_LIKE_c - AR_O, Any)assert_type(AR_LIKE_m - AR_O, Any)assert_type(AR_LIKE_M - AR_O, Any)assert_type(AR_LIKE_O - AR_O, Any)
# Array "true" division
assert_type(AR_f / b, npt.NDArray[np.float64])assert_type(AR_f / i, npt.NDArray[np.float64])assert_type(AR_f / f, npt.NDArray[np.float64])
assert_type(b / AR_f, npt.NDArray[np.float64])assert_type(i / AR_f, npt.NDArray[np.float64])assert_type(f / AR_f, npt.NDArray[np.float64])
assert_type(AR_b / AR_LIKE_b, npt.NDArray[np.float64])assert_type(AR_b / AR_LIKE_u, npt.NDArray[np.float64])assert_type(AR_b / AR_LIKE_i, npt.NDArray[np.float64])assert_type(AR_b / AR_LIKE_f, npt.NDArray[np.float64])assert_type(AR_b / AR_LIKE_O, Any)
assert_type(AR_LIKE_b / AR_b, npt.NDArray[np.float64])assert_type(AR_LIKE_u / AR_b, npt.NDArray[np.float64])assert_type(AR_LIKE_i / AR_b, npt.NDArray[np.float64])assert_type(AR_LIKE_f / AR_b, npt.NDArray[np.float64])assert_type(AR_LIKE_O / AR_b, Any)
assert_type(AR_u / AR_LIKE_b, npt.NDArray[np.float64])assert_type(AR_u / AR_LIKE_u, npt.NDArray[np.float64])assert_type(AR_u / AR_LIKE_i, npt.NDArray[np.float64])assert_type(AR_u / AR_LIKE_f, npt.NDArray[np.float64])assert_type(AR_u / AR_LIKE_O, Any)
assert_type(AR_LIKE_b / AR_u, npt.NDArray[np.float64])assert_type(AR_LIKE_u / AR_u, npt.NDArray[np.float64])assert_type(AR_LIKE_i / AR_u, npt.NDArray[np.float64])assert_type(AR_LIKE_f / AR_u, npt.NDArray[np.float64])assert_type(AR_LIKE_m / AR_u, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_O / AR_u, Any)
assert_type(AR_i / AR_LIKE_b, npt.NDArray[np.float64])assert_type(AR_i / AR_LIKE_u, npt.NDArray[np.float64])assert_type(AR_i / AR_LIKE_i, npt.NDArray[np.float64])assert_type(AR_i / AR_LIKE_f, npt.NDArray[np.float64])assert_type(AR_i / AR_LIKE_O, Any)
assert_type(AR_LIKE_b / AR_i, npt.NDArray[np.float64])assert_type(AR_LIKE_u / AR_i, npt.NDArray[np.float64])assert_type(AR_LIKE_i / AR_i, npt.NDArray[np.float64])assert_type(AR_LIKE_f / AR_i, npt.NDArray[np.float64])assert_type(AR_LIKE_m / AR_i, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_O / AR_i, Any)
assert_type(AR_f / AR_LIKE_b, npt.NDArray[np.float64])assert_type(AR_f / AR_LIKE_u, npt.NDArray[np.float64])assert_type(AR_f / AR_LIKE_i, npt.NDArray[np.float64])assert_type(AR_f / AR_LIKE_f, npt.NDArray[np.float64])assert_type(AR_f / AR_LIKE_O, Any)
assert_type(AR_LIKE_b / AR_f, npt.NDArray[np.float64])assert_type(AR_LIKE_u / AR_f, npt.NDArray[np.float64])assert_type(AR_LIKE_i / AR_f, npt.NDArray[np.float64])assert_type(AR_LIKE_f / AR_f, npt.NDArray[np.float64])assert_type(AR_LIKE_m / AR_f, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_O / AR_f, Any)
assert_type(AR_m / AR_LIKE_u, npt.NDArray[np.timedelta64])assert_type(AR_m / AR_LIKE_i, npt.NDArray[np.timedelta64])assert_type(AR_m / AR_LIKE_f, npt.NDArray[np.timedelta64])assert_type(AR_m / AR_LIKE_m, npt.NDArray[np.float64])assert_type(AR_m / AR_LIKE_O, Any)
assert_type(AR_LIKE_m / AR_m, npt.NDArray[np.float64])assert_type(AR_LIKE_O / AR_m, Any)
assert_type(AR_O / AR_LIKE_b, Any)assert_type(AR_O / AR_LIKE_u, Any)assert_type(AR_O / AR_LIKE_i, Any)assert_type(AR_O / AR_LIKE_f, Any)assert_type(AR_O / AR_LIKE_m, Any)assert_type(AR_O / AR_LIKE_M, Any)assert_type(AR_O / AR_LIKE_O, Any)
assert_type(AR_LIKE_b / AR_O, Any)assert_type(AR_LIKE_u / AR_O, Any)assert_type(AR_LIKE_i / AR_O, Any)assert_type(AR_LIKE_f / AR_O, Any)assert_type(AR_LIKE_m / AR_O, Any)assert_type(AR_LIKE_M / AR_O, Any)assert_type(AR_LIKE_O / AR_O, Any)
# Array floor division
assert_type(AR_b // AR_LIKE_b, npt.NDArray[np.int8])assert_type(AR_b // AR_LIKE_u, npt.NDArray[np.uint32])assert_type(AR_b // AR_LIKE_i, npt.NDArray[np.signedinteger])assert_type(AR_b // AR_LIKE_f, npt.NDArray[np.floating])assert_type(AR_b // AR_LIKE_O, Any)
assert_type(AR_LIKE_b // AR_b, npt.NDArray[np.int8])assert_type(AR_LIKE_u // AR_b, npt.NDArray[np.uint32])assert_type(AR_LIKE_i // AR_b, npt.NDArray[np.signedinteger])assert_type(AR_LIKE_f // AR_b, npt.NDArray[np.floating])assert_type(AR_LIKE_O // AR_b, Any)
assert_type(AR_u // AR_LIKE_b, npt.NDArray[np.uint32])assert_type(AR_u // AR_LIKE_u, npt.NDArray[np.unsignedinteger])assert_type(AR_u // AR_LIKE_i, npt.NDArray[np.signedinteger])assert_type(AR_u // AR_LIKE_f, npt.NDArray[np.floating])assert_type(AR_u // AR_LIKE_O, Any)
assert_type(AR_LIKE_b // AR_u, npt.NDArray[np.uint32])assert_type(AR_LIKE_u // AR_u, npt.NDArray[np.unsignedinteger])assert_type(AR_LIKE_i // AR_u, npt.NDArray[np.signedinteger])assert_type(AR_LIKE_f // AR_u, npt.NDArray[np.floating])assert_type(AR_LIKE_m // AR_u, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_O // AR_u, Any)
assert_type(AR_i // AR_LIKE_b, npt.NDArray[np.int64])assert_type(AR_i // AR_LIKE_u, npt.NDArray[np.signedinteger])assert_type(AR_i // AR_LIKE_i, npt.NDArray[np.signedinteger])assert_type(AR_i // AR_LIKE_f, npt.NDArray[np.floating])assert_type(AR_i // AR_LIKE_O, Any)
assert_type(AR_LIKE_b // AR_i, npt.NDArray[np.int64])assert_type(AR_LIKE_u // AR_i, npt.NDArray[np.signedinteger])assert_type(AR_LIKE_i // AR_i, npt.NDArray[np.signedinteger])assert_type(AR_LIKE_f // AR_i, npt.NDArray[np.floating])assert_type(AR_LIKE_m // AR_i, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_O // AR_i, Any)
assert_type(AR_f // AR_LIKE_b, npt.NDArray[np.float64])assert_type(AR_f // AR_LIKE_u, npt.NDArray[np.float64])assert_type(AR_f // AR_LIKE_i, npt.NDArray[np.float64])assert_type(AR_f // AR_LIKE_f, npt.NDArray[np.float64])assert_type(AR_f // AR_LIKE_O, Any)
assert_type(AR_LIKE_b // AR_f, npt.NDArray[np.float64])assert_type(AR_LIKE_u // AR_f, npt.NDArray[np.float64])assert_type(AR_LIKE_i // AR_f, npt.NDArray[np.float64])assert_type(AR_LIKE_f // AR_f, npt.NDArray[np.float64])assert_type(AR_LIKE_m // AR_f, npt.NDArray[np.timedelta64])assert_type(AR_LIKE_O // AR_f, Any)
assert_type(AR_m // AR_LIKE_u, npt.NDArray[np.timedelta64])assert_type(AR_m // AR_LIKE_i, npt.NDArray[np.timedelta64])assert_type(AR_m // AR_LIKE_f, npt.NDArray[np.timedelta64])assert_type(AR_m // AR_LIKE_m, npt.NDArray[np.int64])assert_type(AR_m // AR_LIKE_O, Any)
assert_type(AR_LIKE_m // AR_m, npt.NDArray[np.int64])assert_type(AR_LIKE_O // AR_m, Any)
assert_type(AR_O // AR_LIKE_b, Any)assert_type(AR_O // AR_LIKE_u, Any)assert_type(AR_O // AR_LIKE_i, Any)assert_type(AR_O // AR_LIKE_f, Any)assert_type(AR_O // AR_LIKE_m, Any)assert_type(AR_O // AR_LIKE_M, Any)assert_type(AR_O // AR_LIKE_O, Any)
assert_type(AR_LIKE_b // AR_O, Any)assert_type(AR_LIKE_u // AR_O, Any)assert_type(AR_LIKE_i // AR_O, Any)assert_type(AR_LIKE_f // AR_O, Any)assert_type(AR_LIKE_m // AR_O, Any)assert_type(AR_LIKE_M // AR_O, Any)assert_type(AR_LIKE_O // AR_O, Any)
# unary ops
assert_type(-f16, np.floating[_128Bit])assert_type(-c16, np.complex128)assert_type(-c8, np.complex64)assert_type(-f8, np.float64)assert_type(-f4, np.float32)assert_type(-i8, np.int64)assert_type(-i4, np.int32)assert_type(-u8, np.uint64)assert_type(-u4, np.uint32)assert_type(-m8, np.timedelta64)assert_type(-m8_none, np.timedelta64[None])assert_type(-m8_int, np.timedelta64[int])assert_type(-m8_delta, np.timedelta64[dt.timedelta])assert_type(-AR_f, npt.NDArray[np.float64])
assert_type(+f16, np.floating[_128Bit])assert_type(+c16, np.complex128)assert_type(+c8, np.complex64)assert_type(+f8, np.float64)assert_type(+f4, np.float32)assert_type(+i8, np.int64)assert_type(+i4, np.int32)assert_type(+u8, np.uint64)assert_type(+u4, np.uint32)assert_type(+m8_none, np.timedelta64[None])assert_type(+m8_int, np.timedelta64[int])assert_type(+m8_delta, np.timedelta64[dt.timedelta])assert_type(+AR_f, npt.NDArray[np.float64])
assert_type(abs(f16), np.floating[_128Bit])assert_type(abs(c16), np.float64)assert_type(abs(c8), np.float32)assert_type(abs(f8), np.float64)assert_type(abs(f4), np.float32)assert_type(abs(i8), np.int64)assert_type(abs(i4), np.int32)assert_type(abs(u8), np.uint64)assert_type(abs(u4), np.uint32)assert_type(abs(m8), np.timedelta64)assert_type(abs(m8_none), np.timedelta64[None])assert_type(abs(m8_int), np.timedelta64[int])assert_type(abs(m8_delta), np.timedelta64[dt.timedelta])assert_type(abs(b_), np.bool)assert_type(abs(AR_O), npt.NDArray[np.object_])
# Time structures
assert_type(M8 + m8, np.datetime64)assert_type(M8 + i, np.datetime64)assert_type(M8 + i8, np.datetime64)assert_type(M8 - M8, np.timedelta64)assert_type(M8 - i, np.datetime64)assert_type(M8 - i8, np.datetime64)
assert_type(M8_none + m8, np.datetime64[None])assert_type(M8_none + i, np.datetime64[None])assert_type(M8_none + i8, np.datetime64[None])assert_type(M8_none - M8, np.timedelta64[None])assert_type(M8_none - m8, np.datetime64[None])assert_type(M8_none - i, np.datetime64[None])assert_type(M8_none - i8, np.datetime64[None])
assert_type(m8 + m8, np.timedelta64)assert_type(m8 + i, np.timedelta64)assert_type(m8 + i8, np.timedelta64)assert_type(m8 - m8, np.timedelta64)assert_type(m8 - i, np.timedelta64)assert_type(m8 - i8, np.timedelta64)assert_type(m8 * f, np.timedelta64)assert_type(m8 * f4, np.timedelta64)assert_type(m8 * np.True_, np.timedelta64)assert_type(m8 / f, np.timedelta64)assert_type(m8 / f4, np.timedelta64)assert_type(m8 / m8, np.float64)assert_type(m8 // m8, np.int64)assert_type(m8 % m8, np.timedelta64)assert_type(divmod(m8, m8), tuple[np.int64, np.timedelta64])
assert_type(m8_none + m8, np.timedelta64[None])assert_type(m8_none + i, np.timedelta64[None])assert_type(m8_none + i8, np.timedelta64[None])assert_type(m8_none - i, np.timedelta64[None])assert_type(m8_none - i8, np.timedelta64[None])
assert_type(m8_int + i, np.timedelta64[int])assert_type(m8_int + m8_delta, np.timedelta64[int])assert_type(m8_int + m8, np.timedelta64[int | None])assert_type(m8_int - i, np.timedelta64[int])assert_type(m8_int - m8_delta, np.timedelta64[int])assert_type(m8_int - m8, np.timedelta64[int | None])
assert_type(m8_delta + date, dt.date)assert_type(m8_delta + time, dt.datetime)assert_type(m8_delta + delta, dt.timedelta)assert_type(m8_delta - delta, dt.timedelta)assert_type(m8_delta / delta, float)assert_type(m8_delta // delta, int)assert_type(m8_delta % delta, dt.timedelta)assert_type(divmod(m8_delta, delta), tuple[int, dt.timedelta])
# boolean
assert_type(b_ / b, np.float64)assert_type(b_ / b_, np.float64)assert_type(b_ / i, np.float64)assert_type(b_ / i8, np.float64)assert_type(b_ / i4, np.float64)assert_type(b_ / u8, np.float64)assert_type(b_ / u4, np.float64)assert_type(b_ / f, np.float64)assert_type(b_ / f16, np.floating[_128Bit])assert_type(b_ / f8, np.float64)assert_type(b_ / f4, np.float32)assert_type(b_ / c, np.complex128)assert_type(b_ / c16, np.complex128)assert_type(b_ / c8, np.complex64)
assert_type(b / b_, np.float64)assert_type(b_ / b_, np.float64)assert_type(i / b_, np.float64)assert_type(i8 / b_, np.float64)assert_type(i4 / b_, np.float64)assert_type(u8 / b_, np.float64)assert_type(u4 / b_, np.float64)assert_type(f / b_, np.float64)assert_type(f16 / b_, np.floating[_128Bit])assert_type(f8 / b_, np.float64)assert_type(f4 / b_, np.float32)assert_type(c / b_, np.complex128)assert_type(c16 / b_, np.complex128)assert_type(c8 / b_, np.complex64)
# Complex
assert_type(c16 + f16, np.complexfloating)assert_type(c16 + c16, np.complex128)assert_type(c16 + f8, np.complex128)assert_type(c16 + i8, np.complex128)assert_type(c16 + c8, np.complex128)assert_type(c16 + f4, np.complex128)assert_type(c16 + i4, np.complex128)assert_type(c16 + b_, np.complex128)assert_type(c16 + b, np.complex128)assert_type(c16 + c, np.complex128)assert_type(c16 + f, np.complex128)assert_type(c16 + AR_f, npt.NDArray[np.complex128])
assert_type(f16 + c16, np.complexfloating)assert_type(c16 + c16, np.complex128)assert_type(f8 + c16, np.complex128)assert_type(i8 + c16, np.complex128)assert_type(c8 + c16, np.complex128 | np.complex64)assert_type(f4 + c16, np.complexfloating)assert_type(i4 + c16, np.complex128)assert_type(b_ + c16, np.complex128)assert_type(b + c16, np.complex128)assert_type(c + c16, np.complex128)assert_type(f + c16, np.complex128)assert_type(AR_f + c16, npt.NDArray[np.complex128])
assert_type(c8 + f16, np.complex64 | np.complexfloating[_128Bit, _128Bit])assert_type(c8 + c16, np.complex64 | np.complex128)assert_type(c8 + f8, np.complex64 | np.complex128)assert_type(c8 + i8, np.complex64 | np.complexfloating[_64Bit, _64Bit])assert_type(c8 + c8, np.complex64)assert_type(c8 + f4, np.complex64)assert_type(c8 + i4, np.complex64)assert_type(c8 + b_, np.complex64)assert_type(c8 + b, np.complex64)assert_type(c8 + c, np.complex64 | np.complex128)assert_type(c8 + f, np.complex64 | np.complex128)assert_type(c8 + AR_f, npt.NDArray[np.complexfloating])
assert_type(f16 + c8, np.complexfloating[_128Bit, _128Bit] | np.complex64)assert_type(c16 + c8, np.complex128)assert_type(f8 + c8, np.complexfloating[_64Bit, _64Bit])assert_type(i8 + c8, np.complexfloating[_64Bit, _64Bit] | np.complex64)assert_type(c8 + c8, np.complex64)assert_type(f4 + c8, np.complex64)assert_type(i4 + c8, np.complex64)assert_type(b_ + c8, np.complex64)assert_type(b + c8, np.complex64)assert_type(c + c8, np.complex64 | np.complex128)assert_type(f + c8, np.complex64 | np.complex128)assert_type(AR_f + c8, npt.NDArray[np.complexfloating])
# Float
assert_type(f8 + f16, np.floating)assert_type(f8 + f8, np.float64)assert_type(f8 + i8, np.float64)assert_type(f8 + f4, np.float64)assert_type(f8 + i4, np.float64)assert_type(f8 + b_, np.float64)assert_type(f8 + b, np.float64)assert_type(f8 + c, np.float64 | np.complex128)assert_type(f8 + f, np.float64)assert_type(f8 + AR_f, npt.NDArray[np.float64])
assert_type(f16 + f8, np.floating)assert_type(f8 + f8, np.float64)assert_type(i8 + f8, np.float64)assert_type(f4 + f8, np.floating)assert_type(i4 + f8, np.float64)assert_type(b_ + f8, np.float64)assert_type(b + f8, np.float64)assert_type(c + f8, np.complex128 | np.float64)assert_type(f + f8, np.float64)assert_type(AR_f + f8, npt.NDArray[np.float64])
assert_type(f4 + f16, np.floating)assert_type(f4 + f8, np.floating)assert_type(f4 + i8, np.floating)assert_type(f4 + f4, np.float32)assert_type(f4 + i4, np.floating)assert_type(f4 + b_, np.float32)assert_type(f4 + b, np.float32)assert_type(f4 + c, np.complexfloating)assert_type(f4 + f, np.float32)assert_type(f4 + AR_f, npt.NDArray[np.float64])
assert_type(f16 + f4, np.floating)assert_type(f8 + f4, np.float64)assert_type(i8 + f4, np.floating)assert_type(f4 + f4, np.float32)assert_type(i4 + f4, np.floating)assert_type(b_ + f4, np.float32)assert_type(b + f4, np.float32)assert_type(c + f4, np.complexfloating)assert_type(f + f4, np.float32)assert_type(AR_f + f4, npt.NDArray[np.float64])
# Int
assert_type(i8 + i8, np.int64)assert_type(i8 + u8, Any)assert_type(i8 + i4, np.signedinteger)assert_type(i8 + u4, Any)assert_type(i8 + b_, np.int64)assert_type(i8 + b, np.int64)assert_type(i8 + c, np.complex128)assert_type(i8 + f, np.float64)assert_type(i8 + AR_f, npt.NDArray[np.float64])
assert_type(u8 + u8, np.uint64)assert_type(u8 + i4, Any)assert_type(u8 + u4, np.unsignedinteger)assert_type(u8 + b_, np.uint64)assert_type(u8 + b, np.uint64)assert_type(u8 + c, np.complex128)assert_type(u8 + f, np.float64)assert_type(u8 + AR_f, npt.NDArray[np.float64])
assert_type(i8 + i8, np.int64)assert_type(u8 + i8, Any)assert_type(i4 + i8, np.signedinteger)assert_type(u4 + i8, Any)assert_type(b_ + i8, np.int64)assert_type(b + i8, np.int64)assert_type(c + i8, np.complex128)assert_type(f + i8, np.float64)assert_type(AR_f + i8, npt.NDArray[np.float64])
assert_type(u8 + u8, np.uint64)assert_type(i4 + u8, Any)assert_type(u4 + u8, np.unsignedinteger)assert_type(b_ + u8, np.uint64)assert_type(b + u8, np.uint64)assert_type(c + u8, np.complex128)assert_type(f + u8, np.float64)assert_type(AR_f + u8, npt.NDArray[np.float64])
assert_type(i4 + i8, np.signedinteger)assert_type(i4 + i4, np.int32)assert_type(i4 + b_, np.int32)assert_type(i4 + b, np.int32)assert_type(i4 + AR_f, npt.NDArray[np.float64])
assert_type(u4 + i8, Any)assert_type(u4 + i4, Any)assert_type(u4 + u8, np.unsignedinteger)assert_type(u4 + u4, np.uint32)assert_type(u4 + b_, np.uint32)assert_type(u4 + b, np.uint32)assert_type(u4 + AR_f, npt.NDArray[np.float64])
assert_type(i8 + i4, np.signedinteger)assert_type(i4 + i4, np.int32)assert_type(b_ + i4, np.int32)assert_type(b + i4, np.int32)assert_type(AR_f + i4, npt.NDArray[np.float64])
assert_type(i8 + u4, Any)assert_type(i4 + u4, Any)assert_type(u8 + u4, np.unsignedinteger)assert_type(u4 + u4, np.uint32)assert_type(b_ + u4, np.uint32)assert_type(b + u4, np.uint32)assert_type(AR_f + u4, npt.NDArray[np.float64])
# Any
assert_type(AR_Any + 2, npt.NDArray[Any])
# regression tests for https://github.com/numpy/numpy/issues/28805
assert_type(AR_floating + f, npt.NDArray[np.floating])assert_type(AR_floating - f, npt.NDArray[np.floating])assert_type(AR_floating * f, npt.NDArray[np.floating])assert_type(AR_floating ** f, npt.NDArray[np.floating])assert_type(AR_floating / f, npt.NDArray[np.floating])assert_type(AR_floating // f, npt.NDArray[np.floating])assert_type(AR_floating % f, npt.NDArray[np.floating])assert_type(divmod(AR_floating, f), tuple[npt.NDArray[np.floating], npt.NDArray[np.floating]])
assert_type(f + AR_floating, npt.NDArray[np.floating])assert_type(f - AR_floating, npt.NDArray[np.floating])assert_type(f * AR_floating, npt.NDArray[np.floating])assert_type(f ** AR_floating, npt.NDArray[np.floating])assert_type(f / AR_floating, npt.NDArray[np.floating])assert_type(f // AR_floating, npt.NDArray[np.floating])assert_type(f % AR_floating, npt.NDArray[np.floating])assert_type(divmod(f, AR_floating), tuple[npt.NDArray[np.floating], npt.NDArray[np.floating]])
# character-like
assert_type(AR_S + b"", npt.NDArray[np.bytes_])assert_type(AR_S + [b""], npt.NDArray[np.bytes_])assert_type([b""] + AR_S, npt.NDArray[np.bytes_])assert_type(AR_S + AR_S, npt.NDArray[np.bytes_])
assert_type(AR_U + "", npt.NDArray[np.str_])assert_type(AR_U + [""], npt.NDArray[np.str_])assert_type("" + AR_U, npt.NDArray[np.str_])assert_type([""] + AR_U, npt.NDArray[np.str_])assert_type(AR_U + AR_U, npt.NDArray[np.str_])
assert_type(AR_T + "", np.ndarray[tuple[Any, ...], np.dtypes.StringDType])assert_type(AR_T + [""], np.ndarray[tuple[Any, ...], np.dtypes.StringDType])assert_type("" + AR_T, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])assert_type([""] + AR_T, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])assert_type(AR_T + AR_T, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])assert_type(AR_T + AR_U, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])assert_type(AR_U + AR_T, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])
assert_type(AR_S * i, np.ndarray[tuple[Any, ...], np.dtype[np.bytes_]])assert_type(AR_S * AR_LIKE_i, np.ndarray[tuple[Any, ...], np.dtype[np.bytes_]])assert_type(AR_S * AR_i, np.ndarray[tuple[Any, ...], np.dtype[np.bytes_]])assert_type(i * AR_S, np.ndarray[tuple[Any, ...], np.dtype[np.bytes_]])# mypy incorrectly infers `AR_LIKE_i * AR_S` as `list[int]`assert_type(AR_i * AR_S, np.ndarray[tuple[Any, ...], np.dtype[np.bytes_]])
assert_type(AR_U * i, np.ndarray[tuple[Any, ...], np.dtype[np.str_]])assert_type(AR_U * AR_LIKE_i, np.ndarray[tuple[Any, ...], np.dtype[np.str_]])assert_type(AR_U * AR_i, np.ndarray[tuple[Any, ...], np.dtype[np.str_]])assert_type(i * AR_U, np.ndarray[tuple[Any, ...], np.dtype[np.str_]])# mypy incorrectly infers `AR_LIKE_i * AR_U` as `list[int]`assert_type(AR_i * AR_U, np.ndarray[tuple[Any, ...], np.dtype[np.str_]])
assert_type(AR_T * i, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])assert_type(AR_T * AR_LIKE_i, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])assert_type(AR_T * AR_i, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])assert_type(i * AR_T, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])# mypy incorrectly infers `AR_LIKE_i * AR_T` as `list[int]`assert_type(AR_i * AR_T, np.ndarray[tuple[Any, ...], np.dtypes.StringDType])12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970from typing import Literal, Never, assert_type
import numpy as np
info = np.__array_namespace_info__()
assert_type(info.__module__, Literal["numpy"])
assert_type(info.default_device(), Literal["cpu"])assert_type(info.devices()[0], Literal["cpu"])assert_type(info.devices()[-1], Literal["cpu"])
assert_type(info.capabilities()["boolean indexing"], Literal[True])assert_type(info.capabilities()["data-dependent shapes"], Literal[True])
assert_type(info.default_dtypes()["real floating"], np.dtype[np.float64])assert_type(info.default_dtypes()["complex floating"], np.dtype[np.complex128])assert_type(info.default_dtypes()["integral"], np.dtype[np.int_])assert_type(info.default_dtypes()["indexing"], np.dtype[np.intp])
assert_type(info.dtypes()["bool"], np.dtype[np.bool])assert_type(info.dtypes()["int8"], np.dtype[np.int8])assert_type(info.dtypes()["uint8"], np.dtype[np.uint8])assert_type(info.dtypes()["float32"], np.dtype[np.float32])assert_type(info.dtypes()["complex64"], np.dtype[np.complex64])
assert_type(info.dtypes(kind="bool")["bool"], np.dtype[np.bool])assert_type(info.dtypes(kind="signed integer")["int64"], np.dtype[np.int64])assert_type(info.dtypes(kind="unsigned integer")["uint64"], np.dtype[np.uint64])assert_type(info.dtypes(kind="integral")["int32"], np.dtype[np.int32])assert_type(info.dtypes(kind="integral")["uint32"], np.dtype[np.uint32])assert_type(info.dtypes(kind="real floating")["float64"], np.dtype[np.float64])assert_type(info.dtypes(kind="complex floating")["complex128"], np.dtype[np.complex128])assert_type(info.dtypes(kind="numeric")["int16"], np.dtype[np.int16])assert_type(info.dtypes(kind="numeric")["uint16"], np.dtype[np.uint16])assert_type(info.dtypes(kind="numeric")["float64"], np.dtype[np.float64])assert_type(info.dtypes(kind="numeric")["complex128"], np.dtype[np.complex128])
assert_type(info.dtypes(kind=()), dict[Never, Never])
assert_type(info.dtypes(kind=("bool",))["bool"], np.dtype[np.bool])assert_type(info.dtypes(kind=("signed integer",))["int64"], np.dtype[np.int64])assert_type(info.dtypes(kind=("integral",))["uint32"], np.dtype[np.uint32])assert_type(info.dtypes(kind=("complex floating",))["complex128"], np.dtype[np.complex128])assert_type(info.dtypes(kind=("numeric",))["float64"], np.dtype[np.float64])
assert_type( info.dtypes(kind=("signed integer", "unsigned integer"))["int8"], np.dtype[np.int8],)assert_type( info.dtypes(kind=("signed integer", "unsigned integer"))["uint8"], np.dtype[np.uint8],)assert_type( info.dtypes(kind=("integral", "real floating", "complex floating"))["int16"], np.dtype[np.int16],)assert_type( info.dtypes(kind=("integral", "real floating", "complex floating"))["uint16"], np.dtype[np.uint16],)assert_type( info.dtypes(kind=("integral", "real floating", "complex floating"))["float32"], np.dtype[np.float32],)assert_type( info.dtypes(kind=("integral", "real floating", "complex floating"))["complex64"], np.dtype[np.complex64],)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279import sysfrom collections import dequefrom pathlib import Pathfrom typing import Any, Generic, TypeVar, assert_type
import numpy as npimport numpy.typing as npt
_ScalarT_co = TypeVar("_ScalarT_co", bound=np.generic, covariant=True)
class SubClass(npt.NDArray[_ScalarT_co]): ...
class IntoSubClass(Generic[_ScalarT_co]): def __array__(self) -> SubClass[_ScalarT_co]: ...
i8: np.int64
A: npt.NDArray[np.float64]B: SubClass[np.float64]C: list[int]D: SubClass[np.float64 | np.int64]E: IntoSubClass[np.float64 | np.int64]
mixed_shape: tuple[int, np.int64]
def func(i: int, j: int, **kwargs: Any) -> SubClass[np.float64]: ...
assert_type(np.empty_like(A), npt.NDArray[np.float64])assert_type(np.empty_like(B), SubClass[np.float64])assert_type(np.empty_like([1, 1.0]), npt.NDArray[Any])assert_type(np.empty_like(A, dtype=np.int64), npt.NDArray[np.int64])assert_type(np.empty_like(A, dtype="c16"), npt.NDArray[Any])
assert_type(np.array(A), npt.NDArray[np.float64])assert_type(np.array(B), npt.NDArray[np.float64])assert_type(np.array([1, 1.0]), npt.NDArray[Any])assert_type(np.array(deque([1, 2, 3])), npt.NDArray[Any])assert_type(np.array(A, dtype=np.int64), npt.NDArray[np.int64])assert_type(np.array(A, dtype="c16"), npt.NDArray[Any])assert_type(np.array(A, like=A), npt.NDArray[np.float64])assert_type(np.array(A, subok=True), npt.NDArray[np.float64])assert_type(np.array(B, subok=True), SubClass[np.float64])assert_type(np.array(B, subok=True, ndmin=0), SubClass[np.float64])assert_type(np.array(B, subok=True, ndmin=1), SubClass[np.float64])assert_type(np.array(D), npt.NDArray[np.float64 | np.int64])assert_type(np.array(E, subok=True), SubClass[np.float64 | np.int64])# https://github.com/numpy/numpy/issues/29245assert_type(np.array([], dtype=np.bool), npt.NDArray[np.bool])
assert_type(np.zeros([1, 5, 6]), npt.NDArray[np.float64])assert_type(np.zeros([1, 5, 6], dtype=np.int64), npt.NDArray[np.int64])assert_type(np.zeros([1, 5, 6], dtype="c16"), npt.NDArray[Any])assert_type(np.zeros(mixed_shape), npt.NDArray[np.float64])
assert_type(np.empty([1, 5, 6]), npt.NDArray[np.float64])assert_type(np.empty([1, 5, 6], dtype=np.int64), npt.NDArray[np.int64])assert_type(np.empty([1, 5, 6], dtype="c16"), npt.NDArray[Any])assert_type(np.empty(mixed_shape), npt.NDArray[np.float64])
assert_type(np.concatenate(A), npt.NDArray[np.float64])assert_type(np.concatenate([A, A]), npt.NDArray[Any]) # pyright correctly infers this as NDArray[float64]assert_type(np.concatenate([[1], A]), npt.NDArray[Any])assert_type(np.concatenate([[1], [1]]), npt.NDArray[Any])assert_type(np.concatenate((A, A)), npt.NDArray[np.float64])assert_type(np.concatenate(([1], [1])), npt.NDArray[Any])assert_type(np.concatenate([1, 1.0]), npt.NDArray[Any])assert_type(np.concatenate(A, dtype=np.int64), npt.NDArray[np.int64])assert_type(np.concatenate(A, dtype="c16"), npt.NDArray[Any])assert_type(np.concatenate([1, 1.0], out=A), npt.NDArray[np.float64])
assert_type(np.asarray(A), npt.NDArray[np.float64])assert_type(np.asarray(B), npt.NDArray[np.float64])assert_type(np.asarray([1, 1.0]), npt.NDArray[Any])assert_type(np.asarray(A, dtype=np.int64), npt.NDArray[np.int64])assert_type(np.asarray(A, dtype="c16"), npt.NDArray[Any])
assert_type(np.asanyarray(A), npt.NDArray[np.float64])assert_type(np.asanyarray(B), SubClass[np.float64])assert_type(np.asanyarray([1, 1.0]), npt.NDArray[Any])assert_type(np.asanyarray(A, dtype=np.int64), npt.NDArray[np.int64])assert_type(np.asanyarray(A, dtype="c16"), npt.NDArray[Any])
assert_type(np.ascontiguousarray(A), npt.NDArray[np.float64])assert_type(np.ascontiguousarray(B), npt.NDArray[np.float64])assert_type(np.ascontiguousarray([1, 1.0]), npt.NDArray[Any])assert_type(np.ascontiguousarray(A, dtype=np.int64), npt.NDArray[np.int64])assert_type(np.ascontiguousarray(A, dtype="c16"), npt.NDArray[Any])
assert_type(np.asfortranarray(A), npt.NDArray[np.float64])assert_type(np.asfortranarray(B), npt.NDArray[np.float64])assert_type(np.asfortranarray([1, 1.0]), npt.NDArray[Any])assert_type(np.asfortranarray(A, dtype=np.int64), npt.NDArray[np.int64])assert_type(np.asfortranarray(A, dtype="c16"), npt.NDArray[Any])
assert_type(np.fromstring("1 1 1", sep=" "), npt.NDArray[np.float64])assert_type(np.fromstring(b"1 1 1", sep=" "), npt.NDArray[np.float64])assert_type(np.fromstring("1 1 1", dtype=np.int64, sep=" "), npt.NDArray[np.int64])assert_type(np.fromstring(b"1 1 1", dtype=np.int64, sep=" "), npt.NDArray[np.int64])assert_type(np.fromstring("1 1 1", dtype="c16", sep=" "), npt.NDArray[Any])assert_type(np.fromstring(b"1 1 1", dtype="c16", sep=" "), npt.NDArray[Any])
assert_type(np.fromfile("test.txt", sep=" "), npt.NDArray[np.float64])assert_type(np.fromfile("test.txt", dtype=np.int64, sep=" "), npt.NDArray[np.int64])assert_type(np.fromfile("test.txt", dtype="c16", sep=" "), npt.NDArray[Any])with open("test.txt") as f: assert_type(np.fromfile(f, sep=" "), npt.NDArray[np.float64]) assert_type(np.fromfile(b"test.txt", sep=" "), npt.NDArray[np.float64]) assert_type(np.fromfile(Path("test.txt"), sep=" "), npt.NDArray[np.float64])
assert_type(np.fromiter("12345", np.float64), npt.NDArray[np.float64])assert_type(np.fromiter("12345", float), npt.NDArray[Any])
assert_type(np.frombuffer(A), npt.NDArray[np.float64])assert_type(np.frombuffer(A, dtype=np.int64), npt.NDArray[np.int64])assert_type(np.frombuffer(A, dtype="c16"), npt.NDArray[Any])
_x_bool: bool_x_int: int_x_float: float_x_timedelta: np.timedelta64_x_datetime: np.datetime64
assert_type(np.arange(False, True), np.ndarray[tuple[int], np.dtype[np.int_]])assert_type(np.arange(10), np.ndarray[tuple[int], np.dtype[np.int_]])assert_type(np.arange(0, 10, step=2), np.ndarray[tuple[int], np.dtype[np.int_]])assert_type(np.arange(10.0), np.ndarray[tuple[int], np.dtype[np.float64 | Any]])assert_type(np.arange(0, stop=10.0), np.ndarray[tuple[int], np.dtype[np.float64 | Any]])assert_type(np.arange(_x_timedelta), np.ndarray[tuple[int], np.dtype[np.timedelta64[Any]]])assert_type(np.arange(0, _x_timedelta), np.ndarray[tuple[int], np.dtype[np.timedelta64[Any]]])assert_type(np.arange(_x_datetime, _x_datetime), np.ndarray[tuple[int], np.dtype[np.datetime64[Any]]])assert_type(np.arange(10, dtype=np.float64), np.ndarray[tuple[int], np.dtype[np.float64]])assert_type(np.arange(0, 10, step=2, dtype=np.int16), np.ndarray[tuple[int], np.dtype[np.int16]])assert_type(np.arange(10, dtype=int), np.ndarray[tuple[int], np.dtype[np.int_]])assert_type(np.arange(0, 10, dtype="f8"), np.ndarray[tuple[int], np.dtype])# https://github.com/numpy/numpy/issues/30628assert_type(np.arange("2025-12-20", "2025-12-23", dtype="datetime64[D]"), np.ndarray[tuple[int], np.dtype[np.datetime64[Any]]])
assert_type(np.require(A), npt.NDArray[np.float64])assert_type(np.require(B), SubClass[np.float64])assert_type(np.require(B, requirements=None), SubClass[np.float64])assert_type(np.require(B, dtype=int), npt.NDArray[Any])assert_type(np.require(B, requirements="E"), npt.NDArray[Any])assert_type(np.require(B, requirements=["ENSUREARRAY"]), npt.NDArray[Any])assert_type(np.require(B, requirements={"F", "E"}), npt.NDArray[Any])assert_type(np.require(B, requirements=["C", "OWNDATA"]), SubClass[np.float64])assert_type(np.require(B, requirements="W"), SubClass[np.float64])assert_type(np.require(B, requirements="A"), SubClass[np.float64])assert_type(np.require(C), npt.NDArray[Any])
assert_type(np.linspace(0, 10), npt.NDArray[np.float64])assert_type(np.linspace(0, 10j), npt.NDArray[np.complexfloating])assert_type(np.linspace(0, 10, dtype=np.int64), npt.NDArray[np.int64])assert_type(np.linspace(0, 10, dtype=int), npt.NDArray[Any])assert_type(np.linspace(0, 10, retstep=True), tuple[npt.NDArray[np.float64], np.float64])assert_type(np.linspace(0j, 10, retstep=True), tuple[npt.NDArray[np.complexfloating], np.complexfloating])assert_type(np.linspace(0, 10, retstep=True, dtype=np.int64), tuple[npt.NDArray[np.int64], np.int64])assert_type(np.linspace(0j, 10, retstep=True, dtype=int), tuple[npt.NDArray[Any], Any])
assert_type(np.logspace(0, 10), npt.NDArray[np.float64])assert_type(np.logspace(0, 10j), npt.NDArray[np.complexfloating])assert_type(np.logspace(0, 10, dtype=np.int64), npt.NDArray[np.int64])assert_type(np.logspace(0, 10, dtype=int), npt.NDArray[Any])
assert_type(np.geomspace(0, 10), npt.NDArray[np.float64])assert_type(np.geomspace(0, 10j), npt.NDArray[np.complexfloating])assert_type(np.geomspace(0, 10, dtype=np.int64), npt.NDArray[np.int64])assert_type(np.geomspace(0, 10, dtype=int), npt.NDArray[Any])
assert_type(np.zeros_like(A), npt.NDArray[np.float64])assert_type(np.zeros_like(C), npt.NDArray[Any])assert_type(np.zeros_like(A, dtype=float), npt.NDArray[Any])assert_type(np.zeros_like(B), SubClass[np.float64])assert_type(np.zeros_like(B, dtype=np.int64), npt.NDArray[np.int64])
assert_type(np.ones_like(A), npt.NDArray[np.float64])assert_type(np.ones_like(C), npt.NDArray[Any])assert_type(np.ones_like(A, dtype=float), npt.NDArray[Any])assert_type(np.ones_like(B), SubClass[np.float64])assert_type(np.ones_like(B, dtype=np.int64), npt.NDArray[np.int64])
assert_type(np.full_like(A, i8), npt.NDArray[np.float64])assert_type(np.full_like(C, i8), npt.NDArray[Any])assert_type(np.full_like(A, i8, dtype=int), npt.NDArray[Any])assert_type(np.full_like(B, i8), SubClass[np.float64])assert_type(np.full_like(B, i8, dtype=np.int64), npt.NDArray[np.int64])
_size: int_shape_0d: tuple[()]_shape_1d: tuple[int]_shape_2d: tuple[int, int]_shape_nd: tuple[int, ...]_shape_like: list[int]
assert_type(np.ones(_shape_0d), np.ndarray[tuple[()], np.dtype[np.float64]])assert_type(np.ones(_size), np.ndarray[tuple[int], np.dtype[np.float64]])assert_type(np.ones(_shape_2d), np.ndarray[tuple[int, int], np.dtype[np.float64]])assert_type(np.ones(_shape_nd), np.ndarray[tuple[int, ...], np.dtype[np.float64]])assert_type(np.ones(_shape_1d, dtype=np.int64), np.ndarray[tuple[int], np.dtype[np.int64]])assert_type(np.ones(_shape_like), npt.NDArray[np.float64])assert_type( np.ones(_shape_like, dtype=np.dtypes.Int64DType()), np.ndarray[tuple[Any, ...], np.dtypes.Int64DType],)assert_type(np.ones(_shape_like, dtype=int), npt.NDArray[Any])assert_type(np.ones(mixed_shape), npt.NDArray[np.float64])
assert_type(np.full(_size, i8), np.ndarray[tuple[int], np.dtype[np.int64]])assert_type(np.full(_shape_2d, i8), np.ndarray[tuple[int, int], np.dtype[np.int64]])assert_type(np.full(_shape_like, i8), npt.NDArray[np.int64])assert_type(np.full(_shape_like, 42), npt.NDArray[Any])assert_type(np.full(_size, i8, dtype=np.float64), np.ndarray[tuple[int], np.dtype[np.float64]])assert_type(np.full(_size, i8, dtype=float), np.ndarray[tuple[int], np.dtype])assert_type(np.full(_shape_like, 42, dtype=float), npt.NDArray[Any])assert_type(np.full(_shape_0d, i8, dtype=object), np.ndarray[tuple[()], np.dtype])
assert_type(np.indices([1, 2, 3]), npt.NDArray[np.int_])assert_type(np.indices([1, 2, 3], sparse=True), tuple[npt.NDArray[np.int_], ...])
assert_type(np.fromfunction(func, (3, 5)), SubClass[np.float64])
assert_type(np.identity(3), np.ndarray[tuple[int, int], np.dtype[np.float64]])assert_type(np.identity(3, dtype=np.int8), np.ndarray[tuple[int, int], np.dtype[np.int8]])assert_type(np.identity(3, dtype=bool), np.ndarray[tuple[int, int], np.dtype[np.bool]])assert_type(np.identity(3, dtype="bool"), np.ndarray[tuple[int, int], np.dtype[np.bool]])assert_type(np.identity(3, dtype="b1"), np.ndarray[tuple[int, int], np.dtype[np.bool]])assert_type(np.identity(3, dtype="?"), np.ndarray[tuple[int, int], np.dtype[np.bool]])assert_type(np.identity(3, dtype=int), np.ndarray[tuple[int, int], np.dtype[np.int_ | Any]])assert_type(np.identity(3, dtype="int"), np.ndarray[tuple[int, int], np.dtype[np.int_ | Any]])assert_type(np.identity(3, dtype="n"), np.ndarray[tuple[int, int], np.dtype[np.int_ | Any]])assert_type(np.identity(3, dtype=float), np.ndarray[tuple[int, int], np.dtype[np.float64 | Any]])assert_type(np.identity(3, dtype="float"), np.ndarray[tuple[int, int], np.dtype[np.float64 | Any]])assert_type(np.identity(3, dtype="f8"), np.ndarray[tuple[int, int], np.dtype[np.float64 | Any]])assert_type(np.identity(3, dtype="d"), np.ndarray[tuple[int, int], np.dtype[np.float64 | Any]])assert_type(np.identity(3, dtype=complex), np.ndarray[tuple[int, int], np.dtype[np.complex128 | Any]])assert_type(np.identity(3, dtype="complex"), np.ndarray[tuple[int, int], np.dtype[np.complex128 | Any]])assert_type(np.identity(3, dtype="c16"), np.ndarray[tuple[int, int], np.dtype[np.complex128 | Any]])assert_type(np.identity(3, dtype="D"), np.ndarray[tuple[int, int], np.dtype[np.complex128 | Any]])
assert_type(np.atleast_1d(A), npt.NDArray[np.float64])assert_type(np.atleast_1d(C), npt.NDArray[Any])assert_type(np.atleast_1d(A, A), tuple[npt.NDArray[np.float64], npt.NDArray[np.float64]])assert_type(np.atleast_1d(A, C), tuple[npt.NDArray[Any], npt.NDArray[Any]])assert_type(np.atleast_1d(C, C), tuple[npt.NDArray[Any], npt.NDArray[Any]])assert_type(np.atleast_1d(A, A, A), tuple[npt.NDArray[np.float64], ...])assert_type(np.atleast_1d(C, C, C), tuple[npt.NDArray[Any], ...])
assert_type(np.atleast_2d(A), npt.NDArray[np.float64])assert_type(np.atleast_2d(A, A), tuple[npt.NDArray[np.float64], npt.NDArray[np.float64]])assert_type(np.atleast_2d(A, A, A), tuple[npt.NDArray[np.float64], ...])
assert_type(np.atleast_3d(A), npt.NDArray[np.float64])assert_type(np.atleast_3d(A, A), tuple[npt.NDArray[np.float64], npt.NDArray[np.float64]])assert_type(np.atleast_3d(A, A, A), tuple[npt.NDArray[np.float64], ...])
assert_type(np.vstack([A, A]), npt.NDArray[np.float64])assert_type(np.vstack([A, A], dtype=np.float32), npt.NDArray[np.float32])assert_type(np.vstack([A, C]), npt.NDArray[Any])assert_type(np.vstack([C, C]), npt.NDArray[Any])
assert_type(np.hstack([A, A]), npt.NDArray[np.float64])assert_type(np.hstack([A, A], dtype=np.float32), npt.NDArray[np.float32])
assert_type(np.stack([A, A]), npt.NDArray[np.float64])assert_type(np.stack([A, A], dtype=np.float32), npt.NDArray[np.float32])assert_type(np.stack([A, C]), npt.NDArray[Any])assert_type(np.stack([C, C]), npt.NDArray[Any])assert_type(np.stack([A, A], axis=0), npt.NDArray[np.float64])assert_type(np.stack([A, A], out=B), SubClass[np.float64])
assert_type(np.block([[A, A], [A, A]]), npt.NDArray[Any]) # pyright correctly infers this as NDArray[float64]assert_type(np.block(C), npt.NDArray[Any])
if sys.version_info >= (3, 12): from collections.abc import Buffer
def create_array(obj: npt.ArrayLike) -> npt.NDArray[Any]: ...
buffer: Buffer assert_type(create_array(buffer), npt.NDArray[Any])123456789101112131415161718192021222324252627from collections.abc import Mappingfrom typing import Any, SupportsIndex, assert_type
import numpy as npimport numpy.typing as npt
def mode_func( ar: npt.NDArray[np.number], width: tuple[int, int], iaxis: SupportsIndex, kwargs: Mapping[str, Any],) -> None: ...
AR_i8: npt.NDArray[np.int64]AR_f8: npt.NDArray[np.float64]AR_LIKE: list[int]
assert_type(np.pad(AR_i8, (2, 3), "constant"), npt.NDArray[np.int64])assert_type(np.pad(AR_LIKE, (2, 3), "constant"), npt.NDArray[Any])
assert_type(np.pad(AR_f8, (2, 3), mode_func), npt.NDArray[np.float64])assert_type(np.pad(AR_f8, (2, 3), mode_func, a=1, b=2), npt.NDArray[np.float64])
assert_type(np.pad(AR_i8, {-1: (2, 3)}), npt.NDArray[np.int64])assert_type(np.pad(AR_i8, {-2: 4}), npt.NDArray[np.int64])pad_width: dict[int, int | tuple[int, int]] = {-1: (2, 3), -2: 4}assert_type(np.pad(AR_i8, pad_width), npt.NDArray[np.int64])12345678910111213141516171819202122232425import contextlibfrom collections.abc import Callablefrom typing import assert_type
import numpy as npimport numpy.typing as nptfrom numpy._core.arrayprint import _FormatOptions
AR: npt.NDArray[np.int64]func_float: Callable[[np.floating], str]func_int: Callable[[np.integer], str]
assert_type(np.get_printoptions(), _FormatOptions)assert_type( np.array2string(AR, formatter={"float_kind": func_float, "int_kind": func_int}), str,)assert_type(np.format_float_scientific(1.0), str)assert_type(np.format_float_positional(1), str)assert_type(np.array_repr(AR), str)assert_type(np.array_str(AR), str)
assert_type(np.printoptions(), contextlib._GeneratorContextManager[_FormatOptions])with np.printoptions() as dct: assert_type(dct, _FormatOptions)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374from typing import Any, assert_type
import numpy as npimport numpy.typing as nptfrom numpy.lib._arraysetops_impl import ( UniqueAllResult, UniqueCountsResult, UniqueInverseResult,)
AR_b: npt.NDArray[np.bool]AR_i8: npt.NDArray[np.int64]AR_f8: npt.NDArray[np.float64]AR_M: npt.NDArray[np.datetime64]AR_O: npt.NDArray[np.object_]
AR_LIKE_f8: list[float]
assert_type(np.ediff1d(AR_b), npt.NDArray[np.int8])assert_type(np.ediff1d(AR_i8, to_end=[1, 2, 3]), npt.NDArray[np.int64])assert_type(np.ediff1d(AR_M), npt.NDArray[np.timedelta64])assert_type(np.ediff1d(AR_O), npt.NDArray[np.object_])assert_type(np.ediff1d(AR_LIKE_f8, to_begin=[1, 1.5]), npt.NDArray[Any])
assert_type(np.intersect1d(AR_i8, AR_i8), npt.NDArray[np.int64])assert_type(np.intersect1d(AR_M, AR_M, assume_unique=True), npt.NDArray[np.datetime64])assert_type(np.intersect1d(AR_f8, AR_i8), npt.NDArray[Any])assert_type( np.intersect1d(AR_f8, AR_f8, return_indices=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp], npt.NDArray[np.intp]],)
assert_type(np.setxor1d(AR_i8, AR_i8), npt.NDArray[np.int64])assert_type(np.setxor1d(AR_M, AR_M, assume_unique=True), npt.NDArray[np.datetime64])assert_type(np.setxor1d(AR_f8, AR_i8), npt.NDArray[Any])
assert_type(np.isin(AR_i8, AR_i8), npt.NDArray[np.bool])assert_type(np.isin(AR_M, AR_M, assume_unique=True), npt.NDArray[np.bool])assert_type(np.isin(AR_f8, AR_i8), npt.NDArray[np.bool])assert_type(np.isin(AR_f8, AR_LIKE_f8, invert=True), npt.NDArray[np.bool])
assert_type(np.union1d(AR_i8, AR_i8), npt.NDArray[np.int64])assert_type(np.union1d(AR_M, AR_M), npt.NDArray[np.datetime64])assert_type(np.union1d(AR_f8, AR_i8), npt.NDArray[Any])
assert_type(np.setdiff1d(AR_i8, AR_i8), npt.NDArray[np.int64])assert_type(np.setdiff1d(AR_M, AR_M, assume_unique=True), npt.NDArray[np.datetime64])assert_type(np.setdiff1d(AR_f8, AR_i8), npt.NDArray[Any])
assert_type(np.unique(AR_f8), npt.NDArray[np.float64])assert_type(np.unique(AR_LIKE_f8, axis=0), npt.NDArray[Any])assert_type(np.unique(AR_f8, return_index=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp]])assert_type(np.unique(AR_LIKE_f8, return_index=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp]])assert_type(np.unique(AR_f8, return_inverse=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp]])assert_type(np.unique(AR_LIKE_f8, return_inverse=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp]])assert_type(np.unique(AR_f8, return_counts=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp]])assert_type(np.unique(AR_LIKE_f8, return_counts=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp]])assert_type(np.unique(AR_f8, return_index=True, return_inverse=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp], npt.NDArray[np.intp]])assert_type(np.unique(AR_LIKE_f8, return_index=True, return_inverse=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp], npt.NDArray[np.intp]])assert_type(np.unique(AR_f8, return_index=True, return_counts=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp], npt.NDArray[np.intp]])assert_type(np.unique(AR_LIKE_f8, return_index=True, return_counts=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp], npt.NDArray[np.intp]])assert_type(np.unique(AR_f8, return_inverse=True, return_counts=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp], npt.NDArray[np.intp]])assert_type(np.unique(AR_LIKE_f8, return_inverse=True, return_counts=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp], npt.NDArray[np.intp]])assert_type(np.unique(AR_f8, return_index=True, return_inverse=True, return_counts=True), tuple[npt.NDArray[np.float64], npt.NDArray[np.intp], npt.NDArray[np.intp], npt.NDArray[np.intp]])assert_type(np.unique(AR_LIKE_f8, return_index=True, return_inverse=True, return_counts=True), tuple[npt.NDArray[Any], npt.NDArray[np.intp], npt.NDArray[np.intp], npt.NDArray[np.intp]])
assert_type(np.unique_all(AR_f8), UniqueAllResult[np.float64])assert_type(np.unique_all(AR_LIKE_f8), UniqueAllResult[Any])assert_type(np.unique_counts(AR_f8), UniqueCountsResult[np.float64])assert_type(np.unique_counts(AR_LIKE_f8), UniqueCountsResult[Any])assert_type(np.unique_inverse(AR_f8), UniqueInverseResult[np.float64])assert_type(np.unique_inverse(AR_LIKE_f8), UniqueInverseResult[Any])assert_type(np.unique_values(AR_f8), npt.NDArray[np.float64])assert_type(np.unique_values(AR_LIKE_f8), npt.NDArray[Any])123456789101112131415161718192021222324252627from collections.abc import Generatorfrom typing import Any, assert_type
import numpy as npimport numpy.typing as npt
AR_i8: npt.NDArray[np.int64]ar_iter = np.lib.Arrayterator(AR_i8)
assert_type(ar_iter.var, npt.NDArray[np.int64])assert_type(ar_iter.buf_size, int | None)assert_type(ar_iter.start, list[int])assert_type(ar_iter.stop, list[int])assert_type(ar_iter.step, list[int])assert_type(ar_iter.shape, tuple[Any, ...])assert_type(ar_iter.flat, Generator[np.int64])
assert_type(ar_iter.__array__(), npt.NDArray[np.int64])
for i in ar_iter: assert_type(i, npt.NDArray[np.int64])
assert_type(ar_iter[0], np.lib.Arrayterator[tuple[Any, ...], np.dtype[np.int64]])assert_type(ar_iter[...], np.lib.Arrayterator[tuple[Any, ...], np.dtype[np.int64]])assert_type(ar_iter[:], np.lib.Arrayterator[tuple[Any, ...], np.dtype[np.int64]])assert_type(ar_iter[0, 0, 0], np.lib.Arrayterator[tuple[Any, ...], np.dtype[np.int64]])assert_type(ar_iter[..., 0, :], np.lib.Arrayterator[tuple[Any, ...], np.dtype[np.int64]])123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166from typing import Literal as L, TypeAlias, assert_type
import numpy as npimport numpy.typing as npt
FalseType: TypeAlias = L[False]TrueType: TypeAlias = L[True]
i4: np.int32i8: np.int64
u4: np.uint32u8: np.uint64
b_: np.bool[bool]b0_: np.bool[FalseType]b1_: np.bool[TrueType]
b: boolb0: FalseTypeb1: TrueType
i: int
AR: npt.NDArray[np.int32]
assert_type(i8 << i8, np.int64)assert_type(i8 >> i8, np.int64)assert_type(i8 | i8, np.int64)assert_type(i8 ^ i8, np.int64)assert_type(i8 & i8, np.int64)
assert_type(i8 << AR, npt.NDArray[np.signedinteger])assert_type(i8 >> AR, npt.NDArray[np.signedinteger])assert_type(i8 | AR, npt.NDArray[np.signedinteger])assert_type(i8 ^ AR, npt.NDArray[np.signedinteger])assert_type(i8 & AR, npt.NDArray[np.signedinteger])
assert_type(i4 << i4, np.int32)assert_type(i4 >> i4, np.int32)assert_type(i4 | i4, np.int32)assert_type(i4 ^ i4, np.int32)assert_type(i4 & i4, np.int32)
assert_type(i8 << i4, np.signedinteger)assert_type(i8 >> i4, np.signedinteger)assert_type(i8 | i4, np.signedinteger)assert_type(i8 ^ i4, np.signedinteger)assert_type(i8 & i4, np.signedinteger)
assert_type(i8 << b_, np.int64)assert_type(i8 >> b_, np.int64)assert_type(i8 | b_, np.int64)assert_type(i8 ^ b_, np.int64)assert_type(i8 & b_, np.int64)
assert_type(i8 << b, np.int64)assert_type(i8 >> b, np.int64)assert_type(i8 | b, np.int64)assert_type(i8 ^ b, np.int64)assert_type(i8 & b, np.int64)
assert_type(u8 << u8, np.uint64)assert_type(u8 >> u8, np.uint64)assert_type(u8 | u8, np.uint64)assert_type(u8 ^ u8, np.uint64)assert_type(u8 & u8, np.uint64)
assert_type(u8 << AR, npt.NDArray[np.signedinteger])assert_type(u8 >> AR, npt.NDArray[np.signedinteger])assert_type(u8 | AR, npt.NDArray[np.signedinteger])assert_type(u8 ^ AR, npt.NDArray[np.signedinteger])assert_type(u8 & AR, npt.NDArray[np.signedinteger])
assert_type(u4 << u4, np.uint32)assert_type(u4 >> u4, np.uint32)assert_type(u4 | u4, np.uint32)assert_type(u4 ^ u4, np.uint32)assert_type(u4 & u4, np.uint32)
assert_type(u4 << i4, np.signedinteger)assert_type(u4 >> i4, np.signedinteger)assert_type(u4 | i4, np.signedinteger)assert_type(u4 ^ i4, np.signedinteger)assert_type(u4 & i4, np.signedinteger)
assert_type(u4 << i, np.uint32)assert_type(u4 >> i, np.uint32)assert_type(u4 | i, np.uint32)assert_type(u4 ^ i, np.uint32)assert_type(u4 & i, np.uint32)
assert_type(u8 << b_, np.uint64)assert_type(u8 >> b_, np.uint64)assert_type(u8 | b_, np.uint64)assert_type(u8 ^ b_, np.uint64)assert_type(u8 & b_, np.uint64)
assert_type(u8 << b, np.uint64)assert_type(u8 >> b, np.uint64)assert_type(u8 | b, np.uint64)assert_type(u8 ^ b, np.uint64)assert_type(u8 & b, np.uint64)
assert_type(b_ << b_, np.int8)assert_type(b_ >> b_, np.int8)assert_type(b_ | b_, np.bool)assert_type(b_ ^ b_, np.bool)assert_type(b_ & b_, np.bool)
assert_type(b_ << AR, npt.NDArray[np.signedinteger])assert_type(b_ >> AR, npt.NDArray[np.signedinteger])assert_type(b_ | AR, npt.NDArray[np.signedinteger])assert_type(b_ ^ AR, npt.NDArray[np.signedinteger])assert_type(b_ & AR, npt.NDArray[np.signedinteger])
assert_type(b_ << b, np.int8)assert_type(b_ >> b, np.int8)assert_type(b_ | b, np.bool)assert_type(b_ ^ b, np.bool)assert_type(b_ & b, np.bool)
assert_type(b_ << i, np.int_)assert_type(b_ >> i, np.int_)assert_type(b_ | i, np.bool | np.int_)assert_type(b_ ^ i, np.bool | np.int_)assert_type(b_ & i, np.bool | np.int_)
assert_type(~i8, np.int64)assert_type(~i4, np.int32)assert_type(~u8, np.uint64)assert_type(~u4, np.uint32)assert_type(~b_, np.bool)assert_type(~b0_, np.bool[TrueType])assert_type(~b1_, np.bool[FalseType])assert_type(~AR, npt.NDArray[np.int32])
assert_type(b_ | b0_, np.bool)assert_type(b0_ | b_, np.bool)assert_type(b_ | b1_, np.bool[TrueType])assert_type(b1_ | b_, np.bool[TrueType])
assert_type(b_ ^ b0_, np.bool)assert_type(b0_ ^ b_, np.bool)assert_type(b_ ^ b1_, np.bool)assert_type(b1_ ^ b_, np.bool)
assert_type(b_ & b0_, np.bool[FalseType])assert_type(b0_ & b_, np.bool[FalseType])assert_type(b_ & b1_, np.bool)assert_type(b1_ & b_, np.bool)
assert_type(b0_ | b0_, np.bool[FalseType])assert_type(b0_ | b1_, np.bool[TrueType])assert_type(b1_ | b0_, np.bool[TrueType])assert_type(b1_ | b1_, np.bool[TrueType])
assert_type(b0_ ^ b0_, np.bool[FalseType])assert_type(b0_ ^ b1_, np.bool[TrueType])assert_type(b1_ ^ b0_, np.bool[TrueType])assert_type(b1_ ^ b1_, np.bool[FalseType])
assert_type(b0_ & b0_, np.bool[FalseType])assert_type(b0_ & b1_, np.bool[FalseType])assert_type(b1_ & b0_, np.bool[FalseType])assert_type(b1_ & b1_, np.bool[TrueType])123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225from typing import TypeAlias, assert_type
import numpy as npimport numpy._typing as np_timport numpy.typing as npt
AR_T_alias: TypeAlias = np.ndarray[np_t._AnyShape, np.dtypes.StringDType]AR_TU_alias: TypeAlias = AR_T_alias | npt.NDArray[np.str_]
AR_U: npt.NDArray[np.str_]AR_S: npt.NDArray[np.bytes_]AR_T: AR_T_alias
assert_type(np.char.equal(AR_U, AR_U), npt.NDArray[np.bool])assert_type(np.char.equal(AR_S, AR_S), npt.NDArray[np.bool])assert_type(np.char.equal(AR_T, AR_T), npt.NDArray[np.bool])
assert_type(np.char.not_equal(AR_U, AR_U), npt.NDArray[np.bool])assert_type(np.char.not_equal(AR_S, AR_S), npt.NDArray[np.bool])assert_type(np.char.not_equal(AR_T, AR_T), npt.NDArray[np.bool])
assert_type(np.char.greater_equal(AR_U, AR_U), npt.NDArray[np.bool])assert_type(np.char.greater_equal(AR_S, AR_S), npt.NDArray[np.bool])assert_type(np.char.greater_equal(AR_T, AR_T), npt.NDArray[np.bool])
assert_type(np.char.less_equal(AR_U, AR_U), npt.NDArray[np.bool])assert_type(np.char.less_equal(AR_S, AR_S), npt.NDArray[np.bool])assert_type(np.char.less_equal(AR_T, AR_T), npt.NDArray[np.bool])
assert_type(np.char.greater(AR_U, AR_U), npt.NDArray[np.bool])assert_type(np.char.greater(AR_S, AR_S), npt.NDArray[np.bool])assert_type(np.char.greater(AR_T, AR_T), npt.NDArray[np.bool])
assert_type(np.char.less(AR_U, AR_U), npt.NDArray[np.bool])assert_type(np.char.less(AR_S, AR_S), npt.NDArray[np.bool])assert_type(np.char.less(AR_T, AR_T), npt.NDArray[np.bool])
assert_type(np.char.multiply(AR_U, 5), npt.NDArray[np.str_])assert_type(np.char.multiply(AR_S, [5, 4, 3]), npt.NDArray[np.bytes_])assert_type(np.char.multiply(AR_T, 5), AR_T_alias)
assert_type(np.char.mod(AR_U, "test"), npt.NDArray[np.str_])assert_type(np.char.mod(AR_S, "test"), npt.NDArray[np.bytes_])assert_type(np.char.mod(AR_T, "test"), AR_T_alias)
assert_type(np.char.capitalize(AR_U), npt.NDArray[np.str_])assert_type(np.char.capitalize(AR_S), npt.NDArray[np.bytes_])assert_type(np.char.capitalize(AR_T), AR_T_alias)
assert_type(np.char.center(AR_U, 5), npt.NDArray[np.str_])assert_type(np.char.center(AR_S, [2, 3, 4], b"a"), npt.NDArray[np.bytes_])assert_type(np.char.center(AR_T, 5), AR_T_alias)
assert_type(np.char.encode(AR_U), npt.NDArray[np.bytes_])assert_type(np.char.encode(AR_T), npt.NDArray[np.bytes_])assert_type(np.char.decode(AR_S), npt.NDArray[np.str_])
assert_type(np.char.expandtabs(AR_U), npt.NDArray[np.str_])assert_type(np.char.expandtabs(AR_S, tabsize=4), npt.NDArray[np.bytes_])assert_type(np.char.expandtabs(AR_T), AR_T_alias)
assert_type(np.char.join(AR_U, "_"), npt.NDArray[np.str_])assert_type(np.char.join(AR_S, [b"_", b""]), npt.NDArray[np.bytes_])assert_type(np.char.join(AR_T, "_"), AR_TU_alias)
assert_type(np.char.ljust(AR_U, 5), npt.NDArray[np.str_])assert_type(np.char.ljust(AR_S, [4, 3, 1], fillchar=[b"a", b"b", b"c"]), npt.NDArray[np.bytes_])assert_type(np.char.ljust(AR_S, [4, 3, 1], fillchar="a"), npt.NDArray[np.bytes_])assert_type(np.char.ljust(AR_T, 5), AR_T_alias)assert_type(np.char.ljust(AR_T, [4, 2, 1], fillchar=["a", "b", "c"]), AR_TU_alias)
assert_type(np.char.rjust(AR_U, 5), npt.NDArray[np.str_])assert_type(np.char.rjust(AR_S, [4, 3, 1], fillchar=[b"a", b"b", b"c"]), npt.NDArray[np.bytes_])assert_type(np.char.rjust(AR_T, 5), AR_T_alias)assert_type(np.char.rjust(AR_T, [4, 2, 1], fillchar=["a", "b", "c"]), AR_TU_alias)
assert_type(np.char.lstrip(AR_U), npt.NDArray[np.str_])assert_type(np.char.lstrip(AR_S, b"_"), npt.NDArray[np.bytes_])assert_type(np.char.lstrip(AR_T), AR_T_alias)assert_type(np.char.lstrip(AR_T, "_"), AR_TU_alias)
assert_type(np.char.rstrip(AR_U), npt.NDArray[np.str_])assert_type(np.char.rstrip(AR_S, b"_"), npt.NDArray[np.bytes_])assert_type(np.char.rstrip(AR_T), AR_T_alias)assert_type(np.char.rstrip(AR_T, "_"), AR_TU_alias)
assert_type(np.char.strip(AR_U), npt.NDArray[np.str_])assert_type(np.char.strip(AR_S, b"_"), npt.NDArray[np.bytes_])assert_type(np.char.strip(AR_T), AR_T_alias)assert_type(np.char.strip(AR_T, "_"), AR_TU_alias)
assert_type(np.char.count(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_])assert_type(np.char.count(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])assert_type(np.char.count(AR_T, AR_T, start=[1, 2, 3]), npt.NDArray[np.int_])assert_type(np.char.count(AR_T, ["a", "b", "c"], end=9), npt.NDArray[np.int_])
assert_type(np.char.partition(AR_U, "\n"), npt.NDArray[np.str_])assert_type(np.char.partition(AR_S, [b"a", b"b", b"c"]), npt.NDArray[np.bytes_])assert_type(np.char.partition(AR_T, "\n"), AR_TU_alias)
assert_type(np.char.rpartition(AR_U, "\n"), npt.NDArray[np.str_])assert_type(np.char.rpartition(AR_S, [b"a", b"b", b"c"]), npt.NDArray[np.bytes_])assert_type(np.char.rpartition(AR_T, "\n"), AR_TU_alias)
assert_type(np.char.replace(AR_U, "_", "-"), npt.NDArray[np.str_])assert_type(np.char.replace(AR_S, [b"_", b""], [b"a", b"b"]), npt.NDArray[np.bytes_])assert_type(np.char.replace(AR_T, "_", "_"), AR_TU_alias)
assert_type(np.char.split(AR_U, "_"), npt.NDArray[np.object_])assert_type(np.char.split(AR_S, maxsplit=[1, 2, 3]), npt.NDArray[np.object_])assert_type(np.char.split(AR_T, "_"), npt.NDArray[np.object_])
assert_type(np.char.rsplit(AR_U, "_"), npt.NDArray[np.object_])assert_type(np.char.rsplit(AR_S, maxsplit=[1, 2, 3]), npt.NDArray[np.object_])assert_type(np.char.rsplit(AR_T, "_"), npt.NDArray[np.object_])
assert_type(np.char.splitlines(AR_U), npt.NDArray[np.object_])assert_type(np.char.splitlines(AR_S, keepends=[True, True, False]), npt.NDArray[np.object_])assert_type(np.char.splitlines(AR_T), npt.NDArray[np.object_])
assert_type(np.char.lower(AR_U), npt.NDArray[np.str_])assert_type(np.char.lower(AR_S), npt.NDArray[np.bytes_])assert_type(np.char.lower(AR_T), AR_T_alias)
assert_type(np.char.upper(AR_U), npt.NDArray[np.str_])assert_type(np.char.upper(AR_S), npt.NDArray[np.bytes_])assert_type(np.char.upper(AR_T), AR_T_alias)
assert_type(np.char.swapcase(AR_U), npt.NDArray[np.str_])assert_type(np.char.swapcase(AR_S), npt.NDArray[np.bytes_])assert_type(np.char.swapcase(AR_T), AR_T_alias)
assert_type(np.char.title(AR_U), npt.NDArray[np.str_])assert_type(np.char.title(AR_S), npt.NDArray[np.bytes_])assert_type(np.char.title(AR_T), AR_T_alias)
assert_type(np.char.zfill(AR_U, 5), npt.NDArray[np.str_])assert_type(np.char.zfill(AR_S, [2, 3, 4]), npt.NDArray[np.bytes_])assert_type(np.char.zfill(AR_T, 5), AR_T_alias)
assert_type(np.char.endswith(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.bool])assert_type(np.char.endswith(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.bool])assert_type(np.char.endswith(AR_T, "a", start=[1, 2, 3]), npt.NDArray[np.bool])
assert_type(np.char.startswith(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.bool])assert_type(np.char.startswith(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.bool])assert_type(np.char.startswith(AR_T, "a", start=[1, 2, 3]), npt.NDArray[np.bool])
assert_type(np.char.find(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_])assert_type(np.char.find(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])assert_type(np.char.find(AR_T, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
assert_type(np.char.rfind(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_])assert_type(np.char.rfind(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])assert_type(np.char.rfind(AR_T, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
assert_type(np.char.index(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_])assert_type(np.char.index(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])assert_type(np.char.index(AR_T, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
assert_type(np.char.rindex(AR_U, "a", start=[1, 2, 3]), npt.NDArray[np.int_])assert_type(np.char.rindex(AR_S, [b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])assert_type(np.char.rindex(AR_T, "a", start=[1, 2, 3]), npt.NDArray[np.int_])
assert_type(np.char.isalpha(AR_U), npt.NDArray[np.bool])assert_type(np.char.isalpha(AR_S), npt.NDArray[np.bool])assert_type(np.char.isalpha(AR_T), npt.NDArray[np.bool])
assert_type(np.char.isalnum(AR_U), npt.NDArray[np.bool])assert_type(np.char.isalnum(AR_S), npt.NDArray[np.bool])assert_type(np.char.isalnum(AR_T), npt.NDArray[np.bool])
assert_type(np.char.isdecimal(AR_U), npt.NDArray[np.bool])assert_type(np.char.isdecimal(AR_T), npt.NDArray[np.bool])
assert_type(np.char.isdigit(AR_U), npt.NDArray[np.bool])assert_type(np.char.isdigit(AR_S), npt.NDArray[np.bool])assert_type(np.char.isdigit(AR_T), npt.NDArray[np.bool])
assert_type(np.char.islower(AR_U), npt.NDArray[np.bool])assert_type(np.char.islower(AR_S), npt.NDArray[np.bool])assert_type(np.char.islower(AR_T), npt.NDArray[np.bool])
assert_type(np.char.isnumeric(AR_U), npt.NDArray[np.bool])assert_type(np.char.isnumeric(AR_T), npt.NDArray[np.bool])
assert_type(np.char.isspace(AR_U), npt.NDArray[np.bool])assert_type(np.char.isspace(AR_S), npt.NDArray[np.bool])assert_type(np.char.isspace(AR_T), npt.NDArray[np.bool])
assert_type(np.char.istitle(AR_U), npt.NDArray[np.bool])assert_type(np.char.istitle(AR_S), npt.NDArray[np.bool])assert_type(np.char.istitle(AR_T), npt.NDArray[np.bool])
assert_type(np.char.isupper(AR_U), npt.NDArray[np.bool])assert_type(np.char.isupper(AR_S), npt.NDArray[np.bool])assert_type(np.char.isupper(AR_T), npt.NDArray[np.bool])
assert_type(np.char.str_len(AR_U), npt.NDArray[np.int_])assert_type(np.char.str_len(AR_S), npt.NDArray[np.int_])assert_type(np.char.str_len(AR_T), npt.NDArray[np.int_])
assert_type(np.char.translate(AR_U, ""), npt.NDArray[np.str_])assert_type(np.char.translate(AR_S, ""), npt.NDArray[np.bytes_])assert_type(np.char.translate(AR_T, ""), AR_T_alias)
assert_type(np.char.array(AR_U), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])assert_type(np.char.array(AR_S, order="K"), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])assert_type(np.char.array("bob", copy=True), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])assert_type(np.char.array(b"bob", itemsize=5), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])assert_type(np.char.array(1, unicode=False), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])assert_type(np.char.array(1, unicode=True), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])assert_type(np.char.array(1), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]] | np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])assert_type(np.char.array(AR_U, unicode=False), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])assert_type(np.char.array(AR_S, unicode=True), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])
assert_type(np.char.asarray(AR_U), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])assert_type(np.char.asarray(AR_S, order="K"), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])assert_type(np.char.asarray("bob"), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])assert_type(np.char.asarray(b"bob", itemsize=5), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])assert_type(np.char.asarray(1, unicode=False), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])assert_type(np.char.asarray(1, unicode=True), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])assert_type(np.char.asarray(1), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]] | np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])assert_type(np.char.asarray(AR_U, unicode=False), np.char.chararray[np_t._AnyShape, np.dtype[np.bytes_]])assert_type(np.char.asarray(AR_S, unicode=True), np.char.chararray[np_t._AnyShape, np.dtype[np.str_]])123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138from typing import Any, TypeAlias, assert_type
import numpy as npimport numpy.typing as npt
_BytesCharArray: TypeAlias = np.char.chararray[tuple[Any, ...], np.dtype[np.bytes_]]_StrCharArray: TypeAlias = np.char.chararray[tuple[Any, ...], np.dtype[np.str_]]
AR_U: _StrCharArrayAR_S: _BytesCharArray
assert_type(AR_U == AR_U, npt.NDArray[np.bool])assert_type(AR_S == AR_S, npt.NDArray[np.bool])
assert_type(AR_U != AR_U, npt.NDArray[np.bool])assert_type(AR_S != AR_S, npt.NDArray[np.bool])
assert_type(AR_U >= AR_U, npt.NDArray[np.bool])assert_type(AR_S >= AR_S, npt.NDArray[np.bool])
assert_type(AR_U <= AR_U, npt.NDArray[np.bool])assert_type(AR_S <= AR_S, npt.NDArray[np.bool])
assert_type(AR_U > AR_U, npt.NDArray[np.bool])assert_type(AR_S > AR_S, npt.NDArray[np.bool])
assert_type(AR_U < AR_U, npt.NDArray[np.bool])assert_type(AR_S < AR_S, npt.NDArray[np.bool])
assert_type(AR_U * 5, _StrCharArray)assert_type(AR_S * [5], _BytesCharArray)
assert_type(AR_U % "test", _StrCharArray)assert_type(AR_S % b"test", _BytesCharArray)
assert_type(AR_U.capitalize(), _StrCharArray)assert_type(AR_S.capitalize(), _BytesCharArray)
assert_type(AR_U.center(5), _StrCharArray)assert_type(AR_S.center([2, 3, 4], b"a"), _BytesCharArray)
assert_type(AR_U.encode(), _BytesCharArray)assert_type(AR_S.decode(), _StrCharArray)
assert_type(AR_U.expandtabs(), _StrCharArray)assert_type(AR_S.expandtabs(tabsize=4), _BytesCharArray)
assert_type(AR_U.join("_"), _StrCharArray)assert_type(AR_S.join([b"_", b""]), _BytesCharArray)
assert_type(AR_U.ljust(5), _StrCharArray)assert_type(AR_S.ljust([4, 3, 1], fillchar=[b"a", b"b", b"c"]), _BytesCharArray)assert_type(AR_S.ljust([4, 3, 1], fillchar="a"), _BytesCharArray)assert_type(AR_U.rjust(5), _StrCharArray)assert_type(AR_S.rjust([4, 3, 1], fillchar=[b"a", b"b", b"c"]), _BytesCharArray)
assert_type(AR_U.lstrip(), _StrCharArray)assert_type(AR_S.lstrip(chars=b"_"), _BytesCharArray)assert_type(AR_U.rstrip(), _StrCharArray)assert_type(AR_S.rstrip(chars=b"_"), _BytesCharArray)assert_type(AR_U.strip(), _StrCharArray)assert_type(AR_S.strip(chars=b"_"), _BytesCharArray)
assert_type(AR_U.partition("\n"), _StrCharArray)assert_type(AR_S.partition([b"a", b"b", b"c"]), _BytesCharArray)assert_type(AR_U.rpartition("\n"), _StrCharArray)assert_type(AR_S.rpartition([b"a", b"b", b"c"]), _BytesCharArray)
assert_type(AR_U.replace("_", "-"), _StrCharArray)assert_type(AR_S.replace([b"_", b""], [b"a", b"b"]), _BytesCharArray)
assert_type(AR_U.split("_"), npt.NDArray[np.object_])assert_type(AR_S.split(maxsplit=[1, 2, 3]), npt.NDArray[np.object_])assert_type(AR_U.rsplit("_"), npt.NDArray[np.object_])assert_type(AR_S.rsplit(maxsplit=[1, 2, 3]), npt.NDArray[np.object_])
assert_type(AR_U.splitlines(), npt.NDArray[np.object_])assert_type(AR_S.splitlines(keepends=[True, True, False]), npt.NDArray[np.object_])
assert_type(AR_U.swapcase(), _StrCharArray)assert_type(AR_S.swapcase(), _BytesCharArray)
assert_type(AR_U.title(), _StrCharArray)assert_type(AR_S.title(), _BytesCharArray)
assert_type(AR_U.upper(), _StrCharArray)assert_type(AR_S.upper(), _BytesCharArray)
assert_type(AR_U.zfill(5), _StrCharArray)assert_type(AR_S.zfill([2, 3, 4]), _BytesCharArray)
assert_type(AR_U.count("a", start=[1, 2, 3]), npt.NDArray[np.int_])assert_type(AR_S.count([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
assert_type(AR_U.endswith("a", start=[1, 2, 3]), npt.NDArray[np.bool])assert_type(AR_S.endswith([b"a", b"b", b"c"], end=9), npt.NDArray[np.bool])assert_type(AR_U.startswith("a", start=[1, 2, 3]), npt.NDArray[np.bool])assert_type(AR_S.startswith([b"a", b"b", b"c"], end=9), npt.NDArray[np.bool])
assert_type(AR_U.find("a", start=[1, 2, 3]), npt.NDArray[np.int_])assert_type(AR_S.find([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])assert_type(AR_U.rfind("a", start=[1, 2, 3]), npt.NDArray[np.int_])assert_type(AR_S.rfind([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
assert_type(AR_U.index("a", start=[1, 2, 3]), npt.NDArray[np.int_])assert_type(AR_S.index([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])assert_type(AR_U.rindex("a", start=[1, 2, 3]), npt.NDArray[np.int_])assert_type(AR_S.rindex([b"a", b"b", b"c"], end=9), npt.NDArray[np.int_])
assert_type(AR_U.isalpha(), npt.NDArray[np.bool])assert_type(AR_S.isalpha(), npt.NDArray[np.bool])
assert_type(AR_U.isalnum(), npt.NDArray[np.bool])assert_type(AR_S.isalnum(), npt.NDArray[np.bool])
assert_type(AR_U.isdecimal(), npt.NDArray[np.bool])assert_type(AR_S.isdecimal(), npt.NDArray[np.bool])
assert_type(AR_U.isdigit(), npt.NDArray[np.bool])assert_type(AR_S.isdigit(), npt.NDArray[np.bool])
assert_type(AR_U.islower(), npt.NDArray[np.bool])assert_type(AR_S.islower(), npt.NDArray[np.bool])
assert_type(AR_U.isnumeric(), npt.NDArray[np.bool])assert_type(AR_S.isnumeric(), npt.NDArray[np.bool])
assert_type(AR_U.isspace(), npt.NDArray[np.bool])assert_type(AR_S.isspace(), npt.NDArray[np.bool])
assert_type(AR_U.istitle(), npt.NDArray[np.bool])assert_type(AR_S.istitle(), npt.NDArray[np.bool])
assert_type(AR_U.isupper(), npt.NDArray[np.bool])assert_type(AR_S.isupper(), npt.NDArray[np.bool])
assert_type(AR_U.__array_finalize__(object()), None)assert_type(AR_S.__array_finalize__(object()), None)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264import decimalimport fractionsfrom typing import assert_type
import numpy as npimport numpy.typing as npt
c16 = np.complex128()f8 = np.float64()i8 = np.int64()u8 = np.uint64()
c8 = np.complex64()f4 = np.float32()i4 = np.int32()u4 = np.uint32()
dt = np.datetime64(0, "D")td = np.timedelta64(0, "D")
b_ = np.bool()
b = Falsec = complex()f = 0.0i = 0
AR = np.array([0], dtype=np.int64)AR.setflags(write=False)
SEQ = (0, 1, 2, 3, 4)
# object-like comparisons
assert_type(i8 > fractions.Fraction(1, 5), np.bool)assert_type(i8 > [fractions.Fraction(1, 5)], npt.NDArray[np.bool])assert_type(i8 > decimal.Decimal("1.5"), np.bool)assert_type(i8 > [decimal.Decimal("1.5")], npt.NDArray[np.bool])
# Time structures
assert_type(dt > dt, np.bool)
assert_type(td > td, np.bool)assert_type(td > i, np.bool)assert_type(td > i4, np.bool)assert_type(td > i8, np.bool)
assert_type(td > AR, npt.NDArray[np.bool])assert_type(td > SEQ, npt.NDArray[np.bool])assert_type(AR > SEQ, npt.NDArray[np.bool])assert_type(AR > td, npt.NDArray[np.bool])assert_type(SEQ > td, npt.NDArray[np.bool])assert_type(SEQ > AR, npt.NDArray[np.bool])
# boolean
assert_type(b_ > b, np.bool)assert_type(b_ > b_, np.bool)assert_type(b_ > i, np.bool)assert_type(b_ > i8, np.bool)assert_type(b_ > i4, np.bool)assert_type(b_ > u8, np.bool)assert_type(b_ > u4, np.bool)assert_type(b_ > f, np.bool)assert_type(b_ > f8, np.bool)assert_type(b_ > f4, np.bool)assert_type(b_ > c, np.bool)assert_type(b_ > c16, np.bool)assert_type(b_ > c8, np.bool)assert_type(b_ > AR, npt.NDArray[np.bool])assert_type(b_ > SEQ, npt.NDArray[np.bool])
# Complex
assert_type(c16 > c16, np.bool)assert_type(c16 > f8, np.bool)assert_type(c16 > i8, np.bool)assert_type(c16 > c8, np.bool)assert_type(c16 > f4, np.bool)assert_type(c16 > i4, np.bool)assert_type(c16 > b_, np.bool)assert_type(c16 > b, np.bool)assert_type(c16 > c, np.bool)assert_type(c16 > f, np.bool)assert_type(c16 > i, np.bool)assert_type(c16 > AR, npt.NDArray[np.bool])assert_type(c16 > SEQ, npt.NDArray[np.bool])
assert_type(c16 > c16, np.bool)assert_type(f8 > c16, np.bool)assert_type(i8 > c16, np.bool)assert_type(c8 > c16, np.bool)assert_type(f4 > c16, np.bool)assert_type(i4 > c16, np.bool)assert_type(b_ > c16, np.bool)assert_type(b > c16, np.bool)assert_type(c > c16, np.bool)assert_type(f > c16, np.bool)assert_type(i > c16, np.bool)assert_type(AR > c16, npt.NDArray[np.bool])assert_type(SEQ > c16, npt.NDArray[np.bool])
assert_type(c8 > c16, np.bool)assert_type(c8 > f8, np.bool)assert_type(c8 > i8, np.bool)assert_type(c8 > c8, np.bool)assert_type(c8 > f4, np.bool)assert_type(c8 > i4, np.bool)assert_type(c8 > b_, np.bool)assert_type(c8 > b, np.bool)assert_type(c8 > c, np.bool)assert_type(c8 > f, np.bool)assert_type(c8 > i, np.bool)assert_type(c8 > AR, npt.NDArray[np.bool])assert_type(c8 > SEQ, npt.NDArray[np.bool])
assert_type(c16 > c8, np.bool)assert_type(f8 > c8, np.bool)assert_type(i8 > c8, np.bool)assert_type(c8 > c8, np.bool)assert_type(f4 > c8, np.bool)assert_type(i4 > c8, np.bool)assert_type(b_ > c8, np.bool)assert_type(b > c8, np.bool)assert_type(c > c8, np.bool)assert_type(f > c8, np.bool)assert_type(i > c8, np.bool)assert_type(AR > c8, npt.NDArray[np.bool])assert_type(SEQ > c8, npt.NDArray[np.bool])
# Float
assert_type(f8 > f8, np.bool)assert_type(f8 > i8, np.bool)assert_type(f8 > f4, np.bool)assert_type(f8 > i4, np.bool)assert_type(f8 > b_, np.bool)assert_type(f8 > b, np.bool)assert_type(f8 > c, np.bool)assert_type(f8 > f, np.bool)assert_type(f8 > i, np.bool)assert_type(f8 > AR, npt.NDArray[np.bool])assert_type(f8 > SEQ, npt.NDArray[np.bool])
assert_type(f8 > f8, np.bool)assert_type(i8 > f8, np.bool)assert_type(f4 > f8, np.bool)assert_type(i4 > f8, np.bool)assert_type(b_ > f8, np.bool)assert_type(b > f8, np.bool)assert_type(c > f8, np.bool)assert_type(f > f8, np.bool)assert_type(i > f8, np.bool)assert_type(AR > f8, npt.NDArray[np.bool])assert_type(SEQ > f8, npt.NDArray[np.bool])
assert_type(f4 > f8, np.bool)assert_type(f4 > i8, np.bool)assert_type(f4 > f4, np.bool)assert_type(f4 > i4, np.bool)assert_type(f4 > b_, np.bool)assert_type(f4 > b, np.bool)assert_type(f4 > c, np.bool)assert_type(f4 > f, np.bool)assert_type(f4 > i, np.bool)assert_type(f4 > AR, npt.NDArray[np.bool])assert_type(f4 > SEQ, npt.NDArray[np.bool])
assert_type(f8 > f4, np.bool)assert_type(i8 > f4, np.bool)assert_type(f4 > f4, np.bool)assert_type(i4 > f4, np.bool)assert_type(b_ > f4, np.bool)assert_type(b > f4, np.bool)assert_type(c > f4, np.bool)assert_type(f > f4, np.bool)assert_type(i > f4, np.bool)assert_type(AR > f4, npt.NDArray[np.bool])assert_type(SEQ > f4, npt.NDArray[np.bool])
# Int
assert_type(i8 > i8, np.bool)assert_type(i8 > u8, np.bool)assert_type(i8 > i4, np.bool)assert_type(i8 > u4, np.bool)assert_type(i8 > b_, np.bool)assert_type(i8 > b, np.bool)assert_type(i8 > c, np.bool)assert_type(i8 > f, np.bool)assert_type(i8 > i, np.bool)assert_type(i8 > AR, npt.NDArray[np.bool])assert_type(i8 > SEQ, npt.NDArray[np.bool])
assert_type(u8 > u8, np.bool)assert_type(u8 > i4, np.bool)assert_type(u8 > u4, np.bool)assert_type(u8 > b_, np.bool)assert_type(u8 > b, np.bool)assert_type(u8 > c, np.bool)assert_type(u8 > f, np.bool)assert_type(u8 > i, np.bool)assert_type(u8 > AR, npt.NDArray[np.bool])assert_type(u8 > SEQ, npt.NDArray[np.bool])
assert_type(i8 > i8, np.bool)assert_type(u8 > i8, np.bool)assert_type(i4 > i8, np.bool)assert_type(u4 > i8, np.bool)assert_type(b_ > i8, np.bool)assert_type(b > i8, np.bool)assert_type(c > i8, np.bool)assert_type(f > i8, np.bool)assert_type(i > i8, np.bool)assert_type(AR > i8, npt.NDArray[np.bool])assert_type(SEQ > i8, npt.NDArray[np.bool])
assert_type(u8 > u8, np.bool)assert_type(i4 > u8, np.bool)assert_type(u4 > u8, np.bool)assert_type(b_ > u8, np.bool)assert_type(b > u8, np.bool)assert_type(c > u8, np.bool)assert_type(f > u8, np.bool)assert_type(i > u8, np.bool)assert_type(AR > u8, npt.NDArray[np.bool])assert_type(SEQ > u8, npt.NDArray[np.bool])
assert_type(i4 > i8, np.bool)assert_type(i4 > i4, np.bool)assert_type(i4 > i, np.bool)assert_type(i4 > b_, np.bool)assert_type(i4 > b, np.bool)assert_type(i4 > AR, npt.NDArray[np.bool])assert_type(i4 > SEQ, npt.NDArray[np.bool])
assert_type(u4 > i8, np.bool)assert_type(u4 > i4, np.bool)assert_type(u4 > u8, np.bool)assert_type(u4 > u4, np.bool)assert_type(u4 > i, np.bool)assert_type(u4 > b_, np.bool)assert_type(u4 > b, np.bool)assert_type(u4 > AR, npt.NDArray[np.bool])assert_type(u4 > SEQ, npt.NDArray[np.bool])
assert_type(i8 > i4, np.bool)assert_type(i4 > i4, np.bool)assert_type(i > i4, np.bool)assert_type(b_ > i4, np.bool)assert_type(b > i4, np.bool)assert_type(AR > i4, npt.NDArray[np.bool])assert_type(SEQ > i4, npt.NDArray[np.bool])
assert_type(i8 > u4, np.bool)assert_type(i4 > u4, np.bool)assert_type(u8 > u4, np.bool)assert_type(u4 > u4, np.bool)assert_type(b_ > u4, np.bool)assert_type(b > u4, np.bool)assert_type(i > u4, np.bool)assert_type(AR > u4, npt.NDArray[np.bool])assert_type(SEQ > u4, npt.NDArray[np.bool])1234567891011121314from typing import Literal, assert_type
import numpy as np
assert_type(np.e, float)assert_type(np.euler_gamma, float)assert_type(np.inf, float)assert_type(np.nan, float)assert_type(np.pi, float)
assert_type(np.little_endian, bool)
assert_type(np.True_, np.bool[Literal[True]])assert_type(np.False_, np.bool[Literal[False]])123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081import ctypes as ctfrom typing import Any, assert_type
import numpy as npimport numpy.typing as nptfrom numpy import ctypeslib
AR_bool: npt.NDArray[np.bool]AR_ubyte: npt.NDArray[np.ubyte]AR_ushort: npt.NDArray[np.ushort]AR_uintc: npt.NDArray[np.uintc]AR_ulong: npt.NDArray[np.ulong]AR_ulonglong: npt.NDArray[np.ulonglong]AR_byte: npt.NDArray[np.byte]AR_short: npt.NDArray[np.short]AR_intc: npt.NDArray[np.intc]AR_long: npt.NDArray[np.long]AR_longlong: npt.NDArray[np.longlong]AR_single: npt.NDArray[np.single]AR_double: npt.NDArray[np.double]AR_longdouble: npt.NDArray[np.longdouble]AR_void: npt.NDArray[np.void]
pointer: ct._Pointer[Any]
assert_type(np.ctypeslib.c_intp(), ctypeslib.c_intp)
assert_type(np.ctypeslib.ndpointer(), type[ctypeslib._ndptr[None]])assert_type(np.ctypeslib.ndpointer(dtype=np.float64), type[ctypeslib._ndptr[np.dtype[np.float64]]])assert_type(np.ctypeslib.ndpointer(dtype=float), type[ctypeslib._ndptr[np.dtype]])assert_type(np.ctypeslib.ndpointer(shape=(10, 3)), type[ctypeslib._ndptr[None]])assert_type(np.ctypeslib.ndpointer(np.int64, shape=(10, 3)), type[ctypeslib._concrete_ndptr[np.dtype[np.int64]]])assert_type(np.ctypeslib.ndpointer(int, shape=(1,)), type[np.ctypeslib._concrete_ndptr[np.dtype]])
assert_type(np.ctypeslib.as_ctypes_type(np.bool), type[ct.c_bool])assert_type(np.ctypeslib.as_ctypes_type(np.ubyte), type[ct.c_ubyte])assert_type(np.ctypeslib.as_ctypes_type(np.ushort), type[ct.c_ushort])assert_type(np.ctypeslib.as_ctypes_type(np.uintc), type[ct.c_uint])assert_type(np.ctypeslib.as_ctypes_type(np.byte), type[ct.c_byte])assert_type(np.ctypeslib.as_ctypes_type(np.short), type[ct.c_short])assert_type(np.ctypeslib.as_ctypes_type(np.intc), type[ct.c_int])assert_type(np.ctypeslib.as_ctypes_type(np.single), type[ct.c_float])assert_type(np.ctypeslib.as_ctypes_type(np.double), type[ct.c_double])assert_type(np.ctypeslib.as_ctypes_type(ct.c_double), type[ct.c_double])assert_type(np.ctypeslib.as_ctypes_type("q"), type[ct.c_longlong])assert_type(np.ctypeslib.as_ctypes_type([("i8", np.int64), ("f8", np.float64)]), type[Any])assert_type(np.ctypeslib.as_ctypes_type("i8"), type[Any])assert_type(np.ctypeslib.as_ctypes_type("f8"), type[Any])
assert_type(np.ctypeslib.as_ctypes(AR_bool.take(0)), ct.c_bool)assert_type(np.ctypeslib.as_ctypes(AR_ubyte.take(0)), ct.c_ubyte)assert_type(np.ctypeslib.as_ctypes(AR_ushort.take(0)), ct.c_ushort)assert_type(np.ctypeslib.as_ctypes(AR_uintc.take(0)), ct.c_uint)
assert_type(np.ctypeslib.as_ctypes(AR_byte.take(0)), ct.c_byte)assert_type(np.ctypeslib.as_ctypes(AR_short.take(0)), ct.c_short)assert_type(np.ctypeslib.as_ctypes(AR_intc.take(0)), ct.c_int)assert_type(np.ctypeslib.as_ctypes(AR_single.take(0)), ct.c_float)assert_type(np.ctypeslib.as_ctypes(AR_double.take(0)), ct.c_double)assert_type(np.ctypeslib.as_ctypes(AR_void.take(0)), Any)assert_type(np.ctypeslib.as_ctypes(AR_bool), ct.Array[ct.c_bool])assert_type(np.ctypeslib.as_ctypes(AR_ubyte), ct.Array[ct.c_ubyte])assert_type(np.ctypeslib.as_ctypes(AR_ushort), ct.Array[ct.c_ushort])assert_type(np.ctypeslib.as_ctypes(AR_uintc), ct.Array[ct.c_uint])assert_type(np.ctypeslib.as_ctypes(AR_byte), ct.Array[ct.c_byte])assert_type(np.ctypeslib.as_ctypes(AR_short), ct.Array[ct.c_short])assert_type(np.ctypeslib.as_ctypes(AR_intc), ct.Array[ct.c_int])assert_type(np.ctypeslib.as_ctypes(AR_single), ct.Array[ct.c_float])assert_type(np.ctypeslib.as_ctypes(AR_double), ct.Array[ct.c_double])assert_type(np.ctypeslib.as_ctypes(AR_void), ct.Array[Any])
assert_type(np.ctypeslib.as_array(AR_ubyte), npt.NDArray[np.ubyte])assert_type(np.ctypeslib.as_array(1), npt.NDArray[Any])assert_type(np.ctypeslib.as_array(pointer), npt.NDArray[Any])
assert_type(np.ctypeslib.as_ctypes_type(np.long), type[ct.c_long])assert_type(np.ctypeslib.as_ctypes_type(np.ulong), type[ct.c_ulong])assert_type(np.ctypeslib.as_ctypes(AR_ulong), ct.Array[ct.c_ulong])assert_type(np.ctypeslib.as_ctypes(AR_long), ct.Array[ct.c_long])assert_type(np.ctypeslib.as_ctypes(AR_long.take(0)), ct.c_long)assert_type(np.ctypeslib.as_ctypes(AR_ulong.take(0)), ct.c_ulong)1234567891011121314151617181920212223from pathlib import Pathfrom typing import IO, Any, assert_type
import numpy as np
path1: Pathpath2: str
d1 = np.lib.npyio.DataSource(path1)d2 = np.lib.npyio.DataSource(path2)d3 = np.lib.npyio.DataSource(None)
assert_type(d1.abspath("..."), str)assert_type(d2.abspath("..."), str)assert_type(d3.abspath("..."), str)
assert_type(d1.exists("..."), bool)assert_type(d2.exists("..."), bool)assert_type(d3.exists("..."), bool)
assert_type(d1.open("...", "r"), IO[Any])assert_type(d2.open("...", encoding="utf8"), IO[Any])assert_type(d3.open("...", newline="/n"), IO[Any])123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132import ctypes as ctimport datetime as dtfrom decimal import Decimalfrom fractions import Fractionfrom typing import Any, Literal, LiteralString, TypeAlias, assert_type
import numpy as npfrom numpy.dtypes import StringDType
# a combination of likely `object` dtype-like candidates (no `_co`)_PyObjectLike: TypeAlias = Decimal | Fraction | dt.datetime | dt.timedelta
dtype_U: np.dtype[np.str_]dtype_V: np.dtype[np.void]dtype_i8: np.dtype[np.int64]
py_object: type[_PyObjectLike]py_character: type[str | bytes]
ct_floating: type[ct.c_float | ct.c_double | ct.c_longdouble]ct_number: type[ct.c_uint8 | ct.c_float]ct_generic: type[ct.c_bool | ct.c_char]
cs_integer: Literal["u1", "<i2", "L"]cs_number: Literal["=L", "i", "c16"]cs_flex: Literal[">V", "S"]cs_generic: Literal["H", "U", "h", "|M8[Y]", "?"]
dt_inexact: np.dtype[np.inexact]dt_string: StringDType
assert_type(np.dtype(np.float64), np.dtype[np.float64])assert_type(np.dtype(np.float64, metadata={"test": "test"}), np.dtype[np.float64])assert_type(np.dtype(np.int64), np.dtype[np.int64])
# String aliasesassert_type(np.dtype("float64"), np.dtype[np.float64])assert_type(np.dtype("float32"), np.dtype[np.float32])assert_type(np.dtype("int64"), np.dtype[np.int64])assert_type(np.dtype("int32"), np.dtype[np.int32])assert_type(np.dtype("bool"), np.dtype[np.bool])assert_type(np.dtype("bytes"), np.dtype[np.bytes_])assert_type(np.dtype("str"), np.dtype[np.str_])
# Python typesassert_type(np.dtype(bool), np.dtype[np.bool])assert_type(np.dtype(int), np.dtype[np.int_ | np.bool])assert_type(np.dtype(float), np.dtype[np.float64 | np.int_ | np.bool])assert_type(np.dtype(complex), np.dtype[np.complex128 | np.float64 | np.int_ | np.bool])assert_type(np.dtype(py_object), np.dtype[np.object_])assert_type(np.dtype(str), np.dtype[np.str_])assert_type(np.dtype(bytes), np.dtype[np.bytes_])assert_type(np.dtype(memoryview), np.dtype[np.void])assert_type(np.dtype(py_character), np.dtype[np.character])
# object typesassert_type(np.dtype(list), np.dtype[np.object_])assert_type(np.dtype(dt.datetime), np.dtype[np.object_])assert_type(np.dtype(dt.timedelta), np.dtype[np.object_])assert_type(np.dtype(Decimal), np.dtype[np.object_])assert_type(np.dtype(Fraction), np.dtype[np.object_])
# char-codesassert_type(np.dtype("?"), np.dtype[np.bool])assert_type(np.dtype("|b1"), np.dtype[np.bool])assert_type(np.dtype("u1"), np.dtype[np.uint8])assert_type(np.dtype("l"), np.dtype[np.long])assert_type(np.dtype("longlong"), np.dtype[np.longlong])assert_type(np.dtype(">g"), np.dtype[np.longdouble])assert_type(np.dtype(cs_integer), np.dtype[np.integer])
# ctypesassert_type(np.dtype(ct.c_double), np.dtype[np.float64]) # see numpy/numpy#29155assert_type(np.dtype(ct.c_longlong), np.dtype[np.longlong])assert_type(np.dtype(ct.c_uint32), np.dtype[np.uint32])assert_type(np.dtype(ct.c_bool), np.dtype[np.bool])assert_type(np.dtype(ct.c_char), np.dtype[np.bytes_])assert_type(np.dtype(ct.py_object), np.dtype[np.object_])
# Special case for Noneassert_type(np.dtype(None), np.dtype[np.float64])
# dtypes of dtypesassert_type(np.dtype(np.dtype(np.float64)), np.dtype[np.float64])assert_type(np.dtype(dt_inexact), np.dtype[np.inexact])
# Parameterized dtypesassert_type(np.dtype("S8"), np.dtype)
# Voidassert_type(np.dtype(("U", 10)), np.dtype[np.void])assert_type(np.dtype({"formats": (int, "u8"), "names": ("n", "B")}), np.dtype[np.void])
# StringDTypeassert_type(np.dtype(dt_string), StringDType)assert_type(np.dtype("T"), StringDType)assert_type(np.dtype("=T"), StringDType)assert_type(np.dtype("|T"), StringDType)
# Methods and attributesassert_type(dtype_U.base, np.dtype)assert_type(dtype_U.subdtype, tuple[np.dtype, tuple[Any, ...]] | None)assert_type(dtype_U.newbyteorder(), np.dtype[np.str_])assert_type(dtype_U.type, type[np.str_])assert_type(dtype_U.name, LiteralString)assert_type(dtype_U.names, tuple[str, ...] | None)
assert_type(dtype_U * 0, np.dtype[np.str_])assert_type(dtype_U * 1, np.dtype[np.str_])assert_type(dtype_U * 2, np.dtype[np.str_])
assert_type(dtype_i8 * 0, np.dtype[np.void])assert_type(dtype_i8 * 1, np.dtype[np.int64])assert_type(dtype_i8 * 2, np.dtype[np.void])
assert_type(0 * dtype_U, np.dtype[np.str_])assert_type(1 * dtype_U, np.dtype[np.str_])assert_type(2 * dtype_U, np.dtype[np.str_])
assert_type(0 * dtype_i8, np.dtype)assert_type(1 * dtype_i8, np.dtype)assert_type(2 * dtype_i8, np.dtype)
assert_type(dtype_V["f0"], np.dtype)assert_type(dtype_V[0], np.dtype)assert_type(dtype_V[["f0", "f1"]], np.dtype[np.void])assert_type(dtype_V[["f0"]], np.dtype[np.void])
class _D: __numpy_dtype__: np.dtype[np.int8]
assert_type(np.dtype(_D()), np.dtype[np.int8])123456789101112131415161718192021222324252627282930313233343536373839from typing import Any, assert_type
import numpy as npimport numpy.typing as npt
AR_LIKE_b: list[bool]AR_LIKE_u: list[np.uint32]AR_LIKE_i: list[int]AR_LIKE_f: list[float]AR_LIKE_c: list[complex]AR_LIKE_U: list[str]AR_o: npt.NDArray[np.object_]
OUT_f: npt.NDArray[np.float64]
assert_type(np.einsum("i,i->i", AR_LIKE_b, AR_LIKE_b), Any)assert_type(np.einsum("i,i->i", AR_o, AR_o), Any)assert_type(np.einsum("i,i->i", AR_LIKE_u, AR_LIKE_u), Any)assert_type(np.einsum("i,i->i", AR_LIKE_i, AR_LIKE_i), Any)assert_type(np.einsum("i,i->i", AR_LIKE_f, AR_LIKE_f), Any)assert_type(np.einsum("i,i->i", AR_LIKE_c, AR_LIKE_c), Any)assert_type(np.einsum("i,i->i", AR_LIKE_b, AR_LIKE_i), Any)assert_type(np.einsum("i,i,i,i->i", AR_LIKE_b, AR_LIKE_u, AR_LIKE_i, AR_LIKE_c), Any)
assert_type(np.einsum("i,i->i", AR_LIKE_c, AR_LIKE_c, out=OUT_f), npt.NDArray[np.float64])assert_type(np.einsum("i,i->i", AR_LIKE_U, AR_LIKE_U, dtype=bool, casting="unsafe", out=OUT_f), npt.NDArray[np.float64])assert_type(np.einsum("i,i->i", AR_LIKE_f, AR_LIKE_f, dtype="c16"), Any)assert_type(np.einsum("i,i->i", AR_LIKE_U, AR_LIKE_U, dtype=bool, casting="unsafe"), Any)
assert_type(np.einsum_path("i,i->i", AR_LIKE_b, AR_LIKE_b), tuple[list[Any], str])assert_type(np.einsum_path("i,i->i", AR_LIKE_u, AR_LIKE_u), tuple[list[Any], str])assert_type(np.einsum_path("i,i->i", AR_LIKE_i, AR_LIKE_i), tuple[list[Any], str])assert_type(np.einsum_path("i,i->i", AR_LIKE_f, AR_LIKE_f), tuple[list[Any], str])assert_type(np.einsum_path("i,i->i", AR_LIKE_c, AR_LIKE_c), tuple[list[Any], str])assert_type(np.einsum_path("i,i->i", AR_LIKE_b, AR_LIKE_i), tuple[list[Any], str])assert_type(np.einsum_path("i,i,i,i->i", AR_LIKE_b, AR_LIKE_u, AR_LIKE_i, AR_LIKE_c), tuple[list[Any], str])
assert_type(np.einsum([[1, 1], [1, 1]], AR_LIKE_i, AR_LIKE_i), Any)assert_type(np.einsum_path([[1, 1], [1, 1]], AR_LIKE_i, AR_LIKE_i), tuple[list[Any], str])workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/INSTALLERAdded+1
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/METADATAAdded+139
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/RECORDAdded
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/WHEELAdded+5
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/entry_points.txtAdded+13
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/LICENSE.txtAdded+30
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/include/numpy/libdivide/LICENSE.txtAdded+21
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/common/pythoncapi-compat/COPYINGAdded+14
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/highway/LICENSEAdded+371
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/multiarray/dragon4_LICENSE.txtAdded+27
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/npysort/x86-simd-sort/LICENSE.mdAdded+28
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/_core/src/umath/svml/LICENSEAdded+30
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/fft/pocketfft/LICENSE.mdAdded+25
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/linalg/lapack_lite/LICENSE.txtAdded+48
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/ma/LICENSEAdded+24
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/LICENSE.mdAdded+71
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/distributions/LICENSE.mdAdded+61
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/mt19937/LICENSE.mdAdded+61
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/pcg64/LICENSE.mdAdded+22
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/philox/LICENSE.mdAdded+31
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/sfc64/LICENSE.mdAdded+27
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy-2.4.2+computecanada.dist-info/licenses/numpy/random/src/splitmix64/LICENSE.mdAdded+9
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/nditer.pyAdded+4
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/numeric.pyAdded+90
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/numerictypes.pyAdded+17
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/random.pyAdded+1498
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/recfunctions.pyAdded+164
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/scalars.pyAdded+249
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/shape.pyAdded+19
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/simple.pyAdded+170
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/ufunc_config.pyAdded+64
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/ufunclike.pyAdded+52
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/ufuncs.pyAdded+16
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/pass/warnings_and_errors.pyAdded+6
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arithmetic.pyiAdded+719
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/array_api_info.pyiAdded+70
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/array_constructors.pyiAdded+279
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arraypad.pyiAdded+27
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arrayprint.pyiAdded+25
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arraysetops.pyiAdded+74
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/arrayterator.pyiAdded+27
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/bitwise_ops.pyiAdded+166
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/char.pyiAdded+225
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/chararray.pyiAdded+138
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/comparisons.pyiAdded+264
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/constants.pyiAdded+14
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/ctypeslib.pyiAdded+81
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/datasource.pyiAdded+23
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/dtype.pyiAdded+132
workspace/outputs/audit_venv/lib/python3.11/site-packages/numpy/typing/tests/data/reveal/einsumfunc.pyiAdded+39