[MATRIX-SIG] NumPy arrays of python objects
The NumPy doc.html, and the Numeric Tutorial, both mention arrays of Python objects, but with little elaboration.
The NumPy doc.html, and the Numeric Tutorial, both mention arrays of Python objects, but with little elaboration.
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 convert the arrays to lists or tuples then to sets?
I'm now generating arrays of lists nicely. I'm sure I tried exactly the same things last night without success, but maybe it was just late. I have two other questions though: I don't have a "PyObject" in my NumPy - I guess that's because I'm using a late beta version, not the most up to date?
Maybe this is not so clever, but I can't find it in the doc. > I need to get all indices/index of all occurrences of a value in a > numpy > array > > >.Previous message (by thread): [Numpy-discussion] Getting indices from numpy array withcondition.