diff --git a/Eigen/src/Core/util/ReshapedHelper.h b/Eigen/src/Core/util/ReshapedHelper.h index b5d59cfe8..7b7435205 100644 --- a/Eigen/src/Core/util/ReshapedHelper.h +++ b/Eigen/src/Core/util/ReshapedHelper.h @@ -34,7 +34,7 @@ struct get_compiletime_reshape_size { value = (TotalSize==Dynamic || other_size==Dynamic) ? Dynamic : TotalSize / other_size }; }; -Index get_runtime_reshape_size(AutoSize_t /*size*/, Index other, Index total) { +inline Index get_runtime_reshape_size(AutoSize_t /*size*/, Index other, Index total) { return total/other; }