Re: [Numpy-discussion] Number of elements in a intersection graph

2014-07-10 Thread Ted Sandler
Use NetworkX + breadth first search and you are done. On Wed, Jul 9, 2014 at 12:31 PM, Robert Kern robert.k...@gmail.com wrote: On Wed, Jul 9, 2014 at 1:29 AM, Josè Luis Mietta joseluismie...@yahoo.com.ar wrote: Hi experts!! I am studying the intersection between line segments

Re: [Numpy-discussion] parsing dtype descriptors

2014-07-06 Thread Ted Sandler
Thanks! On Fri, Jul 4, 2014 at 1:53 AM, Robert Kern robert.k...@gmail.com wrote: On Thu, Jul 3, 2014 at 10:53 PM, Ted Sandler ted.sand...@gmail.com wrote: Thanks. No, it's not what I'm looking for. I'm looking for the code that parses the string i8 in the npy file array header's

[Numpy-discussion] parsing dtype descriptors

2014-07-03 Thread Ted Sandler
Hi all, is there a spec or grammar for valid values of numpy dtype descriptor strings? I am writing code to parse .npy files from Java and want to be able to handle the range of ndarray descriptor strings. I came across this code: dtype = numpy.dtype(d['descr']) at line 267 in format.py:

Re: [Numpy-discussion] parsing dtype descriptors

2014-07-03 Thread Ted Sandler
://stackoverflow.com/questions/13997087/what-are-the-available-datatypes-for-dtype-with-numpys-loadtxt-an-genfromtxt Thanks again, Ted On Thu, Jul 3, 2014 at 12:35 PM, Valentin Haenel valen...@haenel.co wrote: Dear Ted, * Ted Sandler ted.sand...@gmail.com [2014-07-03]: Hi all