![]() One divided by a matrix with a single value one is one: 1/ What that means is that these two should be the same: /įirst, understand that Octave matrix division is not commutative, just like matrix Multiplication is not commutative. Singular, a minimum norm solution is computed. If the system is not square, or if the coefficient matrix is This is conceptually equivalent to the expressionīut it is computed without forming the inverse of y'. See the following Octave session for illustration: octave:18> pinv()Įrror: operator /: nonconformant arguments (op1 is 1x1, op2 is 1x2)Įrror: operator /: nonconformant arguments (op1 is 2x2, op2 is 2x1)Ī formal description of Octave Matrix Division from here ![]() So it's ok if y is a row vector, so long as x is compatible. The vector y needs to be compatible with x so that x * pinv(y) is well-defined. ![]() The trickiness happens when y is a column vector, in which case the inv(y) is undefined, so pinv(y), the psuedoinverse of y, is used. Conceptually the / operator is trying to return x∗y−1 (or x * inv(y) in Octave-speak), as in the following example: octave:1> eye(2)/ ![]() The gist of the idea is that x / y is defined quite generally so that it can deal with matrices. This is a answer i got from Alan Boulton at the coursera machine learning course discussion forum:
0 Comments
Leave a Reply. |