Search
Search Results
Search finished, found 39 page(s) matching the search query.
- Beyond the basics
...r++; } Iterating over all but one axis A common algorithm is to loop over all elements of an array and perform some function with each element by issuing a function call. As function calls can be time consuming, one way to speed up this...
- Datetimes and timedeltas
...Datetimes and timedeltas Starting in NumPy 1.7, there are core array data types which natively support datetime functionality. The data type is called datetime64, so named because datetime is already taken by the Python standard lib...
- Generalized universal function API
...NumPy reference NumPy C-API Generalized universal function API...
- NumPy 1.10.0 Release Notes
...a linking/compilation flags. Addition of np.linalg.multi_dot: compute the dot product of two or more arrays in a single function call, while automatically selecting the fastest evaluation order. The new function np.stack provides a general...
- NumPy 1.12.0 Release Notes
...s. New signature argument to np.vectorize for vectorizing with core dimensions. The keepdims argument was added to many functions. New context manager for testing warnings Support for BLIS in numpy.distutils Much improved support for PyPy (...
- NumPy 1.16.0 Release Notes
...should help make maintenance easier going forward. Highlights Experimental (opt-in only) support for overriding numpy functions, see __array_function__ below. The matmul function is now a ufunc. This provides better performance and allows...
- NumPy 1.20.0 Release Notes
...supported for this release are 3.7-3.9, support for Python 3.6 has been dropped. Highlights are Annotations for NumPy functions. This work is ongoing and improvements can be expected pending feedback from users. Wider use of SIMD to incre...
- NumPy 1.21.0 Release Notes
...NumPy 1.21.0 Release Notes The NumPy 1.21.0 release highlights are continued SIMD work covering more functions and platforms, initial work on the new dtype infrastructure and casting, universal2 wheels for Python 3.8 and...
- NumPy 1.22.0 Release Notes
...lease. A preliminary version of the proposed Array-API is provided. This is a step in creating a standard collection of functions that can be used across applications such as CuPy and JAX. NumPy now has a DLPack backend. DLPack provides a c...
- NumPy 1.24 Release Notes
...check them out. Many expired deprecations, New F2PY features and fixes. New “dtype” and “casting” keywords for stacking functions. See below for the details, This release supports Python versions 3.8-3.11. Deprecations Deprecate fastCopy...
- NumPy 1.3.0 Release Notes
...ndows. https://www.python.org/dev/peps/pep-0361/ Generalized ufuncs There is a general need for looping over not only functions on scalars but also over functions on vectors (or arrays), as explained on http://scipy.org/scipy/numpy/wiki/G...
- NumPy 1.7.0 Release Notes
...nts (added ‘excluded’ and ‘cache’ keyword, general cleanup and bug fixes) numpy.random.choice (random sample generating function) Compatibility notes In a future version of numpy, the functions np.diag, np.diagonal, and the diagonal meth...
- NumPy C code explanations
...type) The datatype is an important abstraction of the ndarray. Operations will look to the datatype to provide the key functionality that is needed to operate on the array. This functionality is provided in the list of function pointers po...
- NumPy quickstart
...ensional (\(n>=2\)) arrays are represented and can be manipulated. In particular, if you don’t know how to apply common functions to n-dimensional arrays (without using for-loops), or if you want to understand axis and shape properties for...
- numpy.random.Generator.gumbel
...alue distributions, the Generalized Extreme Value (GEV) distributions, which also includes the Weibull and Frechet. The function has a mean of \(\mu + 0.57721\beta\) and a variance of \(\frac{\pi^2}{6}\beta^2\). References [1] Gumbel, E....
- numpy.random.Generator.wald
...Returns: outndarray or scalarDrawn samples from the parameterized Wald distribution. Notes The probability density function for the Wald distribution is \[P(x;mean,scale) = \sqrt{\frac{scale}{2\pi x^3}}e^ \frac{-scale(x-mean)^2}{2\cdo...
- numpy.random.Generator.weibull
...frac{a} {\lambda}(\frac{x}{\lambda})^{a-1}e^{-(x/\lambda)^a},\] where \(a\) is the shape and \(\lambda\) the scale. The function has its peak (the mode) at \(\lambda(\frac{a-1}{a})^{1/a}\). When a = 1, the Weibull distribution reduces to th...
- The N-dimensional array (
ndarray
) - ufunc API
- Universal functions (
ufunc
) - Universal functions (
ufunc
) basics - Using Python as glue
- Writing your own ufunc
- CPU/SIMD optimizations
- Glossary
- Interoperability with NumPy
- NumPy C-API
- NumPy reference
- numpy.bartlett
- numpy.random.gumbel
- numpy.random.RandomState.gumbel
- numpy.random.RandomState.wald
- numpy.random.RandomState.weibull
- numpy.random.wald
- numpy.random.weibull
- numpy.ufunc
- numpy.vectorize
- Standard array subclasses
- Using NumPy C-API