diff options
Diffstat (limited to 'doc/examples/tut_matrix_resize_fixed_size.cpp')
-rw-r--r-- | doc/examples/tut_matrix_resize_fixed_size.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/examples/tut_matrix_resize_fixed_size.cpp b/doc/examples/tut_matrix_resize_fixed_size.cpp new file mode 100644 index 000000000..dcbdfa783 --- /dev/null +++ b/doc/examples/tut_matrix_resize_fixed_size.cpp @@ -0,0 +1,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; +} |