aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/tut_matrix_resize_fixed_size.cpp
blob: dcbdfa783d3693b7c4415d580ace1cdf626c4c1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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;
}