13 cout <<
"m1: " <<
m1 << endl;
14 cout <<
"m2: " <<
m2 << endl;
15 cout <<
"Squared euclidean distance: " << (
m1-
m2).squaredNorm() << endl;
16 cout <<
"Squared euclidean distance, using map: " <<
17 (
m1-
m2map).squaredNorm() << endl;
19 cout <<
"Updated m2: " <<
m2 << endl;
20 cout <<
"m2 coefficient 2, constant accessor: " <<
m2mapconst(2) << endl;
Map< MatrixType > MapType
MapType m2map(p, m2.size())
MapTypeConst m2mapconst(p, m2.size())
Matrix< float, 1, Dynamic > MatrixType
Map< const MatrixType > MapTypeConst