threed-beam-fea/ext/eigen-3.2.7/doc/snippets/Cwise_product.cpp

5 lines
141 B
C++

Array33i a = Array33i::Random(), b = Array33i::Random();
Array33i c = a * b;
cout << "a:\n" << a << "\nb:\n" << b << "\nc:\n" << c << endl;