Update U and V directly in Cython