Skip to main content

compute_p_weights_f32

Function compute_p_weights_f32 

Source
pub fn compute_p_weights_f32(
    p: &mut [f32],
    mx: &[f32],
    my: &[f32],
    mz: &[f32],
    gx: &[f32],
    gy: &[f32],
    gz: &[f32],
    beta: f32,
)
Expand description

Compute P = 1 / sqrt(ux^2 + uy^2 + uz^2 + beta) where ux = mx * gx, uy = my * gy, uz = mz * gz