Check for equal storage of parameters to addmm