mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-03 06:50:57 +08:00
11 lines
213 B
C++
11 lines
213 B
C++
#include <Eigen/Dense>
|
|
#include <iostream>
|
|
|
|
int main() {
|
|
Eigen::ArrayXXf a(2, 2);
|
|
Eigen::ArrayXXf b(2, 2);
|
|
a << 1, 2, 3, 4;
|
|
b << 5, 6, 7, 8;
|
|
std::cout << "a * b = " << std::endl << a * b << std::endl;
|
|
}
|