Mercurial > jwe > octave
diff NEWS @ 26234:c36b6e371f5d
isdefinite.m: Return only true or false, not -1, 0, +1 (bug #51270).
* NEWS: Announce change
* isdefinite.m: Rewrite documentation. Add input validation for TOL.
Remove code to check for semi-definite matrix (return value of 0 previously).
Update BIST tests and add new ones.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 13 Dec 2018 17:04:01 -0800 |
parents | f125a6ed45be |
children | 58b3107a00bc |
line wrap: on
line diff
--- a/NEWS Thu Dec 13 15:01:29 2018 -0800 +++ b/NEWS Thu Dec 13 17:04:01 2018 -0800 @@ -12,6 +12,13 @@ or "skew" to calculate the symmetric or skew-symmetric property of a matrix. Performance has also been increased. + ** The function isdefinite now returns true or false rather than + -1, 0, 1. To test for a positive semi-definite matrix (old output + of 0) check whether the following two conditions hold: + + isdefinite (A) => 0 + isdefinite (A + 5*TOL, TOL) => 1 + ** The issorted function now uses a direction option of "ascend" or "descend" to make it compatible with both the sort function and with Matlab. Change all uses of "ascending" and "descending" in