Mercurial > octave
changeset 33511:f55315e0cfcc
cross.m: Tweak comment to mention Matlab Compatibility.
* cross.m: Use phrase "Matlab Compatibility" rather than just "Compatibility"
for ease of grepping code.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 02 May 2024 14:27:32 -0700 |
parents | 35f78d896613 |
children | 7afc314f2998 |
files | scripts/linear-algebra/cross.m |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/linear-algebra/cross.m Thu May 02 14:19:41 2024 -0700 +++ b/scripts/linear-algebra/cross.m Thu May 02 14:27:32 2024 -0700 @@ -68,11 +68,11 @@ nd = ndims (x); if (nargin < 3 && nd < 3 && ndims (y) < 3) - ## COMPATIBILITY -- mixed row/column vector inputs + ## Matlab Compatibility: mixed row/column vector inputs. ## Transpose x and y in the assignments below to get row output to match - ## matlab behavior (verified version: 2023b). - ## Recommend users instead ensure calling code has matched vectors to - ## remove any ambiguity in output form. + ## Matlab behavior (verified version: 2023b). + ## Recommend instead that programmers change calling code to use matched + ## vectors to remove any ambiguity in output form. if (columns (x) == 1 && rows (y) == 1) warning ("cross: cross product of column by row produces row output"); x = x.';