mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
get rid of using namespace Eigen in sample code
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
e4c40b092a
commit
39a6aff16c
@@ -1,8 +1,7 @@
|
||||
#include <Eigen/Dense>
|
||||
#include <iostream>
|
||||
|
||||
using namespace Eigen;
|
||||
using namespace std;
|
||||
using Eigen::MatrixXf;
|
||||
|
||||
int main()
|
||||
{
|
||||
@@ -16,7 +15,7 @@ int main()
|
||||
7,8;
|
||||
|
||||
result = (m.array() + 4).matrix() * m;
|
||||
cout << "-- Combination 1: --" << endl << result << endl << endl;
|
||||
std::cout << "-- Combination 1: --\n" << result << "\n\n";
|
||||
result = (m.array() * n.array()).matrix() * m;
|
||||
cout << "-- Combination 2: --" << endl << result << endl << endl;
|
||||
std::cout << "-- Combination 2: --\n" << result << "\n\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user