Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/node_modules/@stdlib/array/dtypes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ Returns a list of array data types.

```javascript
var out = dtypes();
// e.g., returns [ 'float32', 'float64', ... ]
// e.g., returns [ 'float16', 'float32', ... ]
```

When not provided a data type "kind", the function returns an array containing the following data types:

- `float16`: half-precision floating-point numbers.
- `float32`: single-precision floating-point numbers.
- `float64`: double-precision floating-point numbers.
- `complex64`: single-precision complex floating-point numbers.
Expand Down
1 change: 1 addition & 0 deletions lib/node_modules/@stdlib/array/dtypes/docs/repl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
When not provided a data type "kind", the function returns an array
containing the following data types:

- float16: half-precision floating-point numbers.
- float32: single-precision floating-point numbers.
- float64: double-precision floating-point numbers.
- complex64: single-precision complex floating-point numbers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { DataType, DataTypeKind } from '@stdlib/types/array';
*
* @example
* var list = dtypes();
* // e.g., returns [ 'float32', 'float64', ... ]
* // e.g., returns [ 'float16', 'float32', ... ]
*
* @example
* var list = dtypes( 'floating_point' );
Expand Down
6 changes: 6 additions & 0 deletions lib/node_modules/@stdlib/array/dtypes/lib/dtypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"bool",
"complex64",
"complex128",
"float16",
"float32",
"float64",
"generic",
Expand All @@ -18,6 +19,7 @@
"bool",
"complex64",
"complex128",
"float16",
"float32",
"float64",
"int16",
Expand All @@ -31,10 +33,12 @@
"floating_point": [
"complex64",
"complex128",
"float16",
"float32",
"float64"
],
"real_floating_point": [
"float16",
"float32",
"float64"
],
Expand Down Expand Up @@ -66,6 +70,7 @@
"uint8c"
],
"real": [
"float16",
"float32",
"float64",
"int16",
Expand All @@ -79,6 +84,7 @@
"numeric": [
"complex64",
"complex128",
"float16",
"float32",
"float64",
"int16",
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/dtypes/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* var dtypes = require( '@stdlib/array/dtypes' );
*
* var list = dtypes();
* // e.g., returns [ 'float32', 'float64', 'generic', 'int16', 'int32', 'int8', 'uint16', 'uint32', 'uint8', 'uint8c', 'complex128', 'complex64', 'bool' ]
* // e.g., returns [ 'float16', 'float32', 'generic', 'int16', 'int32', 'int8', 'uint16', 'uint32', 'uint8', 'uint8c', 'complex128', 'complex64', 'bool' ]
*/

// MODULES //
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/dtypes/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var RE_SUFFIX = /_and_generic$/;
*
* @example
* var list = dtypes();
* // e.g., returns [ 'float32', 'float64', ... ]
* // e.g., returns [ 'float16', 'float32', ... ]
*
* @example
* var list = dtypes( 'floating_point' );
Expand Down
13 changes: 13 additions & 0 deletions lib/node_modules/@stdlib/array/dtypes/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ tape( 'the function returns a list of array data types', function test( t ) {
'bool',
'complex64',
'complex128',
'float16',
'float32',
'float64',
'generic',
Expand All @@ -65,6 +66,7 @@ tape( 'the function supports returning a list of array data types (all)', functi
'bool',
'complex64',
'complex128',
'float16',
'float32',
'float64',
'generic',
Expand All @@ -90,6 +92,7 @@ tape( 'the function supports returning a list of array data types (all, includin
'bool',
'complex64',
'complex128',
'float16',
'float32',
'float64',
'generic',
Expand All @@ -115,6 +118,7 @@ tape( 'the function supports returning a list of array data types (typed)', func
'bool',
'complex64',
'complex128',
'float16',
'float32',
'float64',
'int16',
Expand All @@ -139,6 +143,7 @@ tape( 'the function supports returning a list of array data types (typed, includ
'bool',
'complex64',
'complex128',
'float16',
'float32',
'float64',
'int16',
Expand All @@ -163,6 +168,7 @@ tape( 'the function supports returning a list of floating-point array data types
expected = [
'complex64',
'complex128',
'float16',
'float32',
'float64'
];
Expand All @@ -179,6 +185,7 @@ tape( 'the function supports returning a list of floating-point array data types
expected = [
'complex64',
'complex128',
'float16',
'float32',
'float64',
'generic'
Expand All @@ -194,6 +201,7 @@ tape( 'the function supports returning a list of real-valued floating-point arra
var actual;

expected = [
'float16',
'float32',
'float64'
];
Expand All @@ -208,6 +216,7 @@ tape( 'the function supports returning a list of real-valued floating-point arra
var actual;

expected = [
'float16',
'float32',
'float64',
'generic'
Expand Down Expand Up @@ -382,6 +391,7 @@ tape( 'the function supports returning a list of real-valued array data types',
var actual;

expected = [
'float16',
'float32',
'float64',
'int16',
Expand All @@ -403,6 +413,7 @@ tape( 'the function supports returning a list of real-valued array data types (i
var actual;

expected = [
'float16',
'float32',
'float64',
'int16',
Expand All @@ -427,6 +438,7 @@ tape( 'the function supports returning a list of numeric array data types', func
expected = [
'complex64',
'complex128',
'float16',
'float32',
'float64',
'int16',
Expand All @@ -450,6 +462,7 @@ tape( 'the function supports returning a list of numeric array data types (inclu
expected = [
'complex64',
'complex128',
'float16',
'float32',
'float64',
'int16',
Expand Down
Loading