[bug #48564] mrdivide and mldivide do not compatibly handle divisor ndim>2
Nicholas Jankowski <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Update of bug #48564 (group octave):
Summary: Octave does not accept "1 / ND array", "mrdivide (1,
ND array)", "mldivide (ND array, 1)" => mrdivide and mldivide do not
compatibly handle divisor ndim>2
_______________________________________________________
Follow-up Comment #18:
long story long:
for mldivide(A,B) = A\B and mrdivide(B,A)=B/A:
documented:
- if A is scalar, always do elementwise operation.
- if A is 2D, attempt to solve Ax=B or xA=B, respectively, and give a
nonconformance error if A and B are not sized correctly for that.
undocumented:
- if ndims(A)>2, always do elementwise operation
i'm not seeing any special cases for A or B = 1 or for square A or B.
it's been a decade, so don't know if matlab documentation has changed since
then. but current octave behavior appears to just be missing the (currently)
undocumented ndim>2 case.
updating report name. do we just change category to Undocumented Matlab?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?48564>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaZYoBwAKCRCqLAuaBUf3 TgO9AP9kmkh0JvCD1skPs1wRx+qdnqE7X14oynwDQmTMrIlWuAD/euBi3coMfGYv 8QYWVn+DsNFTsD5bW2ZzjXNlB9x/DQo= =IChr -----END PGP SIGNATURE-----