Quantcast
Channel: Why does MATLAB have left division/solve? - Programming Language Design and Implementation Stack Exchange
Browsing all 4 articles
Browse latest View live

Answer by Federico Poloni for Why does MATLAB have left division/solve?

Solving linear systems is better than invertingThe main reason is the one in xigoi's answer, noncommutativity, but let me add that a separate operator is handy to have for matrix operations: computing...

View Article



Answer by xigoi for Why does MATLAB have left division/solve?

Non-commutativity of multiplicationa/b calculates $a \cdot b^{-1}$, whereas b\a calculates $b^{-1} \cdot a$. Since matrix multiplication is not commutative, those are different operations.

View Article

Answer by The Thonnu for Why does MATLAB have left division/solve?

OverloadingI'm not familiar with MATLAB/Octave, but this could be used for operator overloading in custom classes (if that's supported in MATLAB/Octave).Simplifying syntaxIf you have something like x =...

View Article

Why does MATLAB have left division/solve?

In MATLAB (and Octave), the \ (or mldivide) and \. operators are provided with the exact same functionality as / (or mrdivide) and /., except their arguments are commuted.I'm looking for any background...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images