Go to the source code of this file.
Functions |
int | main (int argc, const char *argv[]) |
Function Documentation
int main |
( |
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
Definition at line 20 of file HouseholderQRTest.cpp.
References A, and pwiz::math::HouseholderQR().
{
using namespace boost::numeric::ublas;
using namespace std;
cout <<
"A=" <<
A << endl;
cout << "QR decomposition using Householder" << endl;
matrix<double> Q(3,3), R(3,3);
matrix<double> Z = prod(Q,R) -
A;
float f = norm_1 (Z);
cout << "Q=" << Q <<endl;
cout << "R=" << R << endl;
cout << "|Q*R - A|=" << f << endl;
return 0;
}