How to implement Matlab’s mldivide (a.k.a. the backslash operator “\”)

For x = A\b, the backslash operator encompasses a number of algorithms to handle different kinds of input matrices. So the matrix A is diagnosed and an execution path is selected according to its characteristics. The following page describes in pseudo-code when A is a full matrix: if size(A,1) == size(A,2) % A is square … Read more