quickpaver.RectilinearGrid.make_spatial_gradient_matrices#
- RectilinearGrid.make_spatial_gradient_matrices(sub_selection: ndarray[tuple[Any, ...], dtype[int64]] | None = None, which: Literal['forward', 'backward', 'both'] = 'both') Tuple[csc_array, csc_array, csc_array][source]#
Make the matrix which gives the spatial gradient of a field.
- Parameters:
sub_selection (Optional[NDArrayInt], optional) – _description_, by default None
which (Literal["forward", "backward", "both"] = "both") – _description_, by default “both”
- Returns:
_description_
- Return type:
Tuple[csc_array, csc_array]