Skip to main content

combine_terms_f32

Function combine_terms_f32 

Source
pub fn combine_terms_f32(
    out: &mut [f32],
    reg: &[f32],
    data: &[f32],
    lambda: f32,
)
Expand description

Combine regularization and data terms: out[i] = lambda * reg[i] + data[i] Matches MATLAB MEDI: y = D + R where D is data term, R = lambda * reg term