MatrixBase_set.cpp
Go to the documentation of this file.
00001 Matrix3i m1;
00002 m1 << 1, 2, 3,
00003       4, 5, 6,
00004       7, 8, 9;
00005 cout << m1 << endl << endl;
00006 Matrix3i m2 = Matrix3i::Identity();
00007 m2.block(0,0, 2,2) << 10, 11, 12, 13;
00008 cout << m2 << endl << endl;
00009 Vector2i v1;
00010 v1 << 14, 15;
00011 m2 << v1.transpose(), 16,
00012       v1, m1.block(1,1,2,2);
00013 cout << m2 << endl;


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