def rho2c(rho): return invsigmoid(rho)
def rhoomega2c(rhoomega, scaleVector=None): K = rhoomega.size / 2 if scaleVector is not None: rhoomega = rhoomega / scaleVector return np.hstack([invsigmoid(rhoomega[:K]), np.log(rhoomega[K:])])
def rhoomega2c(rhoomega): K = rhoomega.size / 2 return np.hstack([invsigmoid(rhoomega[:K]), np.log(rhoomega[K:])])
def uhat2c(uhat): return invsigmoid(uhat)