Skip to content

Commit 787d8da

Browse files
committed
feat: add half-precision 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: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 9a4ffa0 commit 787d8da

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/node_modules/@stdlib/ndarray/base/dtype2c/lib/table.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"binary": null,
33
"bool": "bool",
4+
"complex32": "stdlib_complex32_t",
45
"complex64": "stdlib_complex64_t",
56
"complex128": "stdlib_complex128_t",
6-
"float16": null,
7+
"float16": "stdlib_float16_t",
78
"bfloat16": null,
89
"float32": "float",
910
"float64": "double",

lib/node_modules/@stdlib/ndarray/base/dtype2c/test/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ tape( 'the function returns the C data type associated with a provided data type
4141
values = [
4242
'float64',
4343
'float32',
44+
'float16',
4445
'int8',
4546
'uint8',
4647
'uint8c',
@@ -52,6 +53,7 @@ tape( 'the function returns the C data type associated with a provided data type
5253
'uint64',
5354
'binary',
5455
'generic',
56+
'complex32',
5557
'complex64',
5658
'complex128',
5759
'bool'
@@ -60,6 +62,7 @@ tape( 'the function returns the C data type associated with a provided data type
6062
expected = [
6163
'double',
6264
'float',
65+
'stdlib_float16_t',
6366
'int8_t',
6467
'uint8_t',
6568
null,
@@ -71,6 +74,7 @@ tape( 'the function returns the C data type associated with a provided data type
7174
'uint64_t',
7275
null,
7376
null,
77+
'stdlib_complex32_t',
7478
'stdlib_complex64_t',
7579
'stdlib_complex128_t',
7680
'bool'

0 commit comments

Comments
 (0)