@stdlib/ndarray-base-dtype2c 0.2.0 → 0.2.2
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/README.md +5 -9
- package/package.json +5 -18
package/README.md
CHANGED
|
@@ -105,11 +105,7 @@ var out = dtype2c( 'foobar' );
|
|
|
105
105
|
```javascript
|
|
106
106
|
var dtype2c = require( '@stdlib/ndarray-base-dtype2c' );
|
|
107
107
|
|
|
108
|
-
var dtypes
|
|
109
|
-
var out;
|
|
110
|
-
var i;
|
|
111
|
-
|
|
112
|
-
dtypes = [
|
|
108
|
+
var dtypes = [
|
|
113
109
|
'float64',
|
|
114
110
|
'float32',
|
|
115
111
|
'int8',
|
|
@@ -124,9 +120,9 @@ dtypes = [
|
|
|
124
120
|
'foobar'
|
|
125
121
|
];
|
|
126
122
|
|
|
123
|
+
var i;
|
|
127
124
|
for ( i = 0; i < dtypes.length; i++ ) {
|
|
128
|
-
|
|
129
|
-
console.log( '%s => %s', dtypes[ i ], out );
|
|
125
|
+
console.log( '%s => %s', dtypes[ i ], dtype2c( dtypes[ i ] ) );
|
|
130
126
|
}
|
|
131
127
|
```
|
|
132
128
|
|
|
@@ -189,8 +185,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
189
185
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-dtype2c.svg
|
|
190
186
|
[npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-dtype2c
|
|
191
187
|
|
|
192
|
-
[test-image]: https://github.com/stdlib-js/ndarray-base-dtype2c/actions/workflows/test.yml/badge.svg?branch=v0.2.
|
|
193
|
-
[test-url]: https://github.com/stdlib-js/ndarray-base-dtype2c/actions/workflows/test.yml?query=branch:v0.2.
|
|
188
|
+
[test-image]: https://github.com/stdlib-js/ndarray-base-dtype2c/actions/workflows/test.yml/badge.svg?branch=v0.2.2
|
|
189
|
+
[test-url]: https://github.com/stdlib-js/ndarray-base-dtype2c/actions/workflows/test.yml?query=branch:v0.2.2
|
|
194
190
|
|
|
195
191
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-dtype2c/main.svg
|
|
196
192
|
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-dtype2c?branch=main
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/ndarray-base-dtype2c",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Return the C data type associated with a provided data type value.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -15,19 +15,12 @@
|
|
|
15
15
|
],
|
|
16
16
|
"main": "./lib",
|
|
17
17
|
"directories": {
|
|
18
|
-
"benchmark": "./benchmark",
|
|
19
18
|
"doc": "./docs",
|
|
20
|
-
"example": "./examples",
|
|
21
19
|
"lib": "./lib",
|
|
22
|
-
"
|
|
20
|
+
"dist": "./dist"
|
|
23
21
|
},
|
|
24
22
|
"types": "./docs/types",
|
|
25
|
-
"scripts": {
|
|
26
|
-
"test": "make test",
|
|
27
|
-
"test-cov": "make test-cov",
|
|
28
|
-
"examples": "make examples",
|
|
29
|
-
"benchmark": "make benchmark"
|
|
30
|
-
},
|
|
23
|
+
"scripts": {},
|
|
31
24
|
"homepage": "https://stdlib.io",
|
|
32
25
|
"repository": {
|
|
33
26
|
"type": "git",
|
|
@@ -37,15 +30,9 @@
|
|
|
37
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
31
|
},
|
|
39
32
|
"dependencies": {
|
|
40
|
-
"@stdlib/ndarray-base-dtype-resolve-str": "^0.2.
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
44
|
-
"istanbul": "^0.4.1",
|
|
45
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
|
|
46
|
-
"@stdlib/bench-harness": "^0.2.0",
|
|
47
|
-
"@stdlib/bench": "^0.3.1"
|
|
33
|
+
"@stdlib/ndarray-base-dtype-resolve-str": "^0.2.1"
|
|
48
34
|
},
|
|
35
|
+
"devDependencies": {},
|
|
49
36
|
"engines": {
|
|
50
37
|
"node": ">=0.10.0",
|
|
51
38
|
"npm": ">2.7.0"
|