Function bdiv
Source pub fn bdiv(
gx: &[f64],
gy: &[f64],
gz: &[f64],
nx: usize,
ny: usize,
nz: usize,
vsx: f64,
vsy: f64,
vsz: f64,
) -> Vec<f64>
Expand description
Backward divergence operator (negative adjoint of forward gradient)
Computes backward divergence with periodic boundary conditions.
§Arguments
gx, gy, gz - Gradient components
nx, ny, nz - Array dimensions
vsx, vsy, vsz - Voxel sizes
§Returns
Divergence (negative)