Skip to content

Commit 3d64252

Browse files
committed
feat: add default policy
1 parent 86d02e2 commit 3d64252

File tree

7 files changed

+12
-4
lines changed

7 files changed

+12
-4
lines changed

lib/node_modules/@stdlib/ndarray/output-dtype-policies/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ The output `array` contains the following data type policies:
6262
- `complex_floating_point`: return a complex-valued floating-point data type.
6363
- `real`: return a real-valued data type.
6464
- `numeric`: return a numeric data type.
65+
- `default`: return the default data type.
6566

6667
</section>
6768

lib/node_modules/@stdlib/ndarray/output-dtype-policies/docs/repl.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
valued or complex-valued).
1717
- real_floating_point: return a real-valued floating-point data type.
1818
- complex_floating_point: return a complex-valued floating-point data type.
19+
- default: return the default data type.
1920

2021
Returns
2122
-------

lib/node_modules/@stdlib/ndarray/output-dtype-policies/docs/types/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
* - `floating_point`: return a floating-point data type (i.e., either real-valued or complex-valued).
3737
* - `real_floating_point`: return a real-valued floating-point data type.
3838
* - `complex_floating_point`: return a complex-valued floating-point data type.
39+
* - `default`: return the default data type.
3940
*
4041
* @returns list of data type policies
4142
*

lib/node_modules/@stdlib/ndarray/output-dtype-policies/include/stdlib/ndarray/output_dtype_policies.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ enum STDLIB_NDARRAY_OUTPUT_DTYPE_POLICY {
4141
STDLIB_NDARRAY_OUTPUT_POLICY_COMPLEX_FLOATING_POINT,
4242
STDLIB_NDARRAY_OUTPUT_POLICY_REAL,
4343
STDLIB_NDARRAY_OUTPUT_POLICY_NUMERIC,
44+
STDLIB_NDARRAY_OUTPUT_POLICY_DEFAULT,
4445

4546
// "Compute" the number of data type policies (this works because of how `enum` works: the value is automatically set to the last enumerated type plus 1):
4647
STDLIB_NDARRAY_NPOLICIES,

lib/node_modules/@stdlib/ndarray/output-dtype-policies/lib/enum.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ function enumeration() {
4848
'real_floating_point': 7,
4949
'complex_floating_point': 8,
5050
'real': 9,
51-
'numeric': 10
51+
'numeric': 10,
52+
'default': 11
5253
};
5354
}
5455

lib/node_modules/@stdlib/ndarray/output-dtype-policies/lib/policies.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
"real_floating_point",
1010
"complex_floating_point",
1111
"real",
12-
"numeric"
12+
"numeric",
13+
"default"
1314
]

lib/node_modules/@stdlib/ndarray/output-dtype-policies/test/test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ var POLICIES = [
4040
'real_floating_point',
4141
'complex_floating_point',
4242
'real',
43-
'numeric'
43+
'numeric',
44+
'default'
4445
];
4546

4647

@@ -67,7 +68,8 @@ tape( 'the function returns a list of ndarray data type policies', function test
6768
'real_floating_point',
6869
'complex_floating_point',
6970
'real',
70-
'numeric'
71+
'numeric',
72+
'default'
7173
];
7274
actual = policies();
7375

0 commit comments

Comments
 (0)