首页 > 其他 > 详细

NumPy Arrays Arithmetic operations

时间:2020-01-31 12:58:02      阅读:77      评论:0      收藏:0      [点我收藏+]

原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12244981.html

 

vectorization

Arrays are important because they enable you to express batch operations on data without writing any for loops. NumPy users call this vectorization. Any arithmetic operations between equal-size arrays applies the operation element-wise:

技术分享图片

Comparisons between arrays of the same size yield boolean arrays:

技术分享图片

 

Reference

Python for Data Analysis Second Edition

NumPy Arrays Arithmetic operations

原文:https://www.cnblogs.com/agilestyle/p/12244981.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!