Suppose I have two 2D matricies: [[1,2],[0,0]] and [[4,8],[0,0],[5,6]] and I want to sum them up and get the matrix [[5,10],[0,0],[5,6]]. How can I do it in the most easiest way without writing my own function? As I understood, numpy matricies don't support this.
import numpy as np
m1 = np.array([[1, 2], [0, 0]])
m2 = np.array([[4, 8], [0, 0], [5, 6]])
res = m1+m2