mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
bug #1201: improve code generation of affine*vec with MSVC
This commit is contained in:
parent
9137f560f0
commit
df24f4a01d
@ -1367,7 +1367,7 @@ struct transform_right_product_impl< TransformType, MatrixType, 2, 1> // rhs is
|
||||
EIGEN_STATIC_ASSERT(OtherRows==Dim, YOU_MIXED_MATRICES_OF_DIFFERENT_SIZES);
|
||||
|
||||
Matrix<typename ResultType::Scalar, Dim+1, 1> rhs;
|
||||
rhs << other,1;
|
||||
rhs.template head<Dim>() = other; rhs[Dim] = 1;
|
||||
Matrix<typename ResultType::Scalar, WorkingRows, 1> res(T.matrix() * rhs);
|
||||
return res.template head<Dim>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user