mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
Fix inverse unit test making sure we try to invert an invertible matrix
This commit is contained in:
parent
c83e01f2d6
commit
0403d49006
@ -73,6 +73,7 @@ template<typename MatrixType> void inverse(const MatrixType& m)
|
||||
{
|
||||
Matrix<Scalar, MatrixType::RowsAtCompileTime+1, MatrixType::RowsAtCompileTime+1, MatrixType::Options> m3;
|
||||
m3.setRandom();
|
||||
m3.topLeftCorner(rows,rows) = m1;
|
||||
m2 = m3.template topLeftCorner<MatrixType::RowsAtCompileTime,MatrixType::ColsAtCompileTime>().inverse();
|
||||
VERIFY_IS_APPROX( (m3.template topLeftCorner<MatrixType::RowsAtCompileTime,MatrixType::ColsAtCompileTime>()), m2.inverse() );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user