aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_reductions_norm.cpp~
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/Tutorial_ReductionsVisitorsBroadcasting_reductions_norm.cpp~')
-rw-r--r--doc/examples/Tutorial_ReductionsVisitorsBroadcasting_reductions_norm.cpp~28
1 files changed, 0 insertions, 28 deletions
diff --git a/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_reductions_norm.cpp~ b/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_reductions_norm.cpp~
deleted file mode 100644
index 03057f8d2..000000000
--- a/doc/examples/Tutorial_ReductionsVisitorsBroadcasting_reductions_norm.cpp~
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <Eigen/Dense>
-#include <iostream>
-
-using namespace std;
-using namespace Eigen;
-
-int main()
-{
- VectorXf v(2);
- MatrixXf m(2,2), n(2,2);
-
- v << 2,
- 5;
-
- m << 0,2,
- 3,4;
-
- n << 1,2,
- 3,4;
-
- cout << "v.norm() = " << m.norm() << endl;
- cout << "m.norm() = " << m.norm() << endl;
- cout << "n.norm() = " << m.norm() << endl;
- cout << endl;
- cout << "v.squaredNorm() = " << v.squaredNorm() << endl;
- cout << "m.squaredNorm() = " << m.squaredNorm() << endl;
- cout << "n.squaredNorm() = " << n.squaredNorm() << endl;
-}