@stdlib/ndarray-base-bytes-per-element 0.0.4 → 0.0.8

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 CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2021 The Stdlib Authors.
1
+ Copyright (c) 2016-2022 The Stdlib Authors.
package/README.md CHANGED
@@ -20,7 +20,7 @@ limitations under the License.
20
20
 
21
21
  # Bytes per Element
22
22
 
23
- [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
23
+ [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
24
24
 
25
25
  > Return the number of bytes per element provided an underlying [array data type][@stdlib/ndarray/dtypes].
26
26
 
@@ -132,6 +132,14 @@ for ( i = 0; i < dtypes.length; i++ ) {
132
132
 
133
133
  <!-- /.references -->
134
134
 
135
+ <!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
136
+
137
+ <section class="related">
138
+
139
+ </section>
140
+
141
+ <!-- /.related -->
142
+
135
143
  <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
136
144
 
137
145
 
@@ -145,6 +153,10 @@ This package is part of [stdlib][stdlib], a standard library for JavaScript and
145
153
 
146
154
  For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].
147
155
 
156
+ #### Community
157
+
158
+ [![Chat][chat-image]][chat-url]
159
+
148
160
  ---
149
161
 
150
162
  ## License
@@ -154,7 +166,7 @@ See [LICENSE][stdlib-license].
154
166
 
155
167
  ## Copyright
156
168
 
157
- Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
169
+ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
158
170
 
159
171
  </section>
160
172
 
@@ -173,16 +185,30 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
173
185
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-bytes-per-element/main.svg
174
186
  [coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-bytes-per-element?branch=main
175
187
 
176
- [dependencies-image]: https://img.shields.io/david/stdlib-js/ndarray-base-bytes-per-element
188
+ <!--
189
+
190
+ [dependencies-image]: https://img.shields.io/david/stdlib-js/ndarray-base-bytes-per-element.svg
177
191
  [dependencies-url]: https://david-dm.org/stdlib-js/ndarray-base-bytes-per-element/main
178
192
 
193
+ -->
194
+
195
+ [umd]: https://github.com/umdjs/umd
196
+ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
197
+
198
+ [deno-url]: https://github.com/stdlib-js/ndarray-base-bytes-per-element/tree/deno
199
+ [umd-url]: https://github.com/stdlib-js/ndarray-base-bytes-per-element/tree/umd
200
+ [esm-url]: https://github.com/stdlib-js/ndarray-base-bytes-per-element/tree/esm
201
+
202
+ [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
203
+ [chat-url]: https://gitter.im/stdlib-js/stdlib/
204
+
179
205
  [stdlib]: https://github.com/stdlib-js/stdlib
180
206
 
181
207
  [stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
182
208
 
183
209
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/ndarray-base-bytes-per-element/main/LICENSE
184
210
 
185
- [@stdlib/ndarray/dtypes]: https://github.com/stdlib-js/ndarray-dtypes
211
+ [@stdlib/ndarray/dtypes]: https://www.npmjs.com/package/@stdlib/ndarray-dtypes
186
212
 
187
213
  </section>
188
214
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/ndarray-base-bytes-per-element",
3
- "version": "0.0.4",
3
+ "version": "0.0.8",
4
4
  "description": "Return the number of bytes per element provided an underlying array data type.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -18,7 +18,9 @@
18
18
  "benchmark": "./benchmark",
19
19
  "doc": "./docs",
20
20
  "example": "./examples",
21
+ "include": "./include",
21
22
  "lib": "./lib",
23
+ "src": "./src",
22
24
  "test": "./test"
23
25
  },
24
26
  "types": "./docs/types",
@@ -28,7 +30,7 @@
28
30
  "examples": "make examples",
29
31
  "benchmark": "make benchmark"
30
32
  },
31
- "homepage": "https://github.com/stdlib-js/stdlib",
33
+ "homepage": "https://stdlib.io",
32
34
  "repository": {
33
35
  "type": "git",
34
36
  "url": "git://github.com/stdlib-js/ndarray-base-bytes-per-element.git"
package/src/main.c CHANGED
@@ -44,28 +44,40 @@ int64_t stdlib_ndarray_bytes_per_element( enum STDLIB_NDARRAY_DTYPE dtype ) {
44
44
  return STDLIB_NDARRAY_FLOAT64_BYTES_PER_ELEMENT;
45
45
  case STDLIB_NDARRAY_FLOAT32:
46
46
  return STDLIB_NDARRAY_FLOAT32_BYTES_PER_ELEMENT;
47
+
47
48
  case STDLIB_NDARRAY_INT8:
48
49
  return STDLIB_NDARRAY_INT8_BYTES_PER_ELEMENT;
49
50
  case STDLIB_NDARRAY_UINT8:
50
51
  return STDLIB_NDARRAY_UINT8_BYTES_PER_ELEMENT;
51
52
  case STDLIB_NDARRAY_UINT8C:
52
53
  return STDLIB_NDARRAY_UINT8C_BYTES_PER_ELEMENT;
54
+
53
55
  case STDLIB_NDARRAY_INT16:
54
56
  return STDLIB_NDARRAY_INT16_BYTES_PER_ELEMENT;
55
57
  case STDLIB_NDARRAY_UINT16:
56
58
  return STDLIB_NDARRAY_UINT16_BYTES_PER_ELEMENT;
59
+
57
60
  case STDLIB_NDARRAY_INT32:
58
61
  return STDLIB_NDARRAY_INT32_BYTES_PER_ELEMENT;
59
62
  case STDLIB_NDARRAY_UINT32:
60
63
  return STDLIB_NDARRAY_UINT32_BYTES_PER_ELEMENT;
64
+
61
65
  case STDLIB_NDARRAY_INT64:
62
66
  return STDLIB_NDARRAY_INT64_BYTES_PER_ELEMENT;
63
67
  case STDLIB_NDARRAY_UINT64:
64
68
  return STDLIB_NDARRAY_UINT64_BYTES_PER_ELEMENT;
69
+
65
70
  case STDLIB_NDARRAY_BOOL:
66
71
  return STDLIB_NDARRAY_BOOL_BYTES_PER_ELEMENT;
72
+
67
73
  case STDLIB_NDARRAY_BINARY:
68
74
  return STDLIB_NDARRAY_BINARY_BYTES_PER_ELEMENT;
75
+
76
+ case STDLIB_NDARRAY_COMPLEX64:
77
+ return STDLIB_NDARRAY_COMPLEX64_BYTES_PER_ELEMENT;
78
+ case STDLIB_NDARRAY_COMPLEX128:
79
+ return STDLIB_NDARRAY_COMPLEX128_BYTES_PER_ELEMENT;
80
+
69
81
  default:
70
82
  return 0; // data type is not currently supported
71
83
  }
package/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- # CHANGELOG
2
-
3
- > Package changelog.
4
-
5
- See [GitHub Releases](https://github.com/stdlib-js/ndarray-base-bytes-per-element/releases) for the changelog.