Skip to content
murmot

Results for “python numpy array example program code 2 site:mail.python.org list”

  • mail.python.org

    [Matrix-SIG] Reading binary data from file into NumPy arrays ...

    Jun 18, 1998 · Hello all, I needed a relatively low-level method to load arbitrary binary data files into NumPy arrays, so I wrote C-extension code to do it after learning a little about the NumPy API through the source code. I've called the module numpyio and it allows reading and writing aribrary data-types to an open file stream.

  • mail.python.org

    [Tutor] comparing two numpy arrays

    Thats a great solution, thanks! I've googled a bit for manipulation of sets into other data structure(lists, arrays) and not seen much. Is the only way of interconversion a brute force method? i.e a = set([1, 2, 3]) b = [] for thing in a: b.append(thing).

  • mail.python.org

    [Numpy-discussion] NEP: array API standard adoption (NEP 47)

    The array object ~~~~~~~~~~~~~~~~ Regarding the array object implementation, we plan to start with a regular Python class that wraps a ``numpy.ndarray`` instance. Attributes and methods can forward to that wrapped instance, applying input validation and implementing changed behaviour as needed.

  • mail.python.org

    [Tutor] Help me with two dimensional arrays in Python

    Oct 4, 2006 · Asrarahmed Kadri wrote: > > Hi folks, > > I am stuck.. Please help me with implementing two dimensional array in > Python. > There are no such things as arrays in Python, silly! I can help you with a two-dimensional list, though :) Okay, imagine that a list of integers (or any other objects) is a single object itself, that keeps track of the integers (or other objects) for you in whatever ...

  • 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).answer = array([ 5,6,7,8,9]).

  • mail.python.org

    [Tutor] Importing file data into Python arrays

    May 27, 2002 · The array module, documented at http://python.org/doc/current/lib/module-array.html might be of interest to you anyway, as well as the numeric python extensions at http://www.pfdubois.com/numpy/ . > However, when I try to read in data from a file as shown below, I > end up with the lines, which I can't manipulate.

  • mail.python.org

    [PYTHON MATRIX-SIG] Array -> String: array length

    May 8, 1997 · Jean-Bernard ADDOR writes: > > I am very happy to hear about the length of the numpy arrays other users > uses because I uses these day pow (2,22) = len (array) = 4194304 and I > seriously ask me questions about python memory managment. My program uses > hundreds Megs of RAM.