convert At call to range

wts is a []float64, which means we can range over it, which will be
faster than calling At in a loop.