Line | |
---|
1 | function r = ldivide(a, b) |
---|
2 | % Quaternion left elementwise division is not implemented. |
---|
3 | % This is because Matlab defines A ./ B to be the matrix with |
---|
4 | % elements A(i, j)/B(i, j) and A .\ B to be the matrix with elements |
---|
5 | % B(i, j)/A(i, j). This is not consistent with the ideas of left |
---|
6 | % and right division in a non-commutative algebra, therefore it is |
---|
7 | % not supported for quaternion arrays. The operator ./ implements |
---|
8 | % elementwise division on the right, as expected, but to obtain |
---|
9 | % elementwise division on the left use: inv(B) .* A |
---|
10 | |
---|
11 | % Copyright © 2005 Stephen J. Sangwine and Nicolas Le Bihan. |
---|
12 | % See the file : Copyright.m for further details. |
---|
13 | |
---|
14 | help quaternion/ldivide; |
---|
15 | error('Elementwise left division is not implemented for quaternions.'); |
---|
Note: See
TracBrowser
for help on using the repository browser.