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< const MatrixType > MapTypeConst
A matrix or vector expression mapping an existing array of data.
MapTypeConst m2mapconst(p, m2.size())
MapType m2map(p, m2.size())
Map< MatrixType > MapType
Matrix< float, 1, Dynamic > MatrixType