>
> I've guessed that reading the code. Would it be hard for me to
> implement the missing MatPow function ?
>

It should be easy to implement such a class. I would suggest the name
MatExponential. We already have a MatPow for the case A**b (A a matrix, b a
scalar). I would suggest looking at MatPow and MatMul as examples. You'll
also have to change the __rpow__ operator in MatExpr (look at the
surrounding functions to see what to do). This should allow for the syntax
e**A but not exp(A).


>
> > <http://code.google.com/p/sympy/issues/detail?id=3119>For your immediate
> > problem it's possible you could find a solution. You've gotten
> surprisingly
> > far already. Whenever you multiply by I you're forcing sympy to turn the
> > expression back into a matrix.
> Would it be possible to create a specific exp function, that inherits
> from ExpBase, or Exp, and that would return expr that have
> MatrixSymbol type ?
>

You could make some other exp function like "mexp" or you could add a
couple of lines in the exp function to check for matrix inputs. In general
it is best to avoid changing core to help matrix expressions. I personally
prefer the e**A method.

Following your coding guidelines, I've created a github repository :
> [email protected]:kayhman/sympy.git.
>

Excellent. The SymPy community uses git almost exclusively. This makes it
much easier for us to see, experiment with, and comment on your code.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to