3 cout <<
"The solution using normal equations is:\n"
4 << (
A.transpose() *
A).ldlt().solve(
A.transpose() *
b) << endl;
Matrix< float, Dynamic, Dynamic > MatrixXf
DynamicĂ—Dynamic matrix of type float.
Matrix< float, Dynamic, 1 > VectorXf
DynamicĂ—1 vector of type float.