Search
Search Results
Search finished, found 59 page(s) matching the search query.
- numpy.split
...NumPy reference Routines and objects by topic Array manipulation routines numpy.split...
- numpy.char.chararray.split (Python method, in numpy.char.chararray.split)
- numpy.char.split (Python function, in numpy.char.split)
- numpy.split (Python function, in numpy.split)
numpy.distutils
user guide...scripts: config.name - full name of the current package. The names of parent packages can be extracted as config.name.split('.'). config.local_path - path to the location of current setup.py file. config.top_path - path to the location of...
- Array creation
...y has over 40 built-in functions for creating arrays as laid out in the Array creation routines. These functions can be split into roughly three categories, based on the dimension of the array they create: 1D arrays 2D arrays ndarrays 1...
- Array iterator API
...ach thread (minus one for the first iterator). Then, take the iteration index range [0, NpyIter_GetIterSize(iter)) and split it up into tasks, for example using a TBB parallel_for loop. When a thread gets a task to execute, it then uses it...
- I/O with NumPy
...I/O with NumPy Importing data with genfromtxt Defining the input Splitting the lines into columns Skipping lines and choosing columns Choosing the data type Setting the names Tweaking t...
- Importing data with
genfromtxt
...file: if the filename ends with '.gz', a gzip archive is expected; if it ends with 'bz2', a bzip2 archive is assumed. Splitting the lines into columns The delimiter argument Once the file is defined and open for reading, genfromtxt split...
- NumPy 1.10.0 Release Notes
...he polytemplate.py file has been removed. npy_PyFile_Dup and npy_PyFile_DupClose have been removed from npy_3kcompat.h. splitcmdline has been removed from numpy/distutils/exec_command.py. try_run and get_output have been removed from numpy/...
- NumPy 1.10.2 Release Notes
...un tests after ‘python setup.py build_ext -i’ gh-6572 Error in broadcasting stride_tricks array component. gh-6575 BUG: Split produces empty arrays with wrong number of dimensions gh-6590 Fortran Array problem in numpy 1.10. gh-6602 Random...
- NumPy 1.11.0 Release Notes
...depending on their order. Now, np.dot will now always raise a TypeError. FutureWarning to changed behavior In np.lib.split an empty array in the result always had dimension (0,) no matter the dimensions of the array being split. This has...
- NumPy 1.26.2 Release Notes
...ux_aarch64 [wheel build] #25043: MAINT: Update mailmap #25049: MAINT: Update meson build infrastructure. #25071: MAINT: Split up .github/workflows to match main #25083: BUG: Backport fix build on ppc64 when the baseline set to Power9… #2509...
- NumPy 1.3.0 Release Notes
...ual numpy “broadcasting” rules apply, where the signature determines how the dimensions of each input/output object are split into core and loop dimensions: While an input array has a smaller dimensionality than the corresponding number of...
- NumPy 1.4.0 Release Notes
...ype, if available on the platform. Moreover, the complex ufunc now use the platform C99 functions instead of our own. split multiarray and umath source code The source code of multiarray and umath has been split into separate logic compil...
- NumPy 2.0.0 Release Notes
...kle objects larger than 4GB and improves saving speed by about 5% for large arrays. Python API improvements: A clear split between public and private API, with a new module structure, and each public function now available in a single pl...
- NumPy 2.1.0 Release Notes
...in this release. New functions New function numpy.unstack A new function np.unstack(array, axis=...) was added, which splits an array into a tuple of arrays along an axis. It serves as the inverse of numpy.stack. (gh-26579) Deprecation...
- NumPy quickstart
...iving the number of the axis along which to concatenate. See also hstack, vstack, column_stack, concatenate, c_, r_ Splitting one array into several smaller ones Using hsplit, you can split an array along its horizontal axis, either by...
- numpy.array_split
...Py reference Routines and objects by topic Array manipulation routines numpy.array_split...
- numpy.block
...ackStack arrays in sequence depth wise (along third axis). column_stackStack 1-D arrays as columns into a 2-D array. vsplitSplit an array into multiple sub-arrays vertically (row-wise). unstackSplit an array into a tuple of sub-arrays al...
- numpy.char.chararray.split
...Legacy fixed-width string functionality numpy.char.chararray numpy.char.chararray.split...
- numpy.char.partition
...tition(a, sep)[source] Partition each element in a around sep. Calls str.partition element-wise. For each element in a, split the element as the first occurrence of sep, and return 3 strings containing the part before the separator, the sep...
- numpy.char.rpartition
...numpy.char.rpartition char.rpartition(a, sep)[source] Partition (split) each element around the right-most separator. Calls str.rpartition element-wise. For each element in a, split the...
- numpy.char.rsplit
...rence NumPy’s module structure Legacy fixed-width string functionality numpy.char.rsplit...
- numpy.char.split
...erence NumPy’s module structure Legacy fixed-width string functionality numpy.char.split...
- numpy.concat
...resndarrayThe concatenated array. See also ma.concatenateConcatenate function that preserves input masks. array_splitSplit an array into multiple sub-arrays of equal or near-equal size. splitSplit array into a list of multiple sub-...
- numpy.concatenate
...resndarrayThe concatenated array. See also ma.concatenateConcatenate function that preserves input masks. array_splitSplit an array into multiple sub-arrays of equal or near-equal size. splitSplit array into a list of multiple sub-...
- numpy.dsplit
...NumPy reference Routines and objects by topic Array manipulation routines numpy.dsplit...
- numpy.dstack
...) have been reshaped to (M,N,1) and 1-D arrays of shape (N,) have been reshaped to (1,N,1). Rebuilds arrays divided by dsplit. This function makes most sense for arrays with up to 3 dimensions. For instance, for pixel-data with a height (fi...
- numpy.genfromtxt
...ce] Load data from a text file, with missing values handled as specified. Each line past the first skip_header lines is split at the delimiter character, and characters following the comments character are discarded. Parameters: fnamefile...
- numpy.hsplit
...NumPy reference Routines and objects by topic Array manipulation routines numpy.hsplit...
- numpy.hstack
...on along the second axis, except for 1-D arrays where it concatenates along the first axis. Rebuilds arrays divided by hsplit. This function makes most sense for arrays with up to 3 dimensions. For instance, for pixel-data with a height (fi...
- numpy.ma.dstack
...) have been reshaped to (M,N,1) and 1-D arrays of shape (N,) have been reshaped to (1,N,1). Rebuilds arrays divided by dsplit. This function makes most sense for arrays with up to 3 dimensions. For instance, for pixel-data with a height (fi...
- numpy.ma.hsplit
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.hsplit...
- numpy.ma.hstack
...on along the second axis, except for 1-D arrays where it concatenates along the first axis. Rebuilds arrays divided by hsplit. This function makes most sense for arrays with up to 3 dimensions. For instance, for pixel-data with a height (fi...
- numpy.ma.stack
...concatenateJoin a sequence of arrays along an existing axis. blockAssemble an nd-array from nested lists of blocks. splitSplit array into a list of multiple sub-arrays of equal size. unstackSplit an array into a tuple of sub-arrays alo...
- numpy.ma.vstack
...catenation along the first axis after 1-D arrays of shape (N,) have been reshaped to (1,N). Rebuilds arrays divided by vsplit. This function makes most sense for arrays with up to 3 dimensions. For instance, for pixel-data with a height (fi...
- numpy.split
...NumPy reference Routines and objects by topic Array manipulation routines numpy.split...
- numpy.stack
...concatenateJoin a sequence of arrays along an existing axis. blockAssemble an nd-array from nested lists of blocks. splitSplit array into a list of multiple sub-arrays of equal size. unstackSplit an array into a tuple of sub-arrays alo...
- numpy.strings.partition
...py.strings.partition strings.partition(a, sep)[source] Partition each element in a around sep. For each element in a, split the element at the first occurrence of sep, and return a 3-tuple containing the part before the separator, the sep...
- numpy.strings.rpartition
...numpy.strings.rpartition strings.rpartition(a, sep)[source] Partition (split) each element around the right-most separator. For each element in a, split the element at the last occurrence of...
- numpy.ufunc.signature
...re elements a generalized ufunc operates on. The signature determines how the dimensions of each input/output array are split into core and loop dimensions: Each dimension in the signature is matched to a dimension of the corresponding pas...
- numpy.unstack
...numpy.unstack numpy.unstack(x, /, *, axis=0)[source] Split an array into a sequence of arrays along the given axis. The axis parameter specifies the dimension along which th...
- numpy.vsplit
...NumPy reference Routines and objects by topic Array manipulation routines numpy.vsplit...
- numpy.vstack
...catenation along the first axis after 1-D arrays of shape (N,) have been reshaped to (1,N). Rebuilds arrays divided by vsplit. This function makes most sense for arrays with up to 3 dimensions. For instance, for pixel-data with a height (fi...
- NumPy: the absolute basics for beginners
...nstance, if each element of the data were a number, we might visualize a “one-dimensional” array like a list: \[\begin{split}\begin{array}{|c||c|c|c|} \hline 1 & 5 & 2 & 0 \\ \hline \end{array}\end{split}\] A two-dimensional array would be...
- Typing (
numpy.typing
)...n New in version 1.21. A mypy plugin for managing a number of platform-specific annotations. Its functionality can be split into three distinct parts: Assigning the (platform-dependent) precisions of certain number subclasses, including...
- numpy.array_split (Python function, in numpy.array_split)
- numpy.char.chararray.rsplit (Python method, in numpy.char.chararray.rsplit)
- numpy.char.chararray.splitlines (Python method, in numpy.char.chararray.splitlines)
- numpy.char.rsplit (Python function, in numpy.char.rsplit)
- numpy.char.splitlines (Python function, in numpy.char.splitlines)
- numpy.dsplit (Python function, in numpy.dsplit)
- numpy.hsplit (Python function, in numpy.hsplit)
- numpy.ma.hsplit (Python data, in numpy.ma.hsplit)
- numpy.vsplit (Python function, in numpy.vsplit)
- Generalized universal function API
...e above example, this corresponds to (3, 5). The signature determines how the dimensions of each input/output array are split into core and loop dimensions: Each dimension in the signature is matched to a dimension of the corresponding pas...
- Mersenne Twister (MT19937)
...nces the state as-if \(2^{128}\) random numbers have been generated ([1], [2]). This allows the original sequence to be split so that distinct segments can be used in each worker process. All generators should be chained to ensure that the...
- Parallel random number generation
...bility) streams. grandchildren = streams[0].spawn(4) This feature lets you make local decisions about when and how to split up streams without coordination between processes. You do not have to preallocate space to avoid overlapping or re...