Home » Community » Newbie corner » Eigen and UPP? (STL question?)
Re: Eigen and UPP? (STL question?) [message #32389 is a reply to message #32388] |
Sun, 15 May 2011 13:43   |
|
dolik.rce wrote on Sun, 15 May 2011 20:59 | That is what I was talking about when I said that better solution will be needed I already looked at the code in eigen and all the containers seem to be derived from Matrix<T>, so the best approach will probably be to make it work for this one class and let the inheritance do its work However, since it is a templated class, it is not easily possible to write specializations for templated functions such as AsString... I have few ideas how to trick it to work, but I haven't time to try it yet (maybe tonight).
|
Well, I grasped that much (though three-layered-eight-parameters-long-templated-classes-genera ted-with-three-folded-macroes are clearly beyond my comprehension ), but what I really meant is that there are not only matrices out there - right? I hoped finding some common predecessor or template param, which controls this behaviour, but failed miserably and scrapped this idea for the time being. Too difficult for me. Guess I'm stuck with basic workarounds for now (hate leaving stuff with a mark "refactor when I'm a guru"...).
dolik.rce wrote on Sun, 15 May 2011 20:59 |
This can be done by creating a package containing the Eigen sources. This is BTW a preferred way in U++, as it allows for better portability (you don't have to make sure Eigen is installed on other computers when you distribute your source code, just the exported package) and reliability (you know that the code will be always used with the same version of the library). See e.g. plugin/png if you want to see an example of this.
|
Now that's a plan ! Now I'll look into example, but could you give me some more solid docs on the subject? Like reference.
dolik.rce wrote on Sun, 15 May 2011 20:59 |
By the way, what version of Eigen are you using? I noticed some (rather important) differences between versions 2.x and 3.x...
|
3.0 package, using 3.x interface which I plan on using on.
|
|
|
Goto Forum:
Current Time: Sun Aug 24 14:33:55 CEST 2025
Total time taken to generate the page: 0.04740 seconds
|