@stdlib/array-base-broadcasted-binary3d 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 CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2023 The Stdlib Authors.
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-2023. The Stdlib [Authors][stdlib-authors].
174
+ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
175
175
 
176
176
  </section>
177
177
 
@@ -184,8 +184,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
184
184
  [npm-image]: http://img.shields.io/npm/v/@stdlib/array-base-broadcasted-binary3d.svg
185
185
  [npm-url]: https://npmjs.org/package/@stdlib/array-base-broadcasted-binary3d
186
186
 
187
- [test-image]: https://github.com/stdlib-js/array-base-broadcasted-binary3d/actions/workflows/test.yml/badge.svg?branch=v0.1.0
188
- [test-url]: https://github.com/stdlib-js/array-base-broadcasted-binary3d/actions/workflows/test.yml?query=branch:v0.1.0
187
+ [test-image]: https://github.com/stdlib-js/array-base-broadcasted-binary3d/actions/workflows/test.yml/badge.svg?branch=v0.2.0
188
+ [test-url]: https://github.com/stdlib-js/array-base-broadcasted-binary3d/actions/workflows/test.yml?query=branch:v0.2.0
189
189
 
190
190
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/array-base-broadcasted-binary3d/main.svg
191
191
  [coverage-url]: https://codecov.io/github/stdlib-js/array-base-broadcasted-binary3d?branch=main
@@ -208,8 +208,11 @@ Copyright &copy; 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/array-base-broadcasted-binary3d/tree/deno
211
+ [deno-readme]: https://github.com/stdlib-js/array-base-broadcasted-binary3d/blob/deno/README.md
211
212
  [umd-url]: https://github.com/stdlib-js/array-base-broadcasted-binary3d/tree/umd
213
+ [umd-readme]: https://github.com/stdlib-js/array-base-broadcasted-binary3d/blob/umd/README.md
212
214
  [esm-url]: https://github.com/stdlib-js/array-base-broadcasted-binary3d/tree/esm
215
+ [esm-readme]: https://github.com/stdlib-js/array-base-broadcasted-binary3d/blob/esm/README.md
213
216
  [branches-url]: https://github.com/stdlib-js/array-base-broadcasted-binary3d/blob/main/branches.md
214
217
 
215
218
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/array-base-broadcasted-binary3d/main/LICENSE
package/SECURITY.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security
2
+
3
+ > Policy for reporting security vulnerabilities.
4
+
5
+ See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
@@ -26,7 +26,8 @@ import { Shape1D, Shape2D, Shape3D } from '@stdlib/types/ndarray';
26
26
  /**
27
27
  * Binary callback.
28
28
  *
29
- * @param value - input value
29
+ * @param v1 - element from first input array
30
+ * @param v2 - element from second input array
30
31
  * @returns result
31
32
  */
32
33
  type Binary<T, U, V> = ( v1: T, v2: U ) => V;
@@ -51,6 +52,24 @@ type OutputArray<T> = Array3D<T>;
51
52
  */
52
53
  type OutputArrayShape = Shape3D;
53
54
 
55
+ /**
56
+ * Input and output arrays.
57
+ */
58
+ type InOutArrays<T, U, V> = [
59
+ InputArray<T>,
60
+ InputArray<U>,
61
+ OutputArray<V>
62
+ ];
63
+
64
+ /**
65
+ * Input and output array shapes.
66
+ */
67
+ type InOutShapes = [
68
+ InputArrayShape,
69
+ InputArrayShape,
70
+ OutputArrayShape
71
+ ];
72
+
54
73
  /**
55
74
  * Applies a binary callback to elements in two broadcasted input arrays and assigns results to elements in a three-dimensional nested output array.
56
75
  *
@@ -63,9 +82,9 @@ type OutputArrayShape = Shape3D;
63
82
  * @param fcn - binary callback
64
83
  *
65
84
  * @example
66
- * var ones3d = require( `@stdlib/array/base/ones3d` );
67
- * var zeros3d = require( `@stdlib/array/base/zeros3d` );
68
- * var add = require( `@stdlib/math/base/ops/add` );
85
+ * var ones3d = require( '@stdlib/array-base-ones3d' );
86
+ * var zeros3d = require( '@stdlib/array-base-zeros3d' );
87
+ * var add = require( '@stdlib/math-base-ops-add' );
69
88
  *
70
89
  * var shapes = [
71
90
  * [ 1, 1, 2 ],
@@ -82,7 +101,7 @@ type OutputArrayShape = Shape3D;
82
101
  * console.log( z );
83
102
  * // => [ [ [ 2.0, 2.0 ], [ 2.0, 2.0 ] ], [ [ 2.0, 2.0 ], [ 2.0, 2.0 ] ] ]
84
103
  */
85
- declare function bbinary3d<T = unknown, U = unknown, V = unknown>( arrays: [ InputArray<T>, InputArray<U>, OutputArray<V> ], shapes: [ InputArrayShape, InputArrayShape, OutputArrayShape ], fcn: Binary<T, U, V> ): void;
104
+ declare function bbinary3d<T = unknown, U = unknown, V = unknown>( arrays: InOutArrays<T, U, V>, shapes: InOutShapes, fcn: Binary<T, U, V> ): void;
86
105
 
87
106
 
88
107
  // EXPORTS //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/array-base-broadcasted-binary3d",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Apply a binary callback to elements in two broadcasted input arrays and assign results to elements in a three-dimensional nested output array.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -37,23 +37,24 @@
37
37
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@stdlib/array-base-broadcast-array": "^0.1.0",
41
- "@stdlib/types": "^0.1.0"
40
+ "@stdlib/array-base-broadcast-array": "^0.2.0",
41
+ "@stdlib/types": "^0.3.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@stdlib/array-base-filled3d-by": "^0.1.0",
45
- "@stdlib/array-base-zeros3d": "^0.1.0",
46
- "@stdlib/bench": "^0.1.0",
47
- "@stdlib/math-base-assert-is-nan": "^0.1.0",
48
- "@stdlib/math-base-ops-add": "^0.1.0",
49
- "@stdlib/math-base-special-floor": "^0.1.0",
50
- "@stdlib/math-base-special-pow": "^0.1.0",
51
- "@stdlib/ndarray-base-numel": "^0.1.0",
52
- "@stdlib/random-base-discrete-uniform": "^0.0.6",
53
- "@stdlib/random-base-uniform": "^0.0.6",
44
+ "@stdlib/array-base-filled3d-by": "^0.2.0",
45
+ "@stdlib/array-base-zeros3d": "^0.2.0",
46
+ "@stdlib/math-base-assert-is-nan": "^0.2.0",
47
+ "@stdlib/math-base-ops-add": "^0.2.0",
48
+ "@stdlib/math-base-special-floor": "^0.2.0",
49
+ "@stdlib/math-base-special-pow": "^0.2.0",
50
+ "@stdlib/ndarray-base-numel": "^0.2.0",
51
+ "@stdlib/random-base-discrete-uniform": "^0.1.0",
52
+ "@stdlib/random-base-uniform": "^0.1.0",
54
53
  "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
55
54
  "istanbul": "^0.4.1",
56
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
55
+ "tap-min": "git+https://github.com/Planeshifter/tap-min.git",
56
+ "@stdlib/bench-harness": "^0.2.0",
57
+ "@stdlib/bench": "^0.3.1"
57
58
  },
58
59
  "engines": {
59
60
  "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