Compare 3D array and remove different elements

前端 未结 0 594
再見小時候
再見小時候 2021-02-02 16:32

I have two 3D numpy arrays. I want to compare b with a and then keep only elements in b that exist in a for axis=0.

a=
np.asarray([[[-0.5, -0.5,  0.5],
        [-         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题