summaryrefslogtreecommitdiffhomepage
path: root/eigen/doc/examples/tut_matrix_resize.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'eigen/doc/examples/tut_matrix_resize.cpp')
-rw-r--r--eigen/doc/examples/tut_matrix_resize.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/eigen/doc/examples/tut_matrix_resize.cpp b/eigen/doc/examples/tut_matrix_resize.cpp
deleted file mode 100644
index 0392c3a..0000000
--- a/eigen/doc/examples/tut_matrix_resize.cpp
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <iostream>
-#include <Eigen/Dense>
-
-using namespace Eigen;
-
-int main()
-{
- MatrixXd m(2,5);
- m.resize(4,3);
- std::cout << "The matrix m is of size "
- << m.rows() << "x" << m.cols() << std::endl;
- std::cout << "It has " << m.size() << " coefficients" << std::endl;
- VectorXd v(2);
- v.resize(5);
- std::cout << "The vector v is of size " << v.size() << std::endl;
- std::cout << "As a matrix, v is of size "
- << v.rows() << "x" << v.cols() << std::endl;
-}