COSC-4P80-Assignment-2/lib/eigen-3.4.0/doc/examples/Tutorial_ArrayClass_mult.cpp

17 lines
237 B
C++
Raw Normal View History

2024-10-21 16:42:03 -04:00
#include <Eigen/Dense>
#include <iostream>
using namespace Eigen;
using namespace std;
int main()
{
ArrayXXf a(2,2);
ArrayXXf b(2,2);
a << 1,2,
3,4;
b << 5,6,
7,8;
cout << "a * b = " << endl << a * b << endl;
}