Consistent with finite_difference_matrix