numpy.ndarray.put

方法

ndarray.put(indices, values, mode='raise')

集合 a.flat[n] = values[n] 为了所有 n 在索引中。

参照 numpy.put 完整文件。

参见

numpy.put

等效函数