mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Complete doc with MatrixXNt and MatrixNXt
This commit is contained in:
committed by
Antonio Sánchez
parent
cb5ca1c901
commit
fbc62f7df9
@@ -3,10 +3,10 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
MatrixXf A = MatrixXf::Random(3, 2);
|
||||
cout << "Here is the matrix A:\n" << A << endl;
|
||||
VectorXf b = VectorXf::Random(3);
|
||||
cout << "Here is the right hand side b:\n" << b << endl;
|
||||
cout << "The least-squares solution is:\n"
|
||||
<< A.template bdcSvd<ComputeThinU | ComputeThinV>().solve(b) << endl;
|
||||
Eigen::MatrixXf A = Eigen::MatrixXf::Random(3, 2);
|
||||
std::cout << "Here is the matrix A:\n" << A << std::endl;
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user