tut_matrix_coefficient_accessors.cpp
Go to the documentation of this file.
00001 #include <iostream>
00002 #include <Eigen/Dense>
00003 
00004 using namespace Eigen;
00005 
00006 int main()
00007 {
00008   MatrixXd m(2,2);
00009   m(0,0) = 3;
00010   m(1,0) = 2.5;
00011   m(0,1) = -1;
00012   m(1,1) = m(1,0) + m(0,1);
00013   std::cout << "Here is the matrix m:\n" << m << std::endl;
00014   VectorXd v(2);
00015   v(0) = 4;
00016   v(1) = v(0) - 1;
00017   std::cout << "Here is the vector v:\n" << v << std::endl;
00018 }


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:27