3D numpy array subset

Heli hemla21 at gmail.com
Wed Dec 9 09:23:23 EST 2015


Dear all, 

I am reading a dataset from a HDF5 file using h5py. my datasets are 3D. 

Then I will need to check if another 3d numpy array is a subset of this 3D array i am reading from the file.

In general, is there any way to check if two 3d numpy arrays have intersections and if so, get the indices of the intersection area.

By intersection, I exactly mean the intersection definition used in set theory.


Thanks in Advance for your help, 



More information about the Python-list mailing list