get rid of using namespace Eigen in sample code

This commit is contained in:
Erik Schultheis
2021-12-07 19:57:38 +00:00
committed by Rasmus Munk Larsen
parent e4c40b092a
commit 39a6aff16c
58 changed files with 274 additions and 399 deletions

View File

@@ -1,15 +1,15 @@
#include <iostream>
#include <Eigen/Dense>
using namespace Eigen;
using namespace std;
using Eigen::Matrix3d;
using Eigen::Vector3d;
int main()
{
Matrix3d m = Matrix3d::Random();
m = (m + Matrix3d::Constant(1.2)) * 50;
cout << "m =" << endl << m << endl;
std::cout << "m =" << std::endl << m << std::endl;
Vector3d v(1,2,3);
cout << "m * v =" << endl << m * v << endl;
std::cout << "m * v =" << std::endl << m * v << std::endl;
}