COSC-4P80-Assignment-2/lib/eigen-3.4.0/doc/snippets/Tutorial_AdvancedInitializa...

5 lines
168 B
C++
Raw Normal View History

2024-10-21 16:42:03 -04:00
MatrixXf mat = MatrixXf::Random(2, 3);
std::cout << mat << std::endl << std::endl;
mat = (MatrixXf(2,2) << 0, 1, 1, 0).finished() * mat;
std::cout << mat << std::endl;