aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/example.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/example.cpp')
-rw-r--r--doc/example.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/example.cpp b/doc/example.cpp
index 75d47f988..ca10d077a 100644
--- a/doc/example.cpp
+++ b/doc/example.cpp
@@ -1,23 +1,25 @@
#include "../src/Core.h"
+USING_EIGEN_DATA_TYPES
+
using namespace std;
template<typename Scalar, typename Derived>
-void foo(const EiObject<Scalar, Derived>& m)
+void foo(const Eigen::Object<Scalar, Derived>& m)
{
cout << "Here's m:" << endl << m << endl;
}
template<typename Scalar, typename Derived>
-EiScalarProduct<Derived>
-twice(const EiObject<Scalar, Derived>& m)
+Eigen::ScalarProduct<Derived>
+twice(const Eigen::Object<Scalar, Derived>& m)
{
return 2 * m;
}
int main(int, char**)
{
- EiMatrix2d m;
+ Matrix2d m;
m(0,0)= 1;
m(1,0)= 2;
m(0,1)= 3;