FD_spatial_gradient#

cuqi.pde.FD_spatial_gradient(sol, grid, times)[source]#

Time dependent observation map that computes the finite difference (FD) spatial gradient of a solution given at grid points (grid) and times (times). This map is supported for 1D spatial domains only.

Parameters:
  • sol (np.ndarray) – The solution array of shape (number of grid points, number of time steps).

  • grid (np.ndarray) – The spatial grid points of shape (number of grid points,).

  • times (np.ndarray) – The discretized time steps of shape (number of time steps,).