mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
add tutorial page 1 - the Matrix class
+ 3 examples
This commit is contained in:
12
doc/examples/tut_matrix_resize_fixed_size.cpp
Normal file
12
doc/examples/tut_matrix_resize_fixed_size.cpp
Normal file
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user