Hello,

I  am a phd student and I am actually finishing my thesis. I published a 
sympy code in my appendix, 
because symbolic computing is the way to go for this particular problem.

My concern is about the hadamard product, or the so called 
"elementwise_multplication".

Right now, this is implemented into sympy, by using a 
".elementwise_multiplication()" method 
to a matrix object.

I find this particularly huge to write into my code, and it is actually 
cluttering the readability when
several "elementwise_multiplication()" are stacked in a single operation.

In Matlab/Octave, the element wise multiplication is performed using the 
".*" operator if I recall correctly.
Matrix multiplication is the standard way to go with the usual "*" 
operator, again if I recall correctly matlab
philosophy.

What I would simply ask, is if it wouldn't be possible to overload an 
operator such as "%" or ".*" to 
implement matrix elementwise multiplication in sympy. It would greatly 
improve the readability of my
code.

So, basically, the question is twice here : I would gratefully acknowledge 
a tip or a quick hack to 
improve the readability of my code by replacing the 
"elementwise_multiplication" with some 
shortcut. I don't mind if the solution is a little hackish.

About the second question, it is about the point if defining a single 
operator such as ".*" in matlab
could be done in sympy, in the future, on the scale of the whole project. I 
believe this would be a 
great enhancement of the package. I think that simply switching context 
from numpy/scipy and
sympy could do such a thing, because numpy.array() default multiplication 
is elementwise.

Thank you for your kind advice.

David

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to