mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* implement the corner() API change: new methods topLeftCorner() etc
* get rid of BlockReturnType: it was not needed, and code was not always using it consistently anyway * add topRows(), leftCols(), bottomRows(), rightCols() * add corners unit-test covering all of that * adapt docs, expand "porting from eigen 2 to 3" * adapt Eigen2Support
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
Matrix4i m = Matrix4i::Random();
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
cout << "Here is the bottom-right 2x3 corner in m:" << endl
|
||||
<< m.corner(Eigen::BottomRight, 2, 3) << endl;
|
||||
m.corner(Eigen::BottomRight, 2, 3).setZero();
|
||||
cout << "Now the matrix m is:" << endl << m << endl;
|
||||
@@ -1,6 +0,0 @@
|
||||
Matrix4i m = Matrix4i::Random();
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
cout << "Here is the bottom-right 2x3 corner in m:" << endl
|
||||
<< m.corner<2,3>(Eigen::BottomRight) << endl;
|
||||
m.corner<2,3>(Eigen::BottomRight).setZero();
|
||||
cout << "Now the matrix m is:" << endl << m << endl;
|
||||
Reference in New Issue
Block a user