阅读背景:

使数组中的低值为零的最快方法?

来源:互联网 

So, lets say I have 100,000 float arrays with 100 elements each. I need the highest X number of values, BUT only if they are greater than Y. Any element not matching this should be set to 0. What would be the fastest way to do this in Python? Order must be maintained. Most of the elements are already set to 0.So, lets say I have 100,000 float arrays with 1




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: