@stdlib/ndarray-base-empty 0.1.0 → 0.2.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 +8 -5
- package/SECURITY.md +5 -0
- package/docs/types/index.d.ts +13 -13
- package/package.json +25 -24
- package/CITATION.cff +0 -30
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2024 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -171,7 +171,7 @@ See [LICENSE][stdlib-license].
|
|
|
171
171
|
|
|
172
172
|
## Copyright
|
|
173
173
|
|
|
174
|
-
Copyright © 2016-
|
|
174
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
175
175
|
|
|
176
176
|
</section>
|
|
177
177
|
|
|
@@ -184,8 +184,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
184
184
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/ndarray-base-empty.svg
|
|
185
185
|
[npm-url]: https://npmjs.org/package/@stdlib/ndarray-base-empty
|
|
186
186
|
|
|
187
|
-
[test-image]: https://github.com/stdlib-js/ndarray-base-empty/actions/workflows/test.yml/badge.svg?branch=v0.
|
|
188
|
-
[test-url]: https://github.com/stdlib-js/ndarray-base-empty/actions/workflows/test.yml?query=branch:v0.
|
|
187
|
+
[test-image]: https://github.com/stdlib-js/ndarray-base-empty/actions/workflows/test.yml/badge.svg?branch=v0.2.0
|
|
188
|
+
[test-url]: https://github.com/stdlib-js/ndarray-base-empty/actions/workflows/test.yml?query=branch:v0.2.0
|
|
189
189
|
|
|
190
190
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/ndarray-base-empty/main.svg
|
|
191
191
|
[coverage-url]: https://codecov.io/github/stdlib-js/ndarray-base-empty?branch=main
|
|
@@ -208,15 +208,18 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
208
208
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
209
209
|
|
|
210
210
|
[deno-url]: https://github.com/stdlib-js/ndarray-base-empty/tree/deno
|
|
211
|
+
[deno-readme]: https://github.com/stdlib-js/ndarray-base-empty/blob/deno/README.md
|
|
211
212
|
[umd-url]: https://github.com/stdlib-js/ndarray-base-empty/tree/umd
|
|
213
|
+
[umd-readme]: https://github.com/stdlib-js/ndarray-base-empty/blob/umd/README.md
|
|
212
214
|
[esm-url]: https://github.com/stdlib-js/ndarray-base-empty/tree/esm
|
|
215
|
+
[esm-readme]: https://github.com/stdlib-js/ndarray-base-empty/blob/esm/README.md
|
|
213
216
|
[branches-url]: https://github.com/stdlib-js/ndarray-base-empty/blob/main/branches.md
|
|
214
217
|
|
|
215
218
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/ndarray-base-empty/main/LICENSE
|
|
216
219
|
|
|
217
|
-
[@stdlib/ndarray/base/ctor]: https://www.npmjs.com/package/@stdlib/
|
|
220
|
+
[@stdlib/ndarray/base/ctor]: https://www.npmjs.com/package/@stdlib/ndarray-base-ctor
|
|
218
221
|
|
|
219
|
-
[@stdlib/ndarray/dtypes]: https://www.npmjs.com/package/@stdlib/
|
|
222
|
+
[@stdlib/ndarray/dtypes]: https://www.npmjs.com/package/@stdlib/ndarray-dtypes
|
|
220
223
|
|
|
221
224
|
</section>
|
|
222
225
|
|
package/SECURITY.md
ADDED
package/docs/types/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ import { Shape, Order, typedndarray, float64ndarray, float32ndarray, int32ndarra
|
|
|
40
40
|
* var dt = arr.dtype;
|
|
41
41
|
* // returns 'float64'
|
|
42
42
|
*/
|
|
43
|
-
declare function empty( dtype: 'float64', shape: Shape, order: Order ): float64ndarray;
|
|
43
|
+
declare function empty( dtype: 'float64', shape: Shape, order: Order ): float64ndarray;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Creates an uninitialized array having a specified shape and data type.
|
|
@@ -60,7 +60,7 @@ declare function empty( dtype: 'float64', shape: Shape, order: Order ): float64n
|
|
|
60
60
|
* var dt = arr.dtype;
|
|
61
61
|
* // returns 'float32'
|
|
62
62
|
*/
|
|
63
|
-
declare function empty( dtype: 'float32', shape: Shape, order: Order ): float32ndarray;
|
|
63
|
+
declare function empty( dtype: 'float32', shape: Shape, order: Order ): float32ndarray;
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* Creates an uninitialized array having a specified shape and data type.
|
|
@@ -80,7 +80,7 @@ declare function empty( dtype: 'float32', shape: Shape, order: Order ): float32n
|
|
|
80
80
|
* var dt = arr.dtype;
|
|
81
81
|
* // returns 'complex128'
|
|
82
82
|
*/
|
|
83
|
-
declare function empty( dtype: 'complex128', shape: Shape, order: Order ): complex128ndarray;
|
|
83
|
+
declare function empty( dtype: 'complex128', shape: Shape, order: Order ): complex128ndarray;
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* Creates an uninitialized array having a specified shape and data type.
|
|
@@ -100,7 +100,7 @@ declare function empty( dtype: 'complex128', shape: Shape, order: Order ): compl
|
|
|
100
100
|
* var dt = arr.dtype;
|
|
101
101
|
* // returns 'complex64'
|
|
102
102
|
*/
|
|
103
|
-
declare function empty( dtype: 'complex64', shape: Shape, order: Order ): complex64ndarray;
|
|
103
|
+
declare function empty( dtype: 'complex64', shape: Shape, order: Order ): complex64ndarray;
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* Creates an uninitialized array having a specified shape and data type.
|
|
@@ -120,7 +120,7 @@ declare function empty( dtype: 'complex64', shape: Shape, order: Order ): comple
|
|
|
120
120
|
* var dt = arr.dtype;
|
|
121
121
|
* // returns 'int32'
|
|
122
122
|
*/
|
|
123
|
-
declare function empty( dtype: 'int32', shape: Shape, order: Order ): int32ndarray;
|
|
123
|
+
declare function empty( dtype: 'int32', shape: Shape, order: Order ): int32ndarray;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* Creates an uninitialized array having a specified shape and data type.
|
|
@@ -140,7 +140,7 @@ declare function empty( dtype: 'int32', shape: Shape, order: Order ): int32ndarr
|
|
|
140
140
|
* var dt = arr.dtype;
|
|
141
141
|
* // returns 'int16'
|
|
142
142
|
*/
|
|
143
|
-
declare function empty( dtype: 'int16', shape: Shape, order: Order ): int16ndarray;
|
|
143
|
+
declare function empty( dtype: 'int16', shape: Shape, order: Order ): int16ndarray;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Creates an uninitialized array having a specified shape and data type.
|
|
@@ -160,7 +160,7 @@ declare function empty( dtype: 'int16', shape: Shape, order: Order ): int16ndarr
|
|
|
160
160
|
* var dt = arr.dtype;
|
|
161
161
|
* // returns 'int8'
|
|
162
162
|
*/
|
|
163
|
-
declare function empty( dtype: 'int8', shape: Shape, order: Order ): int8ndarray;
|
|
163
|
+
declare function empty( dtype: 'int8', shape: Shape, order: Order ): int8ndarray;
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
166
|
* Creates an uninitialized array having a specified shape and data type.
|
|
@@ -180,7 +180,7 @@ declare function empty( dtype: 'int8', shape: Shape, order: Order ): int8ndarray
|
|
|
180
180
|
* var dt = arr.dtype;
|
|
181
181
|
* // returns 'uint32'
|
|
182
182
|
*/
|
|
183
|
-
declare function empty( dtype: 'uint32', shape: Shape, order: Order ): uint32ndarray;
|
|
183
|
+
declare function empty( dtype: 'uint32', shape: Shape, order: Order ): uint32ndarray;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* Creates an uninitialized array having a specified shape and data type.
|
|
@@ -200,7 +200,7 @@ declare function empty( dtype: 'uint32', shape: Shape, order: Order ): uint32nda
|
|
|
200
200
|
* var dt = arr.dtype;
|
|
201
201
|
* // returns 'uint16'
|
|
202
202
|
*/
|
|
203
|
-
declare function empty( dtype: 'uint16', shape: Shape, order: Order ): uint16ndarray;
|
|
203
|
+
declare function empty( dtype: 'uint16', shape: Shape, order: Order ): uint16ndarray;
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
206
|
* Creates an uninitialized array having a specified shape and data type.
|
|
@@ -220,7 +220,7 @@ declare function empty( dtype: 'uint16', shape: Shape, order: Order ): uint16nda
|
|
|
220
220
|
* var dt = arr.dtype;
|
|
221
221
|
* // returns 'uint8'
|
|
222
222
|
*/
|
|
223
|
-
declare function empty( dtype: 'uint8', shape: Shape, order: Order ): uint8ndarray;
|
|
223
|
+
declare function empty( dtype: 'uint8', shape: Shape, order: Order ): uint8ndarray;
|
|
224
224
|
|
|
225
225
|
/**
|
|
226
226
|
* Creates an uninitialized array having a specified shape and data type.
|
|
@@ -240,7 +240,7 @@ declare function empty( dtype: 'uint8', shape: Shape, order: Order ): uint8ndarr
|
|
|
240
240
|
* var dt = arr.dtype;
|
|
241
241
|
* // returns 'uint8c'
|
|
242
242
|
*/
|
|
243
|
-
declare function empty( dtype: 'uint8c', shape: Shape, order: Order ): uint8cndarray;
|
|
243
|
+
declare function empty( dtype: 'uint8c', shape: Shape, order: Order ): uint8cndarray;
|
|
244
244
|
|
|
245
245
|
/**
|
|
246
246
|
* Creates a zero-filled array having a specified shape and data type.
|
|
@@ -260,7 +260,7 @@ declare function empty( dtype: 'uint8c', shape: Shape, order: Order ): uint8cnda
|
|
|
260
260
|
* var dt = arr.dtype;
|
|
261
261
|
* // returns 'generic'
|
|
262
262
|
*/
|
|
263
|
-
declare function empty( dtype: 'generic', shape: Shape, order: Order ): typedndarray<number>;
|
|
263
|
+
declare function empty( dtype: 'generic', shape: Shape, order: Order ): typedndarray<number>;
|
|
264
264
|
|
|
265
265
|
/**
|
|
266
266
|
* Creates an uninitialized array having a specified shape and data type.
|
|
@@ -280,7 +280,7 @@ declare function empty( dtype: 'generic', shape: Shape, order: Order ): typednda
|
|
|
280
280
|
* var dt = arr.dtype;
|
|
281
281
|
* // returns 'float32'
|
|
282
282
|
*/
|
|
283
|
-
declare function empty( dtype: DataType, shape: Shape, order: Order ): typedndarray<number>;
|
|
283
|
+
declare function empty( dtype: DataType, shape: Shape, order: Order ): typedndarray<number>;
|
|
284
284
|
|
|
285
285
|
|
|
286
286
|
// EXPORTS //
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/ndarray-base-empty",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Create an uninitialized ndarray having a specified shape and data type.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -37,35 +37,36 @@
|
|
|
37
37
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@stdlib/array-empty": "^0.
|
|
41
|
-
"@stdlib/buffer-alloc-unsafe": "^0.
|
|
42
|
-
"@stdlib/ndarray-base-ctor": "^0.
|
|
43
|
-
"@stdlib/ndarray-base-numel": "^0.
|
|
44
|
-
"@stdlib/ndarray-base-shape2strides": "^0.
|
|
45
|
-
"@stdlib/ndarray-base-strides2offset": "^0.
|
|
46
|
-
"@stdlib/types": "^0.1
|
|
40
|
+
"@stdlib/array-empty": "^0.2.0",
|
|
41
|
+
"@stdlib/buffer-alloc-unsafe": "^0.2.0",
|
|
42
|
+
"@stdlib/ndarray-base-ctor": "^0.2.0",
|
|
43
|
+
"@stdlib/ndarray-base-numel": "^0.2.0",
|
|
44
|
+
"@stdlib/ndarray-base-shape2strides": "^0.2.0",
|
|
45
|
+
"@stdlib/ndarray-base-strides2offset": "^0.2.0",
|
|
46
|
+
"@stdlib/types": "^0.3.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@stdlib/array-complex128": "^0.1.0",
|
|
50
50
|
"@stdlib/array-complex64": "^0.1.0",
|
|
51
|
-
"@stdlib/array-float32": "^0.
|
|
52
|
-
"@stdlib/array-float64": "^0.
|
|
53
|
-
"@stdlib/array-int16": "^0.
|
|
54
|
-
"@stdlib/array-int32": "^0.
|
|
55
|
-
"@stdlib/array-int8": "^0.
|
|
56
|
-
"@stdlib/array-uint16": "^0.
|
|
57
|
-
"@stdlib/array-uint32": "^0.
|
|
58
|
-
"@stdlib/array-uint8": "^0.
|
|
59
|
-
"@stdlib/array-uint8c": "^0.
|
|
60
|
-
"@stdlib/assert-instance-of": "^0.
|
|
61
|
-
"@stdlib/assert-is-ndarray-like": "^0.
|
|
62
|
-
"@stdlib/
|
|
63
|
-
"@stdlib/
|
|
64
|
-
"@stdlib/
|
|
65
|
-
"@stdlib/ndarray-dtypes": "^0.1.0",
|
|
51
|
+
"@stdlib/array-float32": "^0.2.0",
|
|
52
|
+
"@stdlib/array-float64": "^0.2.0",
|
|
53
|
+
"@stdlib/array-int16": "^0.2.0",
|
|
54
|
+
"@stdlib/array-int32": "^0.2.0",
|
|
55
|
+
"@stdlib/array-int8": "^0.2.0",
|
|
56
|
+
"@stdlib/array-uint16": "^0.2.0",
|
|
57
|
+
"@stdlib/array-uint32": "^0.2.0",
|
|
58
|
+
"@stdlib/array-uint8": "^0.2.0",
|
|
59
|
+
"@stdlib/array-uint8c": "^0.2.0",
|
|
60
|
+
"@stdlib/assert-instance-of": "^0.2.0",
|
|
61
|
+
"@stdlib/assert-is-ndarray-like": "^0.2.0",
|
|
62
|
+
"@stdlib/buffer-ctor": "^0.2.0",
|
|
63
|
+
"@stdlib/math-base-special-pow": "^0.2.0",
|
|
64
|
+
"@stdlib/ndarray-dtypes": "^0.2.0",
|
|
66
65
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
67
66
|
"istanbul": "^0.4.1",
|
|
68
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
67
|
+
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
|
|
68
|
+
"@stdlib/bench-harness": "^0.2.0",
|
|
69
|
+
"@stdlib/bench": "^0.3.1"
|
|
69
70
|
},
|
|
70
71
|
"engines": {
|
|
71
72
|
"node": ">=0.10.0",
|
package/CITATION.cff
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
cff-version: 1.2.0
|
|
2
|
-
title: stdlib
|
|
3
|
-
message: >-
|
|
4
|
-
If you use this software, please cite it using the
|
|
5
|
-
metadata from this file.
|
|
6
|
-
|
|
7
|
-
type: software
|
|
8
|
-
|
|
9
|
-
authors:
|
|
10
|
-
- name: The Stdlib Authors
|
|
11
|
-
url: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
12
|
-
|
|
13
|
-
repository-code: https://github.com/stdlib-js/stdlib
|
|
14
|
-
url: https://stdlib.io
|
|
15
|
-
|
|
16
|
-
abstract: |
|
|
17
|
-
Standard library for JavaScript and Node.js.
|
|
18
|
-
|
|
19
|
-
keywords:
|
|
20
|
-
- JavaScript
|
|
21
|
-
- Node.js
|
|
22
|
-
- TypeScript
|
|
23
|
-
- standard library
|
|
24
|
-
- scientific computing
|
|
25
|
-
- numerical computing
|
|
26
|
-
- statistical computing
|
|
27
|
-
|
|
28
|
-
license: Apache-2.0 AND BSL-1.0
|
|
29
|
-
|
|
30
|
-
date-released: 2016
|