9 Eigen::MatrixXf
m(2,4);
20 (m.colwise() -
v).colwise().squaredNorm().minCoeff(&index);
22 cout <<
"Nearest neighbour is column " << index <<
":" << endl;
23 cout << m.col(index) << endl;
Namespace containing all symbols from the Eigen library.
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Array< int, Dynamic, 1 > v