Go to the source code of this file.
◆ main()
Definition at line 6 of file Tutorial_ArrayClass_interop_matrix.cpp.
18 std::cout <<
"-- Matrix m*n: --\n" << result <<
"\n\n";
19 result =
m.array() *
n.array();
20 std::cout <<
"-- Array m*n: --\n" << result <<
"\n\n";
21 result =
m.cwiseProduct(
n);
22 std::cout <<
"-- With cwiseProduct: --\n" << result <<
"\n\n";
23 result =
m.array() + 4;
24 std::cout <<
"-- Array m + 4: --\n" << result <<
"\n\n";
Matrix< float, Dynamic, Dynamic > MatrixXf
Dynamic×Dynamic matrix of type float.