Tutorial_BlockOperations_colrow.cpp
Go to the documentation of this file.
00001 #include <Eigen/Dense>
00002 #include <iostream>
00003 
00004 using namespace std;
00005 
00006 int main()
00007 {
00008   Eigen::MatrixXf m(3,3);
00009   m << 1,2,3,
00010        4,5,6,
00011        7,8,9;
00012   cout << "Here is the matrix m:" << endl << m << endl;
00013   cout << "2nd Row: " << m.row(1) << endl;
00014   m.col(2) += 3 * m.col(0);
00015   cout << "After adding 3 times the first column into the third column, the matrix m is:\n";
00016   cout << m << endl;
00017 }


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