-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[RFC] Add latex representation to DenseMatrix #370
[RFC] Add latex representation to DenseMatrix #370
Conversation
Nice! I think in general these things should go into the C++ symengine, and we should just call it from the Python wrappers. That way any language will benefit and we only have to maintain this at one place. Let me know what you think. I can help you get started in the C++ codebase if you are interested. Essentially this should go here: https://github.com/symengine/symengine/blob/88cf2e2ff482f64fae6c18ae93b8a30b6adef632/symengine/printers/latex.cpp. I don't know if we can simply add a method or figure out a way to handle matrices (I think they might be separate classes), but either way, I would do this in C++. |
You need to do |
Thanks for the pointer. On my system it is not working: Can be fixed by commenting out the lines
from the |
Try this in a jupyter notebook. The |
@isuruf, since DenseMatrix is not part of the SymEngine visitor pattern, and currently does not have a latex printer, what do you think is the best design for printing latex? In |
Yes, that sounds good. |
@isuruf I updated this PR based on symengine/symengine#1847. Could you help me out with the |
@isuruf Could you have a look at the |
@isuruf The CI is failing because a python object cannot be assigned to the ctypes |
Thanks |
_repr_latex_
method to theDenseMatrix
class.Related to symengine/symengine#1701