remove function for constructing semidiscrete difference matrix