Registered Member
|
Hi all,
I should start by saying that I have recently started using Eigen, and it has been really great anf FAST. I am trying to write a small code to read back Eigen matrices from a file. I have written this small header to overload >> to read matrix from std::istream as following: EigenUtils.h
And my main.cpp
It works if I directly put the definition in my main file, or use namespace Eigen {#include "EigenUtils.h"} . Otherwise,just simply doing #include"EigenUtils.h" starts giving error like: ‘Dynamic’ was not declared in this scope. The compiler nicely suggests using "Eigen::Dynamic",but that does not help. Is there a way, I can avoid this? I am having hard time figuring where I am doing wrong. I will really appreciate any help regarding this. Update I am sorry. This actually works. I was editing one header and compiling a unedited one |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]