Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy array deepcopy

import numpy as np
import copy

pairs = [(2, 3), (3, 4), (4, 5)]
array_of_arrays = np.array([np.arange(a*b).reshape(a,b) for (a, b) in pairs])

a = copy.deepcopy(array_of_arrays)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numpy #array #deepcopy
ADD COMMENT
Topic
Name
7+7 =