Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
gtsam
3rdparty
Eigen
doc
examples
TutorialLinAlgSVDSolve.cpp
Go to the documentation of this file.
1
#include <iostream>
2
#include <Eigen/Dense>
3
4
using namespace
std
;
5
using namespace
Eigen
;
6
7
int
main
()
8
{
9
MatrixXf
A
= MatrixXf::Random(3, 2);
10
cout <<
"Here is the matrix A:\n"
<< A << endl;
11
VectorXf
b
= VectorXf::Random(3);
12
cout <<
"Here is the right hand side b:\n"
<< b << endl;
13
cout <<
"The least-squares solution is:\n"
14
<< A.bdcSvd(
ComputeThinU
|
ComputeThinV
).solve(b) << endl;
15
}
b
Scalar * b
Definition:
benchVecAdd.cpp:17
Eigen::ComputeThinV
Definition:
Constants.h:389
Eigen
Namespace containing all symbols from the Eigen library.
Definition:
jet.h:637
std
Definition:
Half.h:150
main
int main()
Definition:
TutorialLinAlgSVDSolve.cpp:7
A
Definition:
test_numpy_dtypes.cpp:254
Eigen::ComputeThinU
Definition:
Constants.h:385
gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:19