Home » Community » Newbie corner » Eigen and UPP? (STL question?)
Re: Eigen and UPP? (STL question?) [message #32388 is a reply to message #32387] |
Sun, 15 May 2011 11:59   |
|
GaroRobe wrote on Sun, 15 May 2011 08:15 | Okay, here comes the hell.
I expect using some math-related datastructures tightly bound with the need to print them out eventually ( ) thus I'll clearly need either a very generic implicit convertor like yours or a numerous (insane amount actually) of them.
| 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).
GaroRobe wrote on Sun, 15 May 2011 08:15 | But my question this time is "CAN'T I EASILY EXPLORE OUTSIDE CODE IN THEIDE?"
When I include Eigen headers in my scope I expect to jump to prototypes with Alt+J or get inline helper with Ctrl+Space, but for Eigen routines it just doesn't work.
Can I make it work somehow? It's very difficult otherwise.
|
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.
By the way, what version of Eigen are you using? I noticed some (rather important) differences between versions 2.x and 3.x...
Honza
|
|
|
Goto Forum:
Current Time: Sun Aug 24 14:37:04 CEST 2025
Total time taken to generate the page: 0.07161 seconds
|