Update geo_homogeneous test, add eval() to PermutationMatrix.

(cherry picked from commit 4916887f2c)
This commit is contained in:
Antonio Sánchez
2025-10-01 18:01:11 +00:00
committed by Antonio Sanchez
parent b60f763ec0
commit 514221aee5
2 changed files with 5 additions and 2 deletions

View File

@@ -127,8 +127,8 @@ void homogeneous(void) {
{
const Eigen::PermutationMatrix<Size> P{Eigen::Vector<int, Size>::EqualSpaced(0, 1)};
const auto right = Eigen::Vector<Scalar, Size - 1>::Random().homogeneous();
const auto left = Eigen::RowVector<Scalar, Size - 1>::Random().homogeneous();
const auto right = Eigen::Vector<Scalar, Size - 1>::Random().eval().homogeneous();
const auto left = Eigen::RowVector<Scalar, Size - 1>::Random().eval().homogeneous();
VERIFY_IS_APPROX(P * right, P * right.eval());
VERIFY_IS_APPROX(left * P, left.eval() * P);