diff options
Diffstat (limited to 'doc/snippets/SelfAdjointView_operatorNorm.cpp')
-rw-r--r-- | doc/snippets/SelfAdjointView_operatorNorm.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/snippets/SelfAdjointView_operatorNorm.cpp b/doc/snippets/SelfAdjointView_operatorNorm.cpp new file mode 100644 index 000000000..f380f5594 --- /dev/null +++ b/doc/snippets/SelfAdjointView_operatorNorm.cpp @@ -0,0 +1,3 @@ +MatrixXd ones = MatrixXd::Ones(3,3); +cout << "The operator norm of the 3x3 matrix of ones is " + << ones.selfadjointView<Lower>().operatorNorm() << endl; |