calc_mu_cpp function

Calculate the mu vector of means of a Gaussian linear network. This is the C++ backend of the function.