MCPcopy
hub / github.com/numpy/numpy

github.com/numpy/numpy @v2.5.0 sqlite

repository ↗ · DeepWiki ↗ · release v2.5.0 ↗
14,323 symbols 54,406 edges 493 files 2,425 documented · 17%
README

Powered by NumFOCUS PyPI Downloads Conda Downloads Stack Overflow Nature Paper LFX Health Score OpenSSF Scorecard Typing

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://github.com/numpy/numpy/security/policy (via Tidelift)

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. The NumPy leadership has made a strong commitment to creating an open, inclusive, and positive community. Please read the NumPy Code of Conduct for guidance on how to interact with 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 contributions to the source code, please contact us through the mailing list 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 - 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. If you’re unsure where to start or how your skills fit in, reach out! You can ask on the mailing list or here, on GitHub, by opening a new issue or leaving a comment on a relevant issue that is already open.

Our preferred channels of communication are all public, but if you’d like to speak to us in private first, contact our community coordinators at numpy-team@googlegroups.com or on Slack (write numpy-team@googlegroups.com for an invitation).

We also have a biweekly community call, details of which are announced on the mailing list. You are very welcome to join.

If you are new to contributing to open source, this guide helps explain why, what, and how to successfully get involved.

Core symbols most depended-on inside this repo

assert_equal
called by 6243
numpy/testing/_private/utils.py
assert_
called by 3499
numpy/testing/_private/utils.py
assert_raises
called by 2570
numpy/testing/_private/utils.py
assert_array_equal
called by 2438
numpy/testing/_private/utils.py
reshape
called by 1105
numpy/ma/core.py
astype
called by 1012
numpy/lib/_user_array_impl.py
assert_almost_equal
called by 801
numpy/testing/_private/utils.py
view
called by 711
numpy/ma/core.py

Shape

Method 8,877
Function 3,321
Class 1,763
Route 362

Languages

Python100%

Modules by API surface

numpy/_core/tests/test_multiarray.py988 symbols
numpy/lib/tests/test_function_base.py420 symbols
numpy/_core/tests/test_umath.py405 symbols
numpy/ma/tests/test_core.py386 symbols
numpy/_core/tests/test_numeric.py354 symbols
numpy/_core/tests/test_regression.py307 symbols
numpy/ma/core.py278 symbols
numpy/_core/tests/test_ufunc.py243 symbols
numpy/random/tests/test_generator_mt19937.py232 symbols
numpy/lib/tests/test_io.py224 symbols
numpy/linalg/tests/test_linalg.py206 symbols
numpy/_core/tests/test_dtype.py194 symbols

For agents

$ claude mcp add numpy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact