Mercurial > octave
comparison NEWS @ 30241:ba4aebad10d1
Return logical status variable from file functions for Matlab compatibility.
* NEWS: Announce change.
* dirfns.cc (Frmdir): Update documentation. Change return status to true/false
rather than 1.0/0.0.
* copyfile.m: Update documentation. Change internal variable "sts" to logical
variable. Change any assignments to status to true/false.
* movefile.m: Update documentation. Change internal variable "sts" to logical
variable. Change any assignments to status to true/false.
* mkdir.m: Update documentation.
* mkdir.m (mkdir_recur): Change internal variable "status" to logical.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 13 Oct 2021 10:36:20 -0700 |
parents | a0bcfaf04cc1 |
children | 20fd3c03fd74 |
comparison
equal
deleted
inserted
replaced
30240:a0bcfaf04cc1 | 30241:ba4aebad10d1 |
---|---|
74 of the desired size such as `[0x1u32; 0x100; 0x10000]`, or 2) pad | 74 of the desired size such as `[0x1u32; 0x100; 0x10000]`, or 2) pad |
75 constants in array expressions with leading zeros so that they use the | 75 constants in array expressions with leading zeros so that they use the |
76 same number of digits for each value such as | 76 same number of digits for each value such as |
77 `[0x00_00_01; 0x00_01_00; 0x01_00_00]`. | 77 `[0x00_00_01; 0x00_01_00; 0x01_00_00]`. |
78 | 78 |
79 - The `factor` function has been overhauled for speed. For large | |
80 composite numbers > 1e14, it can be up to 10,000 times faster. | |
81 | |
82 - The `mldivide` function (i.e., the `\` operator) now uses an LU | 79 - The `mldivide` function (i.e., the `\` operator) now uses an LU |
83 decomposition to solve nearly singular full square matrices. This is | 80 decomposition to solve nearly singular full square matrices. This is |
84 Matlab-compatible and yields results which more nearly minimize `norm | 81 Matlab-compatible and yields results which more nearly minimize `norm |
85 (A*x - b)`. Previously, Octave computed a minimum-norm solution. | 82 (A*x - b)`. Previously, Octave computed a minimum-norm solution. |
83 | |
84 - The `factor` function has been overhauled for speed. For large | |
85 composite numbers > 1e14, it can be up to 10,000 times faster. | |
86 | 86 |
87 - The `betainc` function now calculates an exact output for the | 87 - The `betainc` function now calculates an exact output for the |
88 important special cases where a or b are 1. | 88 important special cases where a or b are 1. |
89 | 89 |
90 - The `whos` function now displays an additional attribute 's' when | 90 - The `whos` function now displays an additional attribute 's' when |
206 dimensions greater than `ndims (x)`. The function compatibly handles | 206 dimensions greater than `ndims (x)`. The function compatibly handles |
207 `Inf` and `NaN` input values. | 207 `Inf` and `NaN` input values. |
208 | 208 |
209 - The function `importdata` now produces more compatible results when | 209 - The function `importdata` now produces more compatible results when |
210 the file contains a 2-D text matrix. | 210 the file contains a 2-D text matrix. |
211 | |
212 - The file functions `copyfile`, `mkdir`, `movefile`, `rmdir` now return | |
213 a logical value (true/false) rather than a numeric value (1/0). | |
211 | 214 |
212 - `uimenu` now accepts property `"Text"` which is identical to | 215 - `uimenu` now accepts property `"Text"` which is identical to |
213 `"Label"`. Matlab recommends using `"Text"` in new code, although there | 216 `"Label"`. Matlab recommends using `"Text"` in new code, although there |
214 is no announced date for deprecating `"Label"`. | 217 is no announced date for deprecating `"Label"`. |
215 | 218 |