remove unneeded eval()

This commit is contained in:
陈浩南 2023-09-29 19:10:12 +08:00
parent 0256f6796b
commit a8987bcbfd

View File

@ -128,8 +128,8 @@ int main(int argc, const char** argv)
for (int y = -1; y <= 1; y++)
for (int z = -1; z <= 1; z++)
{
auto this_qpoint = (current_qpoint
+ Eigen::Matrix<int, 3, 1>{{x}, {y}, {z}}.cast<double>()).eval();
auto this_qpoint = current_qpoint
+ Eigen::Matrix<int, 3, 1>{{x}, {y}, {z}}.cast<double>();
auto this_score = score(this_qpoint);
if (this_score < min_score)
{