made MixingWeights code non-member
CUDA was simply giving too many errors dealing with captures of member variables.