eigen/doc/snippets/MatrixBase_reshaped_to_vector.cpp
2018-09-25 16:35:44 +02:00

5 lines
263 B
C++

Matrix4i m = Matrix4i::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is m.reshaped().transpose():" << endl << m.reshaped().transpose() << endl;
cout << "Here is m.reshaped<RowMajor>(): " << endl << m.reshaped<RowMajor>() << endl;