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

2014-07-08 Thread Josè Luis Mietta
Hi experts!! I am studying the intersection between line segments (sticks). I have an Numpy array (M) corresponding to the intersection graph of the system (the element Mij = 1 if the sticks' i 'and' 'j' intersect, and Mij = 0 if not intersect). I want to determine the number of elements that

Re: [Numpy-discussion] Short-hand array creation in `numpy.mat` style

2014-07-08 Thread Pauli Virtanen
07.07.2014 21:32, Chris Barker - NOAA Federal kirjoitti: > If you are going to introduce this functionality, please don't call it > np.arr. It might be appropriate for pirate versions of Numpy. *** Seriously though, having a variant of `mat` that returns arrays could be useful, so weak +0. P