Search
Search Results
Search finished, found 23 page(s) matching the search query.
- numpy.hstack
...NumPy reference Routines and objects by topic Array manipulation routines numpy.hstack...
- numpy.hstack (Python function, in numpy.hstack)
- numpy.ma.hstack (Python data, in numpy.ma.hstack)
- Array creation
...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: >>> import nu...
- NumPy 1.13.0 Release Notes
...tically determines C-file dependencies with GCC compatible compilers. Compatibility notes Error type changes numpy.hstack() now throws ValueError instead of IndexError when input is empty. Functions taking an axis argument, when that a...
- NumPy 1.24 Release Notes
...k. To use them, write np.vstack(..., dtype=None, casting='same_kind'). casting and dtype keyword arguments for numpy.hstack The casting and dtype keyword arguments are now available for numpy.hstack. To use them, write np.hstack(..., dt...
- NumPy 1.25.0 Release Notes
...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 casting...
- NumPy for MATLAB users
...functions on a grid repmat(a, m, n) np.tile(a, (m, n)) create m by n copies of a [a b] np.concatenate((a,b),1) or np.hstack((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...
- NumPy quickstart
....], [5., 1.]]) >>> np.vstack((a, b)) array([[9., 7.], [5., 2.], [1., 9.], [5., 1.]]) >>> np.hstack((a, b)) array([[9., 7., 1., 9.], [5., 2., 5., 1.]]) The function column_stack stacks 1D arrays as column...
- numpy.block
...xisting axis. stackJoin a sequence of arrays along a new axis. vstackStack arrays in sequence vertically (row wise). hstackStack arrays in sequence horizontally (column wise). dstackStack arrays in sequence depth wise (along third axis)...
- numpy.column_stack
...quence of 1-D arrays and stack them as columns to make a single 2-D array. 2-D arrays are stacked as-is, just like with hstack. 1-D arrays are turned into 2-D columns first. Parameters: tupsequence of 1-D or 2-D arrays.Arrays to stack. A...
- numpy.concat
...rays along the 3rd axis (depth). stackStack a sequence of arrays along a new axis. blockAssemble arrays from blocks. hstackStack arrays in sequence horizontally (column wise). vstackStack arrays in sequence vertically (row wise). dstac...
- numpy.concatenate
...rays along the 3rd axis (depth). stackStack a sequence of arrays along a new axis. blockAssemble arrays from blocks. hstackStack arrays in sequence horizontally (column wise). vstackStack arrays in sequence vertically (row wise). dstac...
- numpy.dstack
...w axis. blockAssemble an nd-array from nested lists of blocks. vstackStack arrays in sequence vertically (row wise). hstackStack arrays in sequence horizontally (column wise). column_stackStack 1-D arrays as columns into a 2-D array. d...
- numpy.histogram
...import matplotlib.pyplot as plt import numpy as np rng = np.random.RandomState(10) # deterministic random data a = np.hstack((rng.normal(size=1000), rng.normal(loc=5, scale=2, size=1000))) plt.hist(a, bins='auto') # argume...
- numpy.hstack
...NumPy reference Routines and objects by topic Array manipulation routines numpy.hstack...
- numpy.ma.column_stack
...quence of 1-D arrays and stack them as columns to make a single 2-D array. 2-D arrays are stacked as-is, just like with hstack. 1-D arrays are turned into 2-D columns first. Parameters: tupsequence of 1-D or 2-D arrays.Arrays to stack. A...
- numpy.ma.dstack
...w axis. blockAssemble an nd-array from nested lists of blocks. vstackStack arrays in sequence vertically (row wise). hstackStack arrays in sequence horizontally (column wise). column_stackStack 1-D arrays as columns into a 2-D array. d...
- numpy.ma.hstack
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.hstack...
- numpy.ma.vstack
...isting axis. stackJoin a sequence of arrays along a new axis. blockAssemble an nd-array from nested lists of blocks. hstackStack arrays in sequence horizontally (column wise). dstackStack arrays in sequence depth wise (along third axis)...
- numpy.split
...epth). concatenateJoin a sequence of arrays along an existing axis. stackJoin a sequence of arrays along a new axis. hstackStack arrays in sequence horizontally (column wise). vstackStack arrays in sequence vertically (row wise). dstac...
- numpy.vstack
...isting axis. stackJoin a sequence of arrays along a new axis. blockAssemble an nd-array from nested lists of blocks. hstackStack arrays in sequence horizontally (column wise). dstackStack arrays in sequence depth wise (along third axis)...
- NumPy: the absolute basics for beginners
...tion 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 array. Let’s say...