From e7d809d4349fd4048777be71f1c803d0b13f8fe8 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Mon, 24 May 2010 17:43:50 +0100 Subject: Update eigenvalues() and operatorNorm() methods in MatrixBase. * use SelfAdjointView instead of Eigen2's SelfAdjoint flag. * add tests and documentation. * allow eigenvalues() for non-selfadjoint matrices. * they no longer depend only on SelfAdjointEigenSolver, so move them to a separate file --- doc/snippets/MatrixBase_operatorNorm.cpp | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 doc/snippets/MatrixBase_operatorNorm.cpp (limited to 'doc/snippets/MatrixBase_operatorNorm.cpp') diff --git a/doc/snippets/MatrixBase_operatorNorm.cpp b/doc/snippets/MatrixBase_operatorNorm.cpp new file mode 100644 index 000000000..355246f0d --- /dev/null +++ b/doc/snippets/MatrixBase_operatorNorm.cpp @@ -0,0 +1,3 @@ +MatrixXd ones = MatrixXd::Ones(3,3); +cout << "The operator norm of the 3x3 matrix of ones is " + << ones.operatorNorm() << endl; -- cgit v1.2.3