compute_gradient

Function compute_gradient 

Source
pub fn compute_gradient(
    p: &Matrix<f64>,
    dx: f64,
    dy: f64,
) -> (Matrix<f64>, Matrix<f64>)
Expand description

Computes the gradient of a scalar field.

Returns (∂p/∂x, ∂p/∂y)