Added restrict keywords to delta_w_compute function