From f0238cfb6997c4acfc2bd200de7295f3fa36968f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 3 Mar 2019 21:09:10 +0100 Subject: don't index Eigen --- eigen/doc/snippets/FullPivLU_solve.cpp | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 eigen/doc/snippets/FullPivLU_solve.cpp (limited to 'eigen/doc/snippets/FullPivLU_solve.cpp') diff --git a/eigen/doc/snippets/FullPivLU_solve.cpp b/eigen/doc/snippets/FullPivLU_solve.cpp deleted file mode 100644 index c1f8823..0000000 --- a/eigen/doc/snippets/FullPivLU_solve.cpp +++ /dev/null @@ -1,11 +0,0 @@ -Matrix m = Matrix::Random(); -Matrix2f y = Matrix2f::Random(); -cout << "Here is the matrix m:" << endl << m << endl; -cout << "Here is the matrix y:" << endl << y << endl; -Matrix x = m.fullPivLu().solve(y); -if((m*x).isApprox(y)) -{ - cout << "Here is a solution x to the equation mx=y:" << endl << x << endl; -} -else - cout << "The equation mx=y does not have any solution." << endl; -- cgit v1.2.3