What is the default of numpy functions, with where=False?

谁说胖子不能爱 提交于 2019-11-28 14:21:42

It looks like garbage becasue that's exactly what it is - memory that's been garbage collected.

Whatever function you are calling sets aside a block of memory to put the results in, but never puts any results there because where=False. You're getting the same values you would from np.empty - i.e. whatever garbage was in that memory block before the function assigned it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!