Re: [eigen] EIGEN preprocessor symbol? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
On 02/07/2014 01:11:18 PM, Christoph Hertzberg wrote:
On 07.02.2014 12:32, Helmut Jarausch wrote:
what is the recommended way to check, during the preprocessing
phase, if
Eigen/Core has been included?
I would suggest EIGEN_WORLD_VERSION (has been defined at least since
2.0.0)
But why do you need to check that? Shouldn't usually just including
it be better?
Thanks Christoph!
I'm writing an MD5sum class for debugging. With this I can print the
md5sum of an object
to easily compare two versions of programs which should produce
identical objects.
Since I don't want to include Eigen for any program which uses this
class, I define
the specialized templates for Eigen Matrix or Array objects only if the
Eigen header
has been included already.
Helmut