Skip to content
murmot

Results for “python numpy array example program for loop line plot site:mail.python.org”

  • mail.python.org

    [Tutor] comparing two numpy arrays

    If I've two numpy arrays, is there a non-looping way of finding common > values. (the example below has identical shapes for the > arrays but this > may not be the case in my scenario) > >.Maybe you might be able to directly convert the numpy arrays to sets?

  • mail.python.org

    [Numpy-discussion] loop vectorization - mail.python.org

    Previous message (by thread): [Numpy-discussion] loop vectorization Next message (by thread): [Numpy-discussion] Using ndpointer with ctypes argtypes Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the NumPy-Discussion mailing list

  • mail.python.org

    [Numpy-discussion] an np.arange for arrays?

    Next message (by thread): [Numpy-discussion] an np.arange for arrays?Indeed, linspace will work, but careful with Python loops though, it'll be 2x to 6x slower (based on my empirical fiddling) than the solution involving mgrid.

  • mail.python.org

    [Numpy-discussion] Vectorizing code, for loops, and all that

    When dealing with large, multidimensional arrays my experience has been that unrolling all of the for loops is frequently counterproductive. I chalk this up to two factors: first that you tend to end up generating large temporary arrays and this in turn leads to cache misses.

  • mail.python.org

    [Numpy-discussion] QQ Plot in Python and Noncentral Chisquare

    QQ Plot in Python: I could not find any functions in either Numpy or Scipy >> to do QQ Plot of two vectors of data. For example, in Matlab, one could just >> call qqplot(X,Y), which will generate the QQ plot of vector X against vector >> Y...

  • mail.python.org

    [Numpy-discussion] Optimization of loops - mail.python.org

    Previous message (by thread): [Numpy-discussion] Optimization of loops Next message (by thread): [Numpy-discussion] Optimization of loops Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the NumPy-Discussion mailing list

  • mail.python.org

    [Numpy-discussion] ragged array implimentation

    and returns > numpy object arrays, where the elements of the object arrays are > themselves 1d numpy arrays. I don't think there is any other way to do > it. In your example, the 'ragged' array would be a 1d numpy array with > dtype='O'...

  • mail.python.org

    [Numpy-discussion] *** [Possible UCE]*** Re: Vectorizing code ...

    Previous message (by thread): [Numpy-discussion] Vectorizing code, for loops, and all that Next message (by thread): [Numpy-discussion] Vectorizing code, for loops, and all that Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] More information about the NumPy-Discussion mailing list

  • mail.python.org

    [Numpy-discussion] Vectorizing code, for loops, and all that

    The idea is minimize the loop overhead as we do now by choosing the largest axis, while at the same time attempting to maintain cache friendliness. Let's suppose that it's safe to stuff 2000 array elements into the cache [1], and lets consider two arrays where the lengths of the axes [2], from innermost to outermost are [10,100,1000] and [100 ...