技术栈
broadcasting
Code Talk
4 天前
numpy
·
broadcasting
Numpy broadcasting规则
Numpy的broadcast操作是为了将两个不同形状的数组,通过一系列规则,变换成形状相同的数组,从而使得它们之间可以进行按元素进行的计算。