On 08/29/2013 09:33 AM, Anubhab Baksi wrote: > Hi, > I need to know about the relative speed (i.e., which one is faster) of > the followings: > 1. list and numpy array, tuples and numpy array > 2. list of tuples and numpy matrix (first one is rectangular) > 3. random.randint() and numpy.random.random_integers()
African or European? It really depends on what you're doing with it. The ipython %timeit magic is pretty useful for answering that question. Note that the answer may change dramatically based on the size of the data set. -- Jonathan Niehof ISR-3 Space Data Systems Los Alamos National Laboratory MS-D466 Los Alamos, NM 87545 Phone: 505-667-9595 email: [email protected] Correspondence / Technical data or Software Publicly Available _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
