diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h b/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h index 8d8ad2658..7449b046b 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h @@ -461,8 +461,8 @@ struct TensorEvaluator, Device> values[i] = m_impl.coeff(inputIndex); ++outputOffset; } else { - outputOffset = 0; values[i] = m_impl.coeff(++inputIndex); + outputOffset = 1; // Next offset. } } return internal::pload(values);