@stdlib/ndarray-base-dtype2c 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -1
- package/README.md +5 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/lib/table.json +24 -23
- package/package.json +2 -3
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2026 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -172,7 +172,7 @@ See [LICENSE][stdlib-license].
|
|
|
172
172
|
|
|
173
173
|
## Copyright
|
|
174
174
|
|
|
175
|
-
Copyright © 2016-
|
|
175
|
+
Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
|
|
176
176
|
|
|
177
177
|
</section>
|
|
178
178
|
|
|
@@ -185,8 +185,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
185
185
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-dtype2c.svg
|
|
186
186
|
[npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-dtype2c
|
|
187
187
|
|
|
188
|
-
[test-image]: https://github.com/stdlib-js/ndarray-base-dtype2c/actions/workflows/test.yml/badge.svg?branch=v0.
|
|
189
|
-
[test-url]: https://github.com/stdlib-js/ndarray-base-dtype2c/actions/workflows/test.yml?query=branch:v0.
|
|
188
|
+
[test-image]: https://github.com/stdlib-js/ndarray-base-dtype2c/actions/workflows/test.yml/badge.svg?branch=v0.3.0
|
|
189
|
+
[test-url]: https://github.com/stdlib-js/ndarray-base-dtype2c/actions/workflows/test.yml?query=branch:v0.3.0
|
|
190
190
|
|
|
191
191
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-dtype2c/main.svg
|
|
192
192
|
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-dtype2c?branch=main
|
|
@@ -198,8 +198,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
198
198
|
|
|
199
199
|
-->
|
|
200
200
|
|
|
201
|
-
[chat-image]: https://img.shields.io/
|
|
202
|
-
[chat-url]: https://
|
|
201
|
+
[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
|
|
202
|
+
[chat-url]: https://stdlib.zulipchat.com
|
|
203
203
|
|
|
204
204
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
205
205
|
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var n=function(l,t){return function(){return t||l((t={exports:{}}).exports,t),t.exports}};var i=n(function(p,o){o.exports={binary:null,bool:"bool",complex64:"stdlib_complex64_t",complex128:"stdlib_complex128_t",float16:
|
|
1
|
+
"use strict";var n=function(l,t){return function(){return t||l((t={exports:{}}).exports,t),t.exports}};var i=n(function(p,o){o.exports={binary:null,bool:"bool",complex32:"stdlib_complex32_t",complex64:"stdlib_complex64_t",complex128:"stdlib_complex128_t",float16:"stdlib_float16_t",bfloat16:null,float32:"float",float64:"double",float128:null,generic:null,int8:"int8_t",int16:"int16_t",int32:"int32_t",int64:"int64_t",int128:null,int256:null,uint8:"uint8_t",uint8c:null,uint16:"uint16_t",uint32:"uint32_t",uint64:"uint64_t",uint128:null,uint256:null}});var e=n(function(b,u){
|
|
2
2
|
var r=require('@stdlib/ndarray-base-dtype-resolve-str/dist'),_=i();function c(l){return _[r(l)]||null}u.exports=c
|
|
3
3
|
});var a=e();module.exports=a;
|
|
4
4
|
/** @license Apache-2.0 */
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../lib/table.json", "../lib/main.js", "../lib/index.js"],
|
|
4
|
-
"sourcesContent": ["{\n\
|
|
5
|
-
"mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,CAAAA,EAAA,
|
|
4
|
+
"sourcesContent": ["{\n \"binary\": null,\n \"bool\": \"bool\",\n \"complex32\": \"stdlib_complex32_t\",\n \"complex64\": \"stdlib_complex64_t\",\n \"complex128\": \"stdlib_complex128_t\",\n \"float16\": \"stdlib_float16_t\",\n \"bfloat16\": null,\n \"float32\": \"float\",\n \"float64\": \"double\",\n \"float128\": null,\n \"generic\": null,\n \"int8\": \"int8_t\",\n \"int16\": \"int16_t\",\n \"int32\": \"int32_t\",\n \"int64\": \"int64_t\",\n \"int128\": null,\n \"int256\": null,\n \"uint8\": \"uint8_t\",\n \"uint8c\": null,\n \"uint16\": \"uint16_t\",\n \"uint32\": \"uint32_t\",\n \"uint64\": \"uint64_t\",\n \"uint128\": null,\n \"uint256\": null\n}\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2021 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar resolve = require( '@stdlib/ndarray-base-dtype-resolve-str' );\nvar TABLE = require( './table.json' );\n\n\n// MAIN //\n\n/**\n* Returns the C data type associated with a provided data type string.\n*\n* @param {*} dtype - data type value\n* @returns {(string|null)} C data type\n*\n* @example\n* var out = dtype2c( 'float64' );\n* // returns 'double'\n*\n* out = dtype2c( 'generic' );\n* // returns null\n*/\nfunction dtype2c( dtype ) {\n\treturn TABLE[ resolve( dtype ) ] || null;\n}\n\n\n// EXPORTS //\n\nmodule.exports = dtype2c;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2021 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Return the C data type associated with a provided data type value.\n*\n* @module @stdlib/ndarray-base-dtype2c\n*\n* @example\n* var dtype2c = require( '@stdlib/ndarray-base-dtype2c' );\n*\n* var out = dtype2c( 'float64' );\n* // returns 'double'\n*\n* out = dtype2c( 'generic' );\n* // returns null\n*/\n\n// MODULES //\n\nvar dtype2c = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = dtype2c;\n"],
|
|
5
|
+
"mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,CAAAA,EAAA,SACE,OAAU,KACV,KAAQ,OACR,UAAa,qBACb,UAAa,qBACb,WAAc,sBACd,QAAW,mBACX,SAAY,KACZ,QAAW,QACX,QAAW,SACX,SAAY,KACZ,QAAW,KACX,KAAQ,SACR,MAAS,UACT,MAAS,UACT,MAAS,UACT,OAAU,KACV,OAAU,KACV,MAAS,UACT,OAAU,KACV,OAAU,WACV,OAAU,WACV,OAAU,WACV,QAAW,KACX,QAAW,IACb,ICzBA,IAAAC,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAU,QAAS,wCAAyC,EAC5DC,EAAQ,IAkBZ,SAASC,EAASC,EAAQ,CACzB,OAAOF,EAAOD,EAASG,CAAM,CAAE,GAAK,IACrC,CAKAJ,EAAO,QAAUG,ICXjB,IAAIE,EAAU,IAKd,OAAO,QAAUA",
|
|
6
6
|
"names": ["require_table", "__commonJSMin", "exports", "module", "require_main", "__commonJSMin", "exports", "module", "resolve", "TABLE", "dtype2c", "dtype", "dtype2c"]
|
|
7
7
|
}
|
package/lib/table.json
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
"binary": null,
|
|
3
|
+
"bool": "bool",
|
|
4
|
+
"complex32": "stdlib_complex32_t",
|
|
5
|
+
"complex64": "stdlib_complex64_t",
|
|
6
|
+
"complex128": "stdlib_complex128_t",
|
|
7
|
+
"float16": "stdlib_float16_t",
|
|
8
|
+
"bfloat16": null,
|
|
9
|
+
"float32": "float",
|
|
10
|
+
"float64": "double",
|
|
11
|
+
"float128": null,
|
|
12
|
+
"generic": null,
|
|
13
|
+
"int8": "int8_t",
|
|
14
|
+
"int16": "int16_t",
|
|
15
|
+
"int32": "int32_t",
|
|
16
|
+
"int64": "int64_t",
|
|
17
|
+
"int128": null,
|
|
18
|
+
"int256": null,
|
|
19
|
+
"uint8": "uint8_t",
|
|
20
|
+
"uint8c": null,
|
|
21
|
+
"uint16": "uint16_t",
|
|
22
|
+
"uint32": "uint32_t",
|
|
23
|
+
"uint64": "uint64_t",
|
|
24
|
+
"uint128": null,
|
|
25
|
+
"uint256": null
|
|
25
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/ndarray-base-dtype2c",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Return the C data type associated with a provided data type value.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@stdlib/ndarray-base-dtype-resolve-str": "^0.2.
|
|
33
|
+
"@stdlib/ndarray-base-dtype-resolve-str": "^0.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {},
|
|
36
36
|
"engines": {
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
"utils",
|
|
66
66
|
"util"
|
|
67
67
|
],
|
|
68
|
-
"__stdlib__": {},
|
|
69
68
|
"funding": {
|
|
70
69
|
"type": "opencollective",
|
|
71
70
|
"url": "https://opencollective.com/stdlib"
|