diff options
author | Abhijit Kundu <abhijit.dgp@gmail.com> | 2016-06-08 16:12:04 -0400 |
---|---|---|
committer | Abhijit Kundu <abhijit.dgp@gmail.com> | 2016-06-08 16:12:04 -0400 |
commit | 0beabb4776b887c25977186b5af6811eb49aaa23 (patch) | |
tree | b0dae535474347b96f07fa2402fbe5f34b39c1b1 /Eigen/src/Geometry | |
parent | df095cab104550a8179c28e93d477406dfab6849 (diff) |
Fixed type conversion from int
Diffstat (limited to 'Eigen/src/Geometry')
-rw-r--r-- | Eigen/src/Geometry/Transform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Geometry/Transform.h b/Eigen/src/Geometry/Transform.h index 1a06c1e35..073f4dcd1 100644 --- a/Eigen/src/Geometry/Transform.h +++ b/Eigen/src/Geometry/Transform.h @@ -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.template head<Dim>() = other; rhs[Dim] = 1; + rhs.template head<Dim>() = other; rhs[Dim] = typename ResultType::Scalar(1); Matrix<typename ResultType::Scalar, WorkingRows, 1> res(T.matrix() * rhs); return res.template head<Dim>(); } |