Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 20 of file HouseholderQRTest.cpp.
21{
22 using namespace boost::numeric::ublas;
24 matrix<double>
A (3,3);
34 cout <<
"A=" <<
A << endl;
35
36 cout << "QR decomposition using Householder" << endl;
37 matrix<double> Q(3,3), R(3,3);
39 matrix<double> Z = prod(Q,R) -
A;
40 float f = norm_1 (Z);
41 cout << "Q=" << Q <<endl;
42 cout << "R=" << R << endl;
43 cout << "|Q*R - A|=" << f << endl;
44
45 return 0;
46}
void HouseholderQR(const ublas::matrix< T > &M, ublas::matrix< T > &Q, ublas::matrix< T > &R)
References A, and pwiz::math::HouseholderQR().