This is an example on how to use the qr decomposition.
#include "../../Test.h"
class QRTestCase : public Test
{
bool TestQR() {
AssertEqual(A, result.first * result.second);
A = { { 2, 3 }, { 3, 2 } };
AssertEqual(A, result.first * result.second);
return true;
}
public:
void run() override { TestQR(); }
};
int main() {
QRTestCase().run();
return 0;
}
std::pair< Matrix< double >, Matrix< double > > qr(const Matrix< double > &A)
Definition: qr.h:12