Skip to content

Commit 2eebdaa

Browse files
committed
Auto-generated commit
1 parent aecf2c1 commit 2eebdaa

File tree

20 files changed

+352
-24
lines changed

20 files changed

+352
-24
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
### Features
1212

13+
- [`06667ad`](https://github.com/stdlib-js/stdlib/commit/06667ad3af114bad67b73ec1e78352044612186e) - add accumulation and index data type policies
14+
- [`83b4397`](https://github.com/stdlib-js/stdlib/commit/83b4397ead81f62400301a333ada0882da688ee8) - add default `indexing` data type
15+
- [`a76c12c`](https://github.com/stdlib-js/stdlib/commit/a76c12c36a3ec2c34ca6d9798f7e72e42f6d0597) - add `indexing` data type kind
1316
- [`db7d60b`](https://github.com/stdlib-js/stdlib/commit/db7d60b388d19ab8a4b537ec3445f3181ef270b7) - add `ndarray/base/unary-strided1d-dispatch-factory`
1417
- [`3036ccc`](https://github.com/stdlib-js/stdlib/commit/3036cccd1db41f0093555d2b7c890bdbd6f07cdf) - add `ndarray/base/unary-strided1d-dispatch`
1518
- [`9c1e5c9`](https://github.com/stdlib-js/stdlib/commit/9c1e5c9b5b87643d31668a7a0b9c009413fa4c05) - add `ndarray/base/unary-reduce-strided1d-dispatch-factory`
@@ -185,6 +188,7 @@
185188

186189
### Bug Fixes
187190

191+
- [`ebe55b2`](https://github.com/stdlib-js/stdlib/commit/ebe55b2015d81d3b0f7288dc87451a2f0d362d47) - update hash table
188192
- [`b43db40`](https://github.com/stdlib-js/stdlib/commit/b43db40273306f34ee9cde05d82c7fb9207aeb2b) - ensure correct ndarray argument order where output ndarray should be second ndarray argument
189193
- [`ac10964`](https://github.com/stdlib-js/stdlib/commit/ac109649d1cfad63800282f0d509aff419bfeb33) - ensure correct table validation
190194
- [`0216d98`](https://github.com/stdlib-js/stdlib/commit/0216d98429db599b577ac3b5dd89bc6b72902e1c) - verify that input and output ndarrays have same number of dimensions
@@ -266,6 +270,12 @@ A total of 13 issues were closed in this release:
266270

267271
<details>
268272

273+
- [`06667ad`](https://github.com/stdlib-js/stdlib/commit/06667ad3af114bad67b73ec1e78352044612186e) - **feat:** add accumulation and index data type policies _(by Athan Reines)_
274+
- [`ebe55b2`](https://github.com/stdlib-js/stdlib/commit/ebe55b2015d81d3b0f7288dc87451a2f0d362d47) - **fix:** update hash table _(by Athan Reines)_
275+
- [`e842143`](https://github.com/stdlib-js/stdlib/commit/e8421431fa8e811d57761310af0460c6f0ea37b5) - **refactor:** rename `indexing` to `index` and add defaults for specialized index data types _(by Athan Reines)_
276+
- [`2b5e9f1`](https://github.com/stdlib-js/stdlib/commit/2b5e9f129eb801afffded4df13b73dc4a5ae4963) - **refactor:** rename `indexing` to `index` and add specialized index data type kinds _(by Athan Reines)_
277+
- [`83b4397`](https://github.com/stdlib-js/stdlib/commit/83b4397ead81f62400301a333ada0882da688ee8) - **feat:** add default `indexing` data type _(by Athan Reines)_
278+
- [`a76c12c`](https://github.com/stdlib-js/stdlib/commit/a76c12c36a3ec2c34ca6d9798f7e72e42f6d0597) - **feat:** add `indexing` data type kind _(by Athan Reines)_
269279
- [`998cea3`](https://github.com/stdlib-js/stdlib/commit/998cea3de3266730ae7e35905faf5570df1a4b29) - **docs:** fix equality check _(by Athan Reines)_
270280
- [`5426105`](https://github.com/stdlib-js/stdlib/commit/5426105c564949702197dd622aab2e81cae79283) - **docs:** use C equality operator _(by Philipp Burckhardt)_
271281
- [`5fb7055`](https://github.com/stdlib-js/stdlib/commit/5fb70551ba3e223bbb24ca2166b81dbc4545786a) - **docs:** fix copy _(by Athan Reines)_

defaults/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ The returned object has the following properties:
6363
- **signed_integer**: default signed integer data type.
6464
- **unsigned_integer**: default unsigned integer data type.
6565
- **boolean**: default boolean data type.
66+
- **index**: default index data type.
67+
- **integer_index**: default integer index data type.
68+
- **boolean_index**: default boolean index data type.
69+
- **mask_index**: default mask index data type.
6670

6771
- **order**: default memory layout.
6872

defaults/docs/repl.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@
4040
out.dtypes.boolean: string
4141
Default boolean data type.
4242

43+
out.dtypes.index: string
44+
Default index data type.
45+
46+
out.dtypes.integer_index: string
47+
Default integer index data type.
48+
49+
out.dtypes.boolean_index: string
50+
Default boolean index data type.
51+
52+
out.dtypes.mask_index: string
53+
Default mask index data type.
54+
4355
out.order: string
4456
Default memory layout.
4557

defaults/docs/types/index.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,26 @@ interface DataTypes {
7171
* Default boolean value data type.
7272
*/
7373
boolean: 'bool';
74+
75+
/**
76+
* Default index data type.
77+
*/
78+
index: 'int32';
79+
80+
/**
81+
* Default integer index data type.
82+
*/
83+
integer_index: 'int32';
84+
85+
/**
86+
* Default boolean index data type.
87+
*/
88+
boolean_index: 'bool';
89+
90+
/**
91+
* Default mask index data type.
92+
*/
93+
mask_index: 'uint8';
7494
}
7595

7696
/**

defaults/lib/get.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ var HASH = {
3737
'dtypes.signed_integer': DEFAULTS.dtypes.signed_integer,
3838
'dtypes.unsigned_integer': DEFAULTS.dtypes.unsigned_integer,
3939
'dtypes.boolean': DEFAULTS.dtypes.boolean,
40+
'dtypes.index': DEFAULTS.dtypes.index,
41+
'dtypes.integer_index': DEFAULTS.dtypes.integer_index,
42+
'dtypes.boolean_index': DEFAULTS.dtypes.boolean_index,
43+
'dtypes.mask_index': DEFAULTS.dtypes.mask_index,
4044
'order': DEFAULTS.order,
4145
'casting': DEFAULTS.casting,
4246
'index_mode': DEFAULTS.index_mode

defaults/lib/main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ function defaults() {
4242
'integer': 'int32',
4343
'signed_integer': 'int32',
4444
'unsigned_integer': 'uint32',
45-
'boolean': 'bool'
45+
'boolean': 'bool',
46+
'index': 'int32',
47+
'integer_index': 'int32',
48+
'boolean_index': 'bool',
49+
'mask_index': 'uint8'
4650
},
4751

4852
// Memory layout:

defaults/test/test.get.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ tape( 'if provided a recognized setting, the function returns a default value',
5555
'dtypes.signed_integer',
5656
'dtypes.unsigned_integer',
5757
'dtypes.boolean',
58+
'dtypes.index',
59+
'dtypes.integer_index',
60+
'dtypes.boolean_index',
61+
'dtypes.mask_index',
5862

5963
'casting',
6064
'order',
@@ -71,6 +75,10 @@ tape( 'if provided a recognized setting, the function returns a default value',
7175
DEFAULTS.dtypes.signed_integer,
7276
DEFAULTS.dtypes.unsigned_integer,
7377
DEFAULTS.dtypes.boolean,
78+
DEFAULTS.dtypes.index,
79+
DEFAULTS.dtypes.integer_index,
80+
DEFAULTS.dtypes.boolean_index,
81+
DEFAULTS.dtypes.mask_index,
7482

7583
DEFAULTS.casting,
7684
DEFAULTS.order,

defaults/test/test.main.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ tape( 'the function returns default ndarray settings', function test( t ) {
6969
t.strictEqual( hasOwnProp( o.dtypes, 'boolean' ), true, 'has property' );
7070
t.strictEqual( typeof o.dtypes.boolean, 'string', 'returns expected value' );
7171

72+
t.strictEqual( hasOwnProp( o.dtypes, 'index' ), true, 'has property' );
73+
t.strictEqual( typeof o.dtypes.index, 'string', 'returns expected value' );
74+
75+
t.strictEqual( hasOwnProp( o.dtypes, 'integer_index' ), true, 'has property' );
76+
t.strictEqual( typeof o.dtypes.integer_index, 'string', 'returns expected value' );
77+
78+
t.strictEqual( hasOwnProp( o.dtypes, 'boolean_index' ), true, 'has property' );
79+
t.strictEqual( typeof o.dtypes.boolean_index, 'string', 'returns expected value' );
80+
81+
t.strictEqual( hasOwnProp( o.dtypes, 'mask_index' ), true, 'has property' );
82+
t.strictEqual( typeof o.dtypes.mask_index, 'string', 'returns expected value' );
83+
7284
t.strictEqual( hasOwnProp( o, 'order' ), true, 'has property' );
7385
t.strictEqual( typeof o.order, 'string', 'returns expected value' );
7486

dtypes/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ The function supports the following data type kinds:
8585
- `real`: real-valued data types.
8686
- `numeric`: numeric data types.
8787
- `typed`: typed data types.
88+
- `integer_index`: integer index data types.
89+
- `boolean_index`: boolean index data types.
90+
- `mask_index`: mask index data types.
91+
- `typed_index`: typed index data types.
92+
- `index`: index data types.
8893
- `all`: all data types.
8994

9095
Additionally, the function supports extending the "kinds" listed above by appending an `_and_generic` suffix to the kind name (e.g., `real_and_generic`).

dtypes/docs/repl.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
- real: real-valued data types.
3333
- numeric: numeric data types.
3434
- typed: typed data types.
35+
- integer_index: integer index data types.
36+
- boolean_index: boolean index data types.
37+
- mask_index: mask index data types.
38+
- typed_index: typed index data types.
39+
- index: index data types.
3540
- all: all data types.
3641

3742
Additionally, the function supports extending the "kinds" listed above by

0 commit comments

Comments
 (0)