0
我有以下numpy的阵列NumPy的:广播+布尔索引
A: shape (n1, n2) array of float
B: shape (n2,) array of float
M: shape (n1, n2) array of bool
如何打开以下pseduo码INTE 高效真正的代码?数组可能很大,可能超过1亿个元素。
A[M] = ("B broadcast to shape (n1,n2)")[M]