pysdic.numeric.assemble_backward_finite_difference_matrix#

assemble_backward_finite_difference_matrix(order, n_times, *, n_dim=1, spacing=1.0, accuracy=1, boundary='one_sided', sparse=True, return_indices=False)[source]#

Assemble the backward finite difference operator of a derivative on a uniform sampling.

The row \(i\) uses the samples \(i - n - p + 1, \dots, i\) (see compute_backward_finite_difference_coefficients()). At the beginning of the sampling, the window is shifted forward (boundary="one_sided") or the row is removed (boundary="valid").

Parameters: