写代码时碰到一个问题,想问问各位大佬为什么,下面的步骤是U的行列式是-1,V是-1, 2U*2V却等于3?
Eigen::JacobiSVD<Eigen::Matrix3d> svd_slover(covge,Eigen::ComputeFullU | Eigen::ComputeFullV);
MatXX U = svd_slover.matrixU();
MatXX V = svd_slover.matrixV();
MatXX D = svd_slover.singularValues();
//std::cout<<"DEBUG: |U|*|V|="<<(U.determinant()*V.determinant())<<'\n';
int Udet,Vdet,determinant_uv;
determinant_uv = (2*U.determinant())*(2*V.determinant());
//f=( U.determinant()*V.determinant());
cout<<"determinant_uv = "<<determinant_uv<<endl;
//cout<<"U = "<<Udet<<endl;
//cout<<"V = "<<Vdet<<endl;
cout<<"U.determinant() = "<<U.determinant()<<endl;
cout<<"V.determinant() = "<<V.determinant()<<endl;
cout<<"U.determinant()*V.determinant() = "<<(2*U.determinant())*(2*V.determinant())<<endl;