mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-22 01:29:35 +08:00
13 lines
229 B
C++
13 lines
229 B
C++
#include <iostream>
|
|
#include <Eigen/Dense>
|
|
|
|
using namespace Eigen;
|
|
|
|
int main()
|
|
{
|
|
Matrix4d m;
|
|
m.resize(4,4); // no operation
|
|
std::cout << "The matrix m is of size "
|
|
<< m.rows() << "x" << m.cols() << std::endl;
|
|
}
|