I believe
a = numpy.empty_like(b)
a[:] = b
will copy the values quickly. As Funsi mentions, recent versions of numpy also have the copyto
function.
More Related Contents:
- difference between arrays in numpy
- How to print the full NumPy array, without truncation?
- Convert Python sequence to NumPy array, filling missing values
- numpy matrix vector multiplication [duplicate]
- Python out of memory on large CSV file (numpy)
- How do I select elements of an array given condition?
- numpy get index where value is true
- Numpy modify array in place?
- Python vectorizing nested for loops
- numpy arbitrary precision linear algebra
- How to plot data from multiple two column text files with legends in Matplotlib?
- Creating cx_Freeze exe with Numpy for Python
- np arrays being immutable – “assignment destination is read-only”
- How to make a checkerboard in numpy?
- why isn’t numpy.mean multithreaded?
- Can numpy bincount work with 2D arrays?
- Binning a column with pandas
- TypeError: only length-1 arrays can be converted to Python scalars while plot showing
- Sort invariant for numpy.argsort with multiple dimensions
- Concatenate range arrays given start, stop numbers in a vectorized way – NumPy
- Numpy – Replace a number with NaN
- Installing numpy on Docker Alpine
- How to center labels in histogram plot
- numpy division with RuntimeWarning: invalid value encountered in double_scalars
- Is the order of a Python dictionary guaranteed over iterations?
- One Hot Encoding using numpy [duplicate]
- numpy – evaluate function on a grid of points
- Vectorizing `numpy.random.choice` for given 2D array of probabilities along an axis
- How can I turn a flat list into a 2D array in python?
- How to convert a 3d numpy array to 2d