Fix LinAlgSVD example code

This commit is contained in:
Zach Davis 2023-03-08 17:04:59 +00:00
parent 7bf2968fed
commit b1beba8a3e

View File

@ -8,5 +8,5 @@ int main()
Eigen::VectorXf b = Eigen::VectorXf::Random(3);
std::cout << "Here is the right hand side b:\n" << b << std::endl;
std::cout << "The least-squares solution is:\n"
<< A.template bdcSvd<Eigen::ComputeThinU | Eigen::ComputeThinV>().solve(b) << std::endl;
<< A.bdcSvd(Eigen::ComputeThinU | Eigen::ComputeThinV).solve(b) << std::endl;
}