-
Notifications
You must be signed in to change notification settings - Fork 49
Eigen support #14
Comments
@bonanza123 Can you describe what exactly is the coding issue? |
I used the following example and noted that the line with STL vector compiles fine while the line with the Eigen vector gives me errors
Here are the errors from this MATLAB command:
I assumed that particular Eigen support in mexplus is missing e.g. because of the line |
@bonanza123 You have to define how to convert the data structure between Matlab and Eigen library. See |
Sorry, but I don't understand. Isn't that exactly the missing (not implemented) Eigen support? |
@bonanza123 Mexplus only is a helper library. You have to develop by yourself the actual implementation of whatever the conversion logic, except for a few C++ standard containers such as |
Hi! I've implemented Thank you very much and thank you also for making mexplus available on GitHub, it's really awesome! |
@patrikhuber Yes, that implementation looks correct. Data should be always copied unless it's read-only in both C++/Matlab side. I'm not familiar with Eigen library, but the |
@kyamagu Thank you very much for having a look! Thanks - I'll think about your proposed optimisation, I need to see whether/how that's possible with Eigen. But in any case I don't have a performance issue right now. In |
@patrikhuber I remember Mathworks doesn't recommend in-place operation to My typical design pattern is either 1) completely converting the data with copy, or 2) create a wrapper class in Matlab so that memory always sits in C++ side. |
@kyamagu Thank you very much! Your advice is very helpful and highly appreciated. Thank you for taking the time to reply. Cheers, |
If I'm not wrong, your awesome library doesn't support Eigen. Is there any change that this will be added?
The text was updated successfully, but these errors were encountered: