mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Revert "Update SVD Module to allow specifying computation options with a...
This commit is contained in:
committed by
David Tellenbach
parent
4dd126c630
commit
085c2fc5d5
@@ -1105,7 +1105,7 @@ template<typename RotationMatrixType, typename ScalingMatrixType>
|
||||
EIGEN_DEVICE_FUNC void Transform<Scalar,Dim,Mode,Options>::computeRotationScaling(RotationMatrixType *rotation, ScalingMatrixType *scaling) const
|
||||
{
|
||||
// Note that JacobiSVD is faster than BDCSVD for small matrices.
|
||||
JacobiSVD<LinearMatrixType, ComputeFullU | ComputeFullV> svd(linear());
|
||||
JacobiSVD<LinearMatrixType> svd(linear(), ComputeFullU | ComputeFullV);
|
||||
|
||||
Scalar x = (svd.matrixU() * svd.matrixV().adjoint()).determinant() < Scalar(0) ? Scalar(-1) : Scalar(1); // so x has absolute value 1
|
||||
VectorType sv(svd.singularValues());
|
||||
@@ -1135,7 +1135,7 @@ template<typename ScalingMatrixType, typename RotationMatrixType>
|
||||
EIGEN_DEVICE_FUNC void Transform<Scalar,Dim,Mode,Options>::computeScalingRotation(ScalingMatrixType *scaling, RotationMatrixType *rotation) const
|
||||
{
|
||||
// Note that JacobiSVD is faster than BDCSVD for small matrices.
|
||||
JacobiSVD<LinearMatrixType, ComputeFullU | ComputeFullV> svd(linear());
|
||||
JacobiSVD<LinearMatrixType> svd(linear(), ComputeFullU | ComputeFullV);
|
||||
|
||||
Scalar x = (svd.matrixU() * svd.matrixV().adjoint()).determinant() < Scalar(0) ? Scalar(-1) : Scalar(1); // so x has absolute value 1
|
||||
VectorType sv(svd.singularValues());
|
||||
|
||||
Reference in New Issue
Block a user