Opened 16 years ago
Last modified 14 years ago
#1099 closed defect (worksforme)
Elementwise Multiplication and Addition of matrices fails
Reported by: | imke.krueger | Owned by: | imke.krueger |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | imke.krueger, |
Description
The following equations fail:
A =3* {{b1 2,b1 * b2,b1 * b3},{b1 * b2,b2 2,b2 * b3},{b1 * b3,b2* b3,b3 2}};
B={{b1 2,b1 * b2,b1 * b3},{b1 * b2,b2 2,b2 * b3},{b1 * b3,b2* b3,b3 2}}
+{{b1 2,b1 * b2,b1 * b3},{b1 * b2,b2 2,b2 * b3},{b1 * b3,b2* b3,b3 2}};
If I change it into
S = {{b1 2,b1 * b2,b1 * b3},{b1 * b2,b2 2,b2 * b3},{b1 * b3,b2* b3,b3 2}};
A=3*S;
B=S+S;
it works.
I am currently working with the nightly build for windows from March 2009.
edit: the same applies for the der()-operator.
Note:
See TracTickets
for help on using tickets.
Closing this as it seems the code runs in the current trunk. If it does not, reopen the bug and provide a complete model that does not work since equations are not always enough.