summaryrefslogtreecommitdiffhomepage
path: root/eigen/doc/examples/TutorialLinAlgExComputeSolveError.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'eigen/doc/examples/TutorialLinAlgExComputeSolveError.cpp')
-rw-r--r--eigen/doc/examples/TutorialLinAlgExComputeSolveError.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/eigen/doc/examples/TutorialLinAlgExComputeSolveError.cpp b/eigen/doc/examples/TutorialLinAlgExComputeSolveError.cpp
deleted file mode 100644
index f362fb7..0000000
--- a/eigen/doc/examples/TutorialLinAlgExComputeSolveError.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <iostream>
-#include <Eigen/Dense>
-
-using namespace std;
-using namespace Eigen;
-
-int main()
-{
- MatrixXd A = MatrixXd::Random(100,100);
- MatrixXd b = MatrixXd::Random(100,50);
- MatrixXd x = A.fullPivLu().solve(b);
- double relative_error = (A*x - b).norm() / b.norm(); // norm() is L2 norm
- cout << "The relative error is:\n" << relative_error << endl;
-}