Search
Search Results
Search finished, found 27 page(s) matching the search query.
- numpy.vstack
...NumPy reference Routines and objects by topic Array manipulation routines numpy.vstack...
- numpy.ma.vstack (Python data, in numpy.ma.vstack)
- numpy.vstack (Python function, in numpy.vstack)
- Array creation
...re information and examples look at Copies and Views. There are a number of routines to join existing arrays e.g. numpy.vstack, numpy.hstack, and numpy.block. Here is an example of joining four 2-by-2 arrays into a 4-by-4 array using block:...
- NumPy 1.13.0 Release Notes
...if x > 0. np.block function for creating blocked arrays Add a new block function to the current stacking functions vstack, hstack, and stack. This allows concatenation across multiple axes simultaneously, with a similar syntax to array...
- NumPy 1.24 Release Notes
...ck. To use them, write np.stack(..., dtype=None, casting='same_kind'). casting and dtype keyword arguments for numpy.vstack The casting and dtype keyword arguments are now available for numpy.vstack. To use them, write np.vstack(..., dt...
- NumPy 1.25.0 Release Notes
...ic (and positive is undefined). (gh-22998) A sequence must now be passed into the stacking family of functions (stack, vstack, hstack, dstack and column_stack). (gh-23019) np.clip now defaults to same-kind casting. Falling back to unsafe...
- NumPy 1.6.2 Release Notes
...nsistent index #1138: allow creating arrays from empty buffers or empty slices #1446: correct note about correspondence vstack and concatenate #1149: make argmin() work for datetime #1672: fix allclose() to work for scalar inf #1747: make n...
- NumPy 1.9.0 Release Notes
...e of converting lists containing arrays to arrays using np.array has been improved. It is now equivalent in speed to np.vstack(list). Performance improvement for np.searchsorted For the built-in numeric types, np.searchsorted no longer re...
- NumPy 2.0 migration guide
...removed in a release after 2.0: deprecated member migration guideline in1d Use np.isin instead. row_stack Use np.vstack instead (row_stack was an alias for vstack). trapz Use np.trapezoid or a scipy.integrate function instead. F...
- NumPy 2.0.0 Release Notes
...rate function instead. np.in1d has been deprecated. Use np.isin instead. Alias np.row_stack has been deprecated. Use np.vstack directly. (gh-24445) __array_wrap__ is now passed arr, context, return_scalar and support for implementations no...
- NumPy for MATLAB users
...stack((a,b)) or np.column_stack((a,b)) or np.c_[a,b] concatenate columns of a and b [a; b] np.concatenate((a,b)) or np.vstack((a,b)) or np.r_[a,b] concatenate rows of a and b max(max(a)) a.max() or np.nanmax(a) maximum element of a (with...
- NumPy quickstart
...y([[9., 7.], [5., 2.]]) >>> b = np.floor(10 * rg.random((2, 2))) >>> b array([[1., 9.], [5., 1.]]) >>> np.vstack((a, b)) array([[9., 7.], [5., 2.], [1., 9.], [5., 1.]]) >>> np.hstack((a, b)) array([[9., 7....
- numpy.block
...e also concatenateJoin a sequence of arrays along an existing axis. stackJoin a sequence of arrays along a new axis. vstackStack arrays in sequence vertically (row wise). hstackStack arrays in sequence horizontally (column wise). dstac...
- numpy.column_stack
...st dimension. Returns: stacked2-D arrayThe array formed by stacking the given arrays. See also stack, hstack, vstack, concatenate Examples >>> import numpy as np >>> a = np.array((1,2,3)) >>> b = np.array((2,3,4)) >>> np.column_...
- numpy.concat
...rrays along a new axis. blockAssemble arrays from blocks. hstackStack arrays in sequence horizontally (column wise). vstackStack arrays in sequence vertically (row wise). dstackStack arrays in sequence depth wise (along third dimension)...
- numpy.concatenate
...rrays along a new axis. blockAssemble arrays from blocks. hstackStack arrays in sequence horizontally (column wise). vstackStack arrays in sequence vertically (row wise). dstackStack arrays in sequence depth wise (along third dimension)...
- numpy.dstack
...isting axis. stackJoin a sequence of arrays along a new axis. blockAssemble an nd-array from nested lists of blocks. vstackStack arrays in sequence vertically (row wise). hstackStack arrays in sequence horizontally (column wise). colum...
- numpy.hstack
...isting axis. stackJoin a sequence of arrays along a new axis. blockAssemble an nd-array from nested lists of blocks. vstackStack arrays in sequence vertically (row wise). dstackStack arrays in sequence depth wise (along third axis). co...
- numpy.linalg.lstsq
...an rewrite the line equation as y = Ap, where A = [[x 1]] and p = [[m], [c]]. Now use lstsq to solve for p: >>> A = np.vstack([x, np.ones(len(x))]).T >>> A array([[ 0., 1.], [ 1., 1.], [ 2., 1.], [ 3., 1.]]) >>>...
- numpy.ma.column_stack
...st dimension. Returns: stacked2-D arrayThe array formed by stacking the given arrays. See also stack, hstack, vstack, concatenate Notes The function is applied to both the _data and the _mask, if any. Examples >>> import numpy a...
- numpy.ma.dstack
...isting axis. stackJoin a sequence of arrays along a new axis. blockAssemble an nd-array from nested lists of blocks. vstackStack arrays in sequence vertically (row wise). hstackStack arrays in sequence horizontally (column wise). colum...
- numpy.ma.hstack
...isting axis. stackJoin a sequence of arrays along a new axis. blockAssemble an nd-array from nested lists of blocks. vstackStack arrays in sequence vertically (row wise). dstackStack arrays in sequence depth wise (along third axis). co...
- numpy.ma.vstack
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.vstack...
- numpy.split
...ng axis. stackJoin a sequence of arrays along a new axis. hstackStack arrays in sequence horizontally (column wise). vstackStack arrays in sequence vertically (row wise). dstackStack arrays in sequence depth wise (along third dimension)...
- numpy.vstack
...NumPy reference Routines and objects by topic Array manipulation routines numpy.vstack...
- NumPy: the absolute basics for beginners
...nonzero function at: nonzero. How to create an array from existing data This section covers slicing and indexing, np.vstack(), np.hstack(), np.hsplit(), .view(), copy() You can easily create a new array from a section of an existing arr...