|
3 | 3 | Fills a double-precision floating-point strided array with linearly spaced |
4 | 4 | values over a specified interval. |
5 | 5 |
|
| 6 | + If `N = 1` and `endpoint` is `true`, the set of values written to an input |
| 7 | + array only includes `stop`, but not `start`; otherwise, when `N = 1` and |
| 8 | + `endpoint` is `false`, the set of values written to an input array only |
| 9 | + includes `start`, but not `stop`. |
| 10 | + |
| 11 | + If `start` is less than `stop`, the set of values written to an input array |
| 12 | + will be written in ascending order, and, if `start` is greater than |
| 13 | + `stop`, the set of written values will be in descending order. |
| 14 | + |
| 15 | + When `N >= 2` and `endpoint` is `true`, the set of values written to an |
| 16 | + input array is guaranteed to include the `start` and `stop` values. Beware, |
| 17 | + however, that values between `start` and `stop` are subject to floating- |
| 18 | + point rounding errors. |
| 19 | + |
6 | 20 | The `N` and stride parameters determine which elements in the strided array |
7 | 21 | are accessed at runtime. |
8 | 22 |
|
|
24 | 38 |
|
25 | 39 | endpoint: boolean |
26 | 40 | Boolean indicating whether to include the `stop` value when writing |
27 | | - values to the input array. |
| 41 | + values to the input array. If `false`, the function generates `N+1` |
| 42 | + linearly spaced values over the interval `[start, stop]` and only writes |
| 43 | + `N` values to the input array, thus excluding `stop` from the input |
| 44 | + array. Accordingly, for a fixed `N`, the spacing between adjacent values |
| 45 | + written to an input array changes depending on the value of `endpoint`. |
28 | 46 |
|
29 | 47 | x: Float64Array |
30 | 48 | Input array. |
|
79 | 97 |
|
80 | 98 | endpoint: boolean |
81 | 99 | Boolean indicating whether to include the `stop` value when writing |
82 | | - values to the input array. |
| 100 | + values to the input array. If `false`, the function generates `N+1` |
| 101 | + linearly spaced values over the interval `[start, stop]` and only writes |
| 102 | + `N` values to the input array, thus excluding `stop` from the input |
| 103 | + array. Accordingly, for a fixed `N`, the spacing between adjacent values |
| 104 | + written to an input array changes depending on the value of `endpoint`. |
83 | 105 |
|
84 | 106 | x: Float64Array |
85 | 107 | Input array. |
|
0 commit comments