numpy
- An array object of arbitrary homogeneous itemsarray_api
- A NumPy sub-namespace that conforms to the Python array API standard.linalg
- No module docstring; 19/24 functions, 0/4 class documentedsetup
- Undocumentedtests
- Tests for the array API namespace.test_array_object
- No module docstring; 1/13 function documentedtest_creation_functions
- Undocumentedtest_data_type_functions
- No module docstring; 1/1 function documentedtest_elementwise_functions
- Undocumentedtest_set_functions
- No module docstring; 0/1 variable, 1/1 function documentedtest_sorting_functions
- No module docstring; 1/1 function documentedtest_validation
- No module docstring; 1/2 function documented_array_object
- Wrapper class around the ndarray object for the array API standard._constants
- Undocumented_creation_functions
- No module docstring; 15/17 functions documented_data_type_functions
- No module docstring; 6/7 functions, 0/2 class documented_dtypes
- Undocumented_elementwise_functions
- No module docstring; 56/56 functions documented_manipulation_functions
- No module docstring; 8/8 functions documented_searching_functions
- No module docstring; 4/4 functions documented_set_functions
- No module docstring; 3/4 functions, 0/3 class documented_sorting_functions
- No module docstring; 2/2 functions documented_statistical_functions
- Undocumented_typing
- This file defines the types for type annotations._utility_functions
- No module docstring; 2/2 functions documentedcompat
- Compatibility module.conftest
- Pytest configuration and fixtures for the Numpy test suite.core
- Contains the core of NumPy: ndarray, ufuncs, dtypes, etc.arrayprint
- Array printing functionchar
- This module contains a set of functions for vectorized string operations and methods.code_generators
- No package docstring; 3/7 modules documentedgenapi
- Get API information encoded in C files.generate_numpy_api
- Undocumentedgenerate_ufunc_api
- Undocumentedgenerate_umath
- No module docstring; 0/45 variable, 0/3 constant, 1/9 function, 3/5 classes documentedgenerate_umath_doc
- Undocumentednumpy_api
- Here we define the exported functions, types, etc... which need to be exported through a global C pointer.ufunc_docstrings
- Docstrings for generated ufuncscversions
- Simple script to compute the api hash of the current API.einsumfunc
- Implementation of optimized einsum.fromnumeric
- Module containing non-deprecated functions borrowed from Numeric.function_base
- No module docstring; 0/1 variable, 4/8 functions documentedgetlimits
- Machine limits for Float32 and Float64 and (long double) if available...memmap
- No module docstring; 0/3 variable, 1/1 class documentedmultiarray
- Create the numpy.core.multiarray namespace for backward compatibility. In v1.16 the multiarray and umath c-extension modules were merged into a single _multiarray_umath extension module. So we replicate the old namespace by importing from the extension module.numeric
- No module docstring; 0/10 variable, 28/53 functions, 3/3 exceptions documentednumerictypes
- numerictypes: Define the numeric type objectsoverrides
- Implementation of __array_function__ overrides from NEP-18.rec
- Record arrays expose the fields of structured arrays as properties.setup
- No module docstring; 0/3 constant, 5/13 functions, 0/1 class documentedsetup_common
- No module docstring; 0/28 constant, 5/10 functions, 0/1 exception documentedshape_base
- No module docstring; 0/4 variable, 13/24 functions documentedtests
- No package docstring; 16/62 modules documentedtest__exceptions
, test_abc
, test_api
, test_argparse
, test_array_coercion
, test_array_interface
, test_arraymethod
, test_arrayprint
, test_casting_floatingpoint_errors
, test_casting_unittests
, test_conversion_utils
, test_cpu_dispatcher
, test_cpu_features
, test_custom_dtypes
, test_cython
, test_datetime
, test_defchararray
, test_deprecations
, test_dlpack
, test_dtype
, test_einsum
, test_errstate
, test_extint128
, test_function_base
, test_getlimits
, test_half
, test_hashtable
, test_indexerrors
, test_indexing
, test_item_selection
, test_limited_api
, test_longdouble
, test_machar
, test_mem_overlap
, test_mem_policy
, test_memmap
, test_multiarray
, test_nditer
, test_nep50_promotions
, test_numeric
, test_numerictypes
, test_overrides
, test_print
, test_protocols
, test_records
, test_regression
, test_scalar_ctors
, test_scalar_methods
, test_scalarbuffer
, test_scalarinherit
, test_scalarmath
, test_scalarprint
, test_shape_base
, test_simd
, test_simd_module
, test_strings
, test_ufunc
, test_umath
, test_umath_accuracy
, test_umath_complex
, test_unicode
, _locales
umath
- Create the numpy.core.umath namespace for backward compatibility. In v1.16 the multiarray and umath c-extension modules were merged into a single _multiarray_umath extension module. So we replicate the old namespace by importing from the extension module.umath_tests
- Shim for _umath_tests to allow a deprecation period for the new name._add_newdocs
- This is only meant to add docs to objects defined in C-extension modules. The purpose is to allow easier editing of the docstrings without requiring a re-compile._add_newdocs_scalars
- This file is separate from _add_newdocs.py so that it can be mocked out by our sphinx conf.py during doc builds, where we want to avoid showing platform-dependent information._asarray
- Functions in the as*array family that promote array-likes into arrays._dtype
- A place for code to be called from the implementation of np.dtype_dtype_ctypes
- Conversion from ctypes to dtype._exceptions
- Various richly-typed exceptions, that also help us deal with string formatting in python where it's easier._internal
- A place for internal code_machar
- Machine arithmetic - determine the parameters of the floating-point arithmetic system_methods
- Array methods which are called by both the C-code for the method and the Python code for the NumPy-namespace function_string_helpers
- String-handling utilities to avoid locale-dependence._type_aliases
- Due to compatibility, numpy has a very large number of different naming conventions for the scalar types (those subclassing from numpy.generic
). This file produces a convoluted set of dictionaries mapping names to types, and sometimes other mappings too._ufunc_config
- Functions for changing global ufunc configurationctypeslib
- Load a C library.distutils
- An enhanced distutils, providing support for Fortran compilers, for BLAS, LAPACK and other common libraries for numerical computing, and more.armccompiler
- No module docstring; 1/1 class documentedccompiler
- No module docstring; 0/4 variable, 11/15 functions documentedccompiler_opt
- Provides the CCompilerOpt
class, used for handling the CPU/hardware optimization, starting from parsing the command arguments, to managing the relation between the CPU baseline and dispatch-able features, also generating the required C headers and ending with compiling the sources with proper compiler's flags.command
- distutils.commandautodist
- This module implements additional tests ala autoconf which can be useful.bdist_rpm
- Undocumentedbuild
- Undocumentedbuild_clib
- Modified version of build_clib that handles fortran source files.build_ext
- Modified version of build_ext that handles fortran source files.build_py
- Undocumentedbuild_scripts
- Modified version of build_scripts that handles building scripts from functions.build_src
- Build swig and f2py sources.config
- Undocumentedconfig_compiler
- No module docstring; 0/1 function, 2/2 classes documenteddevelop
- Override the develop command from setuptools so we can ensure that our generated files (from build_src or build_scripts) are properly converted to real files with filenames.egg_info
- Undocumentedinstall
- Undocumentedinstall_clib
- Undocumentedinstall_data
- Undocumentedinstall_headers
- Undocumentedsdist
- Undocumentedconv_template
- takes templated file .xxx.src and produces .xxx file where .xxx is .i or .c or .h, using the following template rulescore
- No module docstring; 0/2 variable, 1/6 function documentedcpuinfo
- cpuinfoexec_command
- exec_commandextension
- distutils.extensionfcompiler
- numpy.distutils.fcompilerabsoft
- Undocumentedarm
- Undocumentedcompaq
- Undocumentedenvironment
- Undocumentedfujitsu
- fujitsug95
- Undocumentedgnu
- No module docstring; 0/1 variable, 0/1 constant, 1/2 function, 0/2 class documentedhpux
- Undocumentedibm
- Undocumentedintel
- Undocumentedlahey
- Undocumentedmips
- Undocumentednag
- Undocumentednone
- Undocumentednv
- No module docstring; 0/1 variable, 1/1 class documentedpathf95
- Undocumentedpg
- Undocumentedsun
- Undocumentedvast
- Undocumentedfrom_template
- process_file(filename)intelccompiler
- No module docstring; 4/5 classes documentedlib2def
- No module docstring; 0/3 variable, 0/4 constant, 4/4 functions documentedline_endings
- Functions for converting from DOS to UNIX line endingslog
- Undocumentedmingw32ccompiler
- Support code for building Python extensions on Windows.misc_util
- No module docstring; 0/8 variable, 34/64 functions, 1/2 class documentedmsvc9compiler
- No module docstring; 1/1 function, 0/1 class documentedmsvccompiler
- No module docstring; 2/2 functions, 0/1 class documentednpy_pkg_config
- No module docstring; 0/2 constant, 2/9 functions, 2/2 exceptions, 2/2 classes documentednumpy_distribution
- Undocumentedpathccompiler
- No module docstring; 1/1 class documentedsetup
- Undocumentedsystem_info
- This file defines a set of system_info classes for getting information about various resources (libraries, library directories, include directories, etc.) in the system. Usage:tests
- No package docstring; 1/15 module documentedtest_build_ext
- Tests for numpy.distutils.build_ext.test_ccompiler_opt
- Undocumentedtest_ccompiler_opt_conf
- No module docstring; 0/2 variable, 1/3 class documentedtest_exec_command
- No module docstring; 0/2 function, 3/4 classes documentedtest_fcompiler
- Undocumentedtest_fcompiler_gnu
- Undocumentedtest_fcompiler_intel
- Undocumentedtest_fcompiler_nagfor
- Undocumentedtest_from_template
- No module docstring; 0/2 variable, 2/2 functions documentedtest_log
- Undocumentedtest_mingw32ccompiler
- No module docstring; 1/1 function documentedtest_misc_util
- Undocumentedtest_npy_pkg_config
- Undocumentedtest_shell_utils
- No module docstring; 0/1 variable, 2/4 functions documentedtest_system_info
- No module docstring; 0/2 variable, 0/1 constant, 2/3 functions, 3/5 classes documentedunixccompiler
- unixccompiler - can handle very long argument lists for ar._shell_utils
- Helper functions for interacting with the shell, and consuming shell-style parameters provided in config files.doc
- No package docstring; 0/2 variable, 2/2 modules documentedconstants
- NumPy includes several constants:ufuncs
- Ufuncs are, generally speaking, mathematical functions or operations that are applied element-by-element to the contents of an array. That is, the result in each output array element only depends on the value in the corresponding input array (or arrays) and on no other array elements...dual
- Deprecated since version 1.20.f2py
- Fortran to Python Interface Generator.__version__
- Undocumentedauxfuncs
- Auxiliary functions for f2py2e.capi_maps
- Copyright 1999,2000 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the NumPy License.cb_rules
- Build call-back mechanism for f2py2e.cfuncs
- C declarations, CPP macros, and C functions for f2py2e. Only required declarations/macros/functions will be used.common_rules
- Build common block mechanism for f2py2e.crackfortran
- crackfortran --- read fortran (77,90) code and extract declaration information.diagnose
- Undocumentedf2py2e
- See __usage__ below.f90mod_rules
- Build F90 module support for f2py2e.func2subr
- Rules for building C/API module with f2py2e.rules
- Rules for building C/API module with f2py2e.setup
- setup.py for installing F2PYsymbolic
- Fortran/C symbolic expressionstests
- No package docstring; 3/29 modules documentedtest_abstract_interface
- Undocumentedtest_array_from_pyobj
- No module docstring; 0/6 variable, 1/3 function, 0/5 class documentedtest_assumed_shape
- Undocumentedtest_block_docstring
- Undocumentedtest_callback
- No module docstring; 2/4 classes documentedtest_character
- Undocumentedtest_common
- Undocumentedtest_compile_function
- See https://github.com/numpy/numpy/pull/11937.test_crackfortran
- No module docstring; 1/11 class documentedtest_docs
- Undocumentedtest_f2cmap
- Undocumentedtest_f2py2e
- No module docstring; 0/1 variable, 51/51 functions documentedtest_kind
- Undocumentedtest_mixed
- Undocumentedtest_module_doc
- Undocumentedtest_parameter
- Undocumentedtest_quoted_character
- See https://github.com/numpy/numpy/pull/10676.test_regression
- Undocumentedtest_return_character
- Undocumentedtest_return_complex
- Undocumentedtest_return_integer
- Undocumentedtest_return_logical
- Undocumentedtest_return_real
- Undocumentedtest_semicolon_split
- Undocumentedtest_size
- Undocumentedtest_string
- Undocumentedtest_symbolic
- Undocumentedtest_value_attrspec
- Undocumentedutil
- Utility functions foruse_rules
- Build 'use others module data' mechanism for f2py2e.__main__
- Undocumentedfft
- The SciPy module scipy.fft
is a more comprehensive superset of numpy.fft, which includes only a basic set of routines.helper
- Discrete Fourier Transforms - helper.pysetup
- Undocumentedtests
- No package docstring; 1/2 module documentedtest_helper
- Test functions for fftpack.helper moduletest_pocketfft
- Undocumented_pocketfft
- Discrete Fourier Transformslib
- Note: almost all functions in the numpy.lib namespace are also present in the main numpy namespace. Please use the functions as np.<funcname> where possible.arraypad
- The arraypad module contains a group of functions to pad values onto the edges of an n-dimensional array.arraysetops
- Set operations for arrays based on sorting.arrayterator
- A buffered iterator for big arrays.emath
- Wrapper functions to more user-friendly calling of certain math functions whose output data-type is different than the input data-type in certain domains of the input.format
- Binary serializationfunction_base
- No module docstring; 0/4 variable, 0/5 constant, 49/89 functions, 1/1 class documentedhistograms
- Histogram-related functionsindex_tricks
- No module docstring; 0/7 variable, 4/7 functions, 9/9 classes documentedmixins
- Mixin classes for custom array types that don't inherit from ndarray.nanfunctions
- Functions that ignore NaN.npyio
- No module docstring; 0/4 variable, 15/23 functions, 3/3 classes documentedpolynomial
- Functions to operate on polynomials.recfunctions
- Collection of utilities to manipulate structured arrays.setup
- Undocumentedshape_base
- No module docstring; 0/1 variable, 16/30 functions documentedstride_tricks
- Utilities that manipulate strides to achieve desirable effects.tests
- No package docstring; 6/25 modules documentedtest__datasource
- No module docstring; 0/7 variable, 1/12 function, 0/6 class documentedtest__iotools
- No module docstring; 0/1 function, 2/4 classes documentedtest__version
- Tests for the NumpyVersion class.test_arraypad
- Tests for the array padding functions.test_arraysetops
- Test functions for 1D array set operations.test_arrayterator
- Undocumentedtest_financial_expired
- Undocumentedtest_format
- Test the .npy file format.test_function_base
- No module docstring; 1/4 function, 0/46 class documentedtest_histograms
- No module docstring; 1/3 class documentedtest_index_tricks
- Undocumentedtest_io
- No module docstring; 0/3 constant, 1/7 function, 1/12 class documentedtest_loadtxt
- Tests specific to np.loadtxt
added during the move of loadtxt to be backed by C code. These tests complement those found in test_io.py
.test_mixins
- Undocumentedtest_nanfunctions
- No module docstring; 0/4 variable, 0/3 constant, 1/2 function, 0/11 class documentedtest_packbits
- Undocumentedtest_polynomial
- Undocumentedtest_recfunctions
- No module docstring; 1/8 class documentedtest_regression
- Undocumentedtest_shape_base
- No module docstring; 0/1 constant, 2/2 functions, 2/16 classes documentedtest_stride_tricks
- Undocumentedtest_twodim_base
- Test functions for matrix moduletest_type_check
- Undocumentedtest_ufunclike
- Undocumentedtest_utils
- No module docstring; 0/4 variable, 3/19 functions, 0/1 class documentedtwodim_base
- Basic functions for manipulating 2d arraystype_check
- Automatically adapted for numpy Sep 19, 2005 by convertcode.pyufunclike
- Module of functions that are like ufuncs in acting on arrays and optionally storing results in an output array.user_array
- Standard container-class for easy multiple-inheritance.utils
- No module docstring; 0/4 variable, 17/20 functions, 1/1 class documented_datasource
- A file interface for handling local and remote data files._iotools
- A collection of functions designed to help I/O with ascii files._version
- Utility to compare (NumPy) version strings.linalg
- The NumPy linear algebra functions rely on BLAS and LAPACK to provide efficient low level implementations of standard linear algebra algorithms. Those libraries may be provided by NumPy itself using C versions of a subset of their reference implementations but, when possible, highly optimized libraries that take advantage of specialized processor functionality are preferred...linalg
- Lite version of scipy.linalg.setup
- Undocumentedtests
- No package docstring; 3/3 modules documentedtest_deprecations
- Test deprecation and future warnings.test_linalg
- Test functions for linalg moduletest_regression
- Test functions for linalg modulema
- Arrays sometimes contain invalid or missing data. When doing operations on such arrays, we wish to suppress invalid values, which is the purpose masked arrays fulfill (an example of typical use is given below).bench
- Undocumentedcore
- numpy.ma : a package to handle missing or invalid values.extras
- Masked arrays add-ons.mrecords
- numpy.ma..mrecords
setup
- Undocumentedtests
- No package docstring; 5/7 modules documentedtest_core
- Tests suite for MaskedArray & subclassing.test_deprecations
- Test deprecation and future warnings.test_extras
- Tests suite for MaskedArray. Adapted from the original test_ma by Pierre Gerard-Marchanttest_mrecords
- Tests suite for mrecords.test_old_ma
- Undocumentedtest_regression
- Undocumentedtest_subclassing
- Tests suite for MaskedArray & subclassing.testutils
- Miscellaneous functions for testing masked arrays and subclassestimer_comparison
- Undocumentedmatlib
- No module docstring; 8/8 functions documentedmatrixlib
- Sub-package containing the matrix class and related functions.defmatrix
- No module docstring; 2/4 functions, 1/1 class documentedsetup
- Undocumentedtests
- No package docstring; 2/7 modules documentedtest_defmatrix
- Undocumentedtest_interaction
- Tests of interaction of matrix with other parts of numpy.test_masked_matrix
- Undocumentedtest_matrix_linalg
- Test functions for linalg module using the matrix class.test_multiarray
- Undocumentedtest_numeric
- Undocumentedtest_regression
- Undocumentedpolynomial
- A sub-package for efficiently dealing with polynomials.chebyshev
- This module provides a number of objects (mostly functions) useful for dealing with Chebyshev series, including a Chebyshev
class that encapsulates the usual arithmetic operations. (General information on how this module represents and works with such polynomials is in the docstring for its "parent" sub-package, ...hermite
- This module provides a number of objects (mostly functions) useful for dealing with Hermite series, including a Hermite
class that encapsulates the usual arithmetic operations. (General information on how this module represents and works with such polynomials is in the docstring for its "parent" sub-package, ...hermite_e
- This module provides a number of objects (mostly functions) useful for dealing with Hermite_e series, including a HermiteE
class that encapsulates the usual arithmetic operations. (General information on how this module represents and works with such polynomials is in the docstring for its "parent" sub-package, ...laguerre
- This module provides a number of objects (mostly functions) useful for dealing with Laguerre series, including a Laguerre
class that encapsulates the usual arithmetic operations. (General information on how this module represents and works with such polynomials is in the docstring for its "parent" sub-package, ...legendre
- This module provides a number of objects (mostly functions) useful for dealing with Legendre series, including a Legendre
class that encapsulates the usual arithmetic operations. (General information on how this module represents and works with such polynomials is in the docstring for its "parent" sub-package, ...polynomial
- This module provides a number of objects (mostly functions) useful for dealing with polynomials, including a Polynomial
class that encapsulates the usual arithmetic operations. (General information on how this module represents and works with polynomial objects is in the docstring for its "parent" sub-package, ...polyutils
- Utility classes and functions for the polynomial modules.setup
- Undocumentedtests
- No package docstring; 9/10 modules documentedtest_chebyshev
- Tests for chebyshev module.test_classes
- Test inter-conversion of different polynomial classes.test_hermite
- Tests for hermite module.test_hermite_e
- Tests for hermite_e module.test_laguerre
- Tests for laguerre module.test_legendre
- Tests for legendre module.test_polynomial
- Tests for polynomial module.test_polyutils
- Tests for polyutils module.test_printing
- No module docstring; 0/1 constant, 2/5 functions, 2/7 classes documentedtest_symbol
- Tests related to the symbol attribute of the ABCPolyBase class._polybase
- Abstract base class for the various polynomial Classes.random
- Use default_rng() to create a Generator
and call its methods.setup
- Undocumentedtests
- Undocumenteddata
- Undocumentedtest_direct
- Undocumentedtest_extending
- Undocumentedtest_generator_mt19937
- Undocumentedtest_generator_mt19937_regressions
- Undocumentedtest_random
- Undocumentedtest_randomstate
- No module docstring; 0/2 constant, 1/12 function, 0/9 class documentedtest_randomstate_regression
- Undocumentedtest_regression
- Undocumentedtest_seed_sequence
- No module docstring; 2/2 functions documentedtest_smoke
- Undocumented_pickle
- No module docstring; 0/1 variable, 3/3 functions documentedsetup
- Undocumentedtesting
- Common test support for all numpy test scripts.print_coercion_tables
- Prints type-coercion tables for the built-in NumPy typessetup
- Undocumentedtests
- No package docstring; 1/2 module documentedtest_doctesting
- Doctests for NumPy-specific nose/doctest modificationstest_utils
- No module docstring; 0/12 function, 1/16 class documentedutils
- Back compatibility utils module. It will import the appropriate set of tools_private
- No package docstring; 5/6 modules documenteddecorators
- Decorators for labeling and modifying behavior of test objects.extbuild
- Build a c-extension module on-the-fly in tests. See build_and_import_extensions for usage hintsnoseclasses
- No module docstring; 0/1 variable, 3/8 classes documentednosetester
- Nose test running.parameterized
- tl;dr: all code is licensed under simplified BSD, unless stated otherwise.utils
- Utility function to facilitate testing.tests
- No package docstring; 3/9 modules documentedtest__all__
- Undocumentedtest_ctypeslib
- No module docstring; 1/5 class documentedtest_lazyloading
- Undocumentedtest_matlib
- Undocumentedtest_numpy_version
- Check the numpy version is valid.test_public_api
- No module docstring; 0/5 constant, 8/12 functions documentedtest_reloading
- No module docstring; 1/3 function documentedtest_scripts
- Test scriptstest_warnings
- Tests which scan for certain occurrences in the code, they may not find all of these occurrences but should catch almost all.typing
- New in version 1.20.mypy_plugin
- A mypy plugin for managing a number of platform-specific annotations. Its functionality can be split into three distinct parts:setup
- Undocumentedtests
- No package docstring; 1/4 module documentedtest_generic_alias
- No module docstring; 0/4 variable, 0/1 type alias, 0/3 type variable, 0/2 constant, 0/1 function, 1/1 class documentedtest_isfile
- Undocumentedtest_runtime
- Test the runtime usage of numpy.typing
.test_typing
- No module docstring; 0/14 constant, 8/15 functions documentedversion
- Undocumented_distributor_init
- Distributor init file_globals
- Module defining global singleton classes._pyinstaller
- No package docstring; 2/3 modules documentedhook-numpy
- This hook should collect all binary files and any hidden modules that numpy needs.pyinstaller-smoke
- A crude bit of everything smoke test to verify PyInstaller compatibility.test_pyinstaller
- No module docstring; 1/1 function documented_pytesttester
- Pytest test running._typing
- Private counterpart of numpy.typing.setup
- Undocumented_add_docstring
- A module for creating docstrings for sphinx data domains._array_like
- No module docstring; 0/11 variable, 0/6 type alias, 0/4 type variable, 1/3 class documented_char_codes
- Undocumented_dtype_like
- Undocumented_extended_precision
- A module with platform-specific extended precision numpy.number
subclasses._generic_alias
- No module docstring; 0/1 variable, 0/2 type variable, 0/1 constant, 3/3 functions, 1/1 class documented_nbit
- A module with the precisions of platform-specific `~numpy.number`s._nested_sequence
- A module containing the _NestedSequence
protocol._scalars
- Undocumented_shape
- Undocumented_version
- Undocumented