mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Update SVD Module to allow specifying computation options with a template parameter. Resolves #2051
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
4a76880351
commit
eef33946b7
@@ -651,7 +651,7 @@ EIGEN_DEVICE_FUNC inline Derived& QuaternionBase<Derived>::setFromTwoVectors(con
|
||||
{
|
||||
c = numext::maxi(c,Scalar(-1));
|
||||
Matrix<Scalar,2,3> m; m << v0.transpose(), v1.transpose();
|
||||
JacobiSVD<Matrix<Scalar,2,3> > svd(m, ComputeFullV);
|
||||
JacobiSVD<Matrix<Scalar,2,3>, ComputeFullV> svd(m);
|
||||
Vector3 axis = svd.matrixV().col(2);
|
||||
|
||||
Scalar w2 = (Scalar(1)+c)*Scalar(0.5);
|
||||
|
||||
Reference in New Issue
Block a user