Mercurial > octave
comparison etc/NEWS.7.md @ 31054:201e29541ef5 stable
NEWS.7.md: Clarify whitespace rules with inplace and binary operators (bug #62552).
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 02 Jun 2022 14:47:55 +0200 |
parents | 28d63e8bcaa7 |
children | 20c9d48487e3 b4a6ea55154f |
comparison
equal
deleted
inserted
replaced
31052:28d63e8bcaa7 | 31054:201e29541ef5 |
---|---|
86 between these operators and the variable they affect were allowed. That | 86 between these operators and the variable they affect were allowed. That |
87 is no longer the case. | 87 is no longer the case. |
88 | 88 |
89 - For compatibility with command syntax, inplace operators (`+=`, `-=`, | 89 - For compatibility with command syntax, inplace operators (`+=`, `-=`, |
90 `*=`, `.*=`, `/=`, `./=`, `\=`, `.\=`, `^=`, `.^=`, `|=`, `&=`) must now | 90 `*=`, `.*=`, `/=`, `./=`, `\=`, `.\=`, `^=`, `.^=`, `|=`, `&=`) must now |
91 be followed by a whitespace character. That was not a requirement in | 91 either be followed by a whitespace character or must not be preceded by a |
92 previous versions of Octave. | 92 whitespace character. For commands with binary operators (`+`, `-`, `*`, |
93 `.*`, `/`, `./`, `\`, `.\`, `^`, `.^`, `|`, `&`, `||`, `&&`) without | |
94 assignment, the same rules apply. That was not a requirement in previous | |
95 versions of Octave. | |
96 E.g., `a + b`, `a+ b`, or `a+b` are valid if `a` is a variable. In | |
97 contrast, `a +b` will throw an error if `a` is a variable. The latter | |
98 example is now interpreted as command syntax expression equivalent to the | |
99 function syntax expression `a ("+b")`. | |
93 | 100 |
94 - The `mldivide` function (i.e., the `\` operator) now uses an LU | 101 - The `mldivide` function (i.e., the `\` operator) now uses an LU |
95 decomposition to solve nearly singular full square matrices. This is | 102 decomposition to solve nearly singular full square matrices. This is |
96 Matlab-compatible and yields results which more nearly minimize `norm | 103 Matlab-compatible and yields results which more nearly minimize `norm |
97 (A*x - b)`. Previously, Octave computed a minimum-norm solution. | 104 (A*x - b)`. Previously, Octave computed a minimum-norm solution. |