I just provide a link which may help to understand numpy broadcasting rules: Array Broadcasting in Numpy.
Documentation states:
Therefore it is impossible 'to understand' arithmetic operations between numpy arrays of different shapes without understanding concept of broadcasting.
Documentation states:
Quote:The term broadcasting describes how numpy treats arrays with different shapes during arithmetic operations.
Therefore it is impossible 'to understand' arithmetic operations between numpy arrays of different shapes without understanding concept of broadcasting.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.