Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


Clara
Posts:
1
Registered:
11/11/13


Matrix operations associativity?
Posted:
Nov 11, 2013 4:22 PM


Hello,
I am currently banging my head on the following problem: I want to split a matrix A in two components A+ and A.
I define A as A = A  A+ and obtain the following disturbing result:
Aminus = AAplus; nnz(AplusA+Aminus) ans = 0
nnz(AminusA+Aplus) ans = 1257
Thinking that it may arise from some parenthesation issue, I tried the following.
nnz((AminusA)+Aplus) ans = 1257
nnz((Aminus(AAplus))) ans = 0
Could someone please explain me what's going on?
Thanks a lot!



