diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2019-05-10 14:57:05 +0200 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2019-05-10 14:57:05 +0200 |
commit | 4ccd1ece92c58e0ee3a15a6a6f0af2b00b7829ab (patch) | |
tree | b53c322db903ee288944e3a0c247684f144c7c6d /Eigen/src/Geometry | |
parent | d3ef7cf03ed080fb5b35045b73812bb34c6119a3 (diff) |
bug #1707: Fix deprecation warnings, or disable warnings when testing deprecated functions
Diffstat (limited to 'Eigen/src/Geometry')
-rw-r--r-- | Eigen/src/Geometry/Transform.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/Geometry/Transform.h b/Eigen/src/Geometry/Transform.h index 3090351a0..c87b5fedf 100644 --- a/Eigen/src/Geometry/Transform.h +++ b/Eigen/src/Geometry/Transform.h @@ -1111,12 +1111,12 @@ EIGEN_DEVICE_FUNC void Transform<Scalar,Dim,Mode,Options>::computeRotationScalin Scalar x = (svd.matrixU() * svd.matrixV().adjoint()).determinant(); // so x has absolute value 1 VectorType sv(svd.singularValues()); sv.coeffRef(0) *= x; - if(scaling) scaling->lazyAssign(svd.matrixV() * sv.asDiagonal() * svd.matrixV().adjoint()); + if(scaling) *scaling = svd.matrixV() * sv.asDiagonal() * svd.matrixV().adjoint(); if(rotation) { LinearMatrixType m(svd.matrixU()); m.col(0) /= x; - rotation->lazyAssign(m * svd.matrixV().adjoint()); + *rotation = m * svd.matrixV().adjoint(); } } @@ -1140,12 +1140,12 @@ EIGEN_DEVICE_FUNC void Transform<Scalar,Dim,Mode,Options>::computeScalingRotatio Scalar x = (svd.matrixU() * svd.matrixV().adjoint()).determinant(); // so x has absolute value 1 VectorType sv(svd.singularValues()); sv.coeffRef(0) *= x; - if(scaling) scaling->lazyAssign(svd.matrixU() * sv.asDiagonal() * svd.matrixU().adjoint()); + if(scaling) *scaling = svd.matrixU() * sv.asDiagonal() * svd.matrixU().adjoint(); if(rotation) { LinearMatrixType m(svd.matrixU()); m.col(0) /= x; - rotation->lazyAssign(m * svd.matrixV().adjoint()); + *rotation = m * svd.matrixV().adjoint(); } } |