makins sure cumsum works for quasi matrices with delta functions.