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:
@@ -227,10 +227,10 @@ void testLmder()
|
||||
// std::cout << fjac*covfac << std::endl;
|
||||
|
||||
MatrixXd cov;
|
||||
cov = covfac*lm.fjac.corner<n,n>(TopLeft);
|
||||
cov = covfac*lm.fjac.topLeftCorner<n,n>();
|
||||
VERIFY_IS_APPROX( cov, cov_ref);
|
||||
// TODO: why isn't this allowed ? :
|
||||
// VERIFY_IS_APPROX( covfac*fjac.corner<n,n>(TopLeft) , cov_ref);
|
||||
// VERIFY_IS_APPROX( covfac*fjac.topLeftCorner<n,n>() , cov_ref);
|
||||
}
|
||||
|
||||
struct hybrj_functor : Functor<double>
|
||||
@@ -618,10 +618,10 @@ void testLmdif()
|
||||
// std::cout << fjac*covfac << std::endl;
|
||||
|
||||
MatrixXd cov;
|
||||
cov = covfac*lm.fjac.corner<n,n>(TopLeft);
|
||||
cov = covfac*lm.fjac.topLeftCorner<n,n>();
|
||||
VERIFY_IS_APPROX( cov, cov_ref);
|
||||
// TODO: why isn't this allowed ? :
|
||||
// VERIFY_IS_APPROX( covfac*fjac.corner<n,n>(TopLeft) , cov_ref);
|
||||
// VERIFY_IS_APPROX( covfac*fjac.topLeftCorner<n,n>() , cov_ref);
|
||||
}
|
||||
|
||||
struct chwirut2_functor : Functor<double>
|
||||
|
||||
Reference in New Issue
Block a user