symforce-org / symforce

Fast symbolic computation, code generation, and nonlinear optimization for robotics

Home Page:https://symforce.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Matrix exponential

bresch opened this issue · comments

Is your feature request related to a problem? Please describe.
Hi, I would need to discretize a symbolic matrix using a matrix exponential. In the past I used the exp function of sympy and expm of Matlab to achieve that but I didn't find the SymForce equivalent.

If I try to use exp in Symforce, I'm getting TypeError: Cannot convert symengine.lib.symengine_wrapper.MutableDenseMatrix to symengine.lib.symengine_wrapper.Basic

I've made a python example here: https://colab.research.google.com/drive/1x1BN-DUQb8F9rMvE0oCUSt8zosEnxUZj?usp=sharing

Describe the solution you'd like
An exp function for square matrices

Describe alternatives you've considered
Converting the SymForce symbolic matrix to Sympy and use the sympy implementation.