diff options
Diffstat (limited to 'doc/snippets/MatrixBase_operatorNorm.cpp')
-rw-r--r-- | doc/snippets/MatrixBase_operatorNorm.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |