Skip to content

Commit e842143

Browse files
committed
refactor: rename indexing to index and add defaults for specialized index data types
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 2b5e9f1 commit e842143

File tree

6 files changed

+55
-10
lines changed

6 files changed

+55
-10
lines changed

lib/node_modules/@stdlib/ndarray/defaults/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +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-
- **indexing**: default indexing 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.
6770

6871
- **order**: default memory layout.
6972

lib/node_modules/@stdlib/ndarray/defaults/docs/repl.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,17 @@
4040
out.dtypes.boolean: string
4141
Default boolean data type.
4242

43-
out.dtypes.indexing: string
44-
Default indexing data type.
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.
4554

4655
out.order: string
4756
Default memory layout.

lib/node_modules/@stdlib/ndarray/defaults/docs/types/index.d.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,24 @@ interface DataTypes {
7373
boolean: 'bool';
7474

7575
/**
76-
* Default indexing data type.
76+
* Default index data type.
7777
*/
78-
indexing: 'int32';
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';
7994
}
8095

8196
/**

lib/node_modules/@stdlib/ndarray/defaults/lib/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ function defaults() {
4343
'signed_integer': 'int32',
4444
'unsigned_integer': 'uint32',
4545
'boolean': 'bool',
46-
'indexing': 'int32'
46+
'index': 'int32',
47+
'integer_index': 'int32',
48+
'boolean_index': 'bool',
49+
'mask_index': 'uint8'
4750
},
4851

4952
// Memory layout:

lib/node_modules/@stdlib/ndarray/defaults/test/test.get.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +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.indexing',
58+
'dtypes.index',
59+
'dtypes.integer_index',
60+
'dtypes.boolean_index',
61+
'dtypes.mask_index',
5962

6063
'casting',
6164
'order',
@@ -72,7 +75,10 @@ tape( 'if provided a recognized setting, the function returns a default value',
7275
DEFAULTS.dtypes.signed_integer,
7376
DEFAULTS.dtypes.unsigned_integer,
7477
DEFAULTS.dtypes.boolean,
75-
DEFAULTS.dtypes.indexing,
78+
DEFAULTS.dtypes.index,
79+
DEFAULTS.dtypes.integer_index,
80+
DEFAULTS.dtypes.boolean_index,
81+
DEFAULTS.dtypes.mask_index,
7682

7783
DEFAULTS.casting,
7884
DEFAULTS.order,

lib/node_modules/@stdlib/ndarray/defaults/test/test.main.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,17 @@ 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, 'indexing' ), true, 'has property' );
73-
t.strictEqual( typeof o.dtypes.indexing, 'string', 'returns expected value' );
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' );
7483

7584
t.strictEqual( hasOwnProp( o, 'order' ), true, 'has property' );
7685
t.strictEqual( typeof o.order, 'string', 'returns expected value' );

0 commit comments

Comments
 (0)