Sorry, it should have been
const size_t dummyPtr_stride = dummy.size(1);
const size_t mult1Ptr_stride = mult1.size(1);

I was using same size for both dimensions so it worked.
I also changed it in the previous post