@@ -6,7 +6,7 @@ const dependencies = ['typed', 'config', '?matrix', '?bignumber', 'smaller', 'sm
6
6
7
7
export const createRange = /* #__PURE__ */ factory ( name , dependencies , ( { typed, config, matrix, bignumber, smaller, smallerEq, larger, largerEq, add, isPositive } ) => {
8
8
/**
9
- * Create an array from a range.
9
+ * Create a matrix or array containing a range of values .
10
10
* By default, the range end is excluded. This can be customized by providing
11
11
* an extra parameter `includeEnd`.
12
12
*
@@ -34,10 +34,12 @@ export const createRange = /* #__PURE__ */ factory(name, dependencies, ({ typed,
34
34
* - `includeEnd: boolean`
35
35
* Option to specify whether to include the end or not. False by default.
36
36
*
37
- * Note that the return type of the range is taken from the type of
38
- * the start/end. If only one these is a built-in `number` type, it will
39
- * be promoted to the type of the other endpoint. However, in the case of
40
- * Unit values, both endpoints must have compatible units, and the return
37
+ * The function returns a `DenseMatrix` when the library is configured with
38
+ * `config = { matrix: 'Matrix' }, and returns an Array otherwise.
39
+ * Note that the type of the returned values is taken from the type of the
40
+ * provided start/end value. If only one of these is a built-in `number` type,
41
+ * it will be promoted to the type of the other endpoint. However, in the case
42
+ * of Unit values, both endpoints must have compatible units, and the return
41
43
* value will have compatible units as well.
42
44
*
43
45
* Examples:
0 commit comments