mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
rework Identity API: no longer restricted to square matrices
This commit is contained in:
@@ -51,7 +51,7 @@ template<typename MatrixType> void miscMatrices(const MatrixType& m)
|
||||
else VERIFY_IS_MUCH_SMALLER_THAN(square(r,r2), static_cast<Scalar>(1));
|
||||
square = MatrixType::zero(rows, rows);
|
||||
square.diagonal() = VectorType::ones(rows);
|
||||
VERIFY_IS_APPROX(square, MatrixType::identity(rows));
|
||||
VERIFY_IS_APPROX(square, MatrixType::identity(rows, rows));
|
||||
}
|
||||
|
||||
void EigenTest::testMiscMatrices()
|
||||
|
||||
Reference in New Issue
Block a user