TutorialLinAlgSVDSolve.cpp File Reference

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 4 of file TutorialLinAlgSVDSolve.cpp.

5 {
7  std::cout << "Here is the matrix A:\n" << A << std::endl;
9  std::cout << "Here is the right hand side b:\n" << b << std::endl;
10  std::cout << "The least-squares solution is:\n"
11  << A.bdcSvd(Eigen::ComputeThinU | Eigen::ComputeThinV).solve(b) << std::endl;
12 }
Array< int, 3, 1 > b
MatrixXcf A
static const RandomReturnType Random()
Definition: Random.h:114
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:182
@ ComputeThinV
Definition: Constants.h:401
@ ComputeThinU
Definition: Constants.h:397