Financial
我会每周更新一篇对于经济和市场的小结与展望
Python – Numpy broadcasting:
Today, I have learned numpy broadcasting from link: https://numpy.org/doc/stable/user/basics.broadcasting.html . Here are the summary:
Broadcast is basically making smaller arrays to larger arrays so that they are compatible by the following rules:
- if array shape a == array shape b
- matrix a multiply a scaler b or one of the dimension is 1
Follow My Blog
Get new content delivered directly to your inbox.