I have to sum 2 arrays with broadcasting. This is the first:
a = [0 1 2 3]
And this is the second:
A = [[ 0 1 2 3 4 5]
[ 6 7 8 9 10 11]
[12 13 14 15 16 17]
[18 19 20 21 22 23]]
This is the code I had tried until now:
a = np.array(a)
A = np.array(A)
G = a + A
print(G)
But when I run, it throws this error: ValueError: operands could not be broadcast together with shapes (4,) (4,6)
How to solve it?