now allow sum of matrix times vector