Skip to content

Commit 0299e91

Browse files
committed
Auto-generated commit
1 parent 612f622 commit 0299e91

File tree

3 files changed

+68
-34
lines changed

3 files changed

+68
-34
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
##### Features
2222

23+
- [`6e4b9eb`](https://github.com/stdlib-js/stdlib/commit/6e4b9ebc31d9629446019e37e31bfe9b180b675c) - update namespace TypeScript declarations [(#2681)](https://github.com/stdlib-js/stdlib/pull/2681)
2324
- [`d31e751`](https://github.com/stdlib-js/stdlib/commit/d31e7515b71dc5b76751173c7724d73d943b1473) - add `forEach` to namespace
2425
- [`de17de3`](https://github.com/stdlib-js/stdlib/commit/de17de32867461079aae166d5cecbecb1da7f922) - update namespace TypeScript declarations [(#2593)](https://github.com/stdlib-js/stdlib/pull/2593)
2526

@@ -376,6 +377,7 @@ A total of 4 people contributed to this release. Thank you to the following cont
376377

377378
<details>
378379

380+
- [`6e4b9eb`](https://github.com/stdlib-js/stdlib/commit/6e4b9ebc31d9629446019e37e31bfe9b180b675c) - **feat:** update namespace TypeScript declarations [(#2681)](https://github.com/stdlib-js/stdlib/pull/2681) _(by stdlib-bot, Philipp Burckhardt)_
379381
- [`7ee91a5`](https://github.com/stdlib-js/stdlib/commit/7ee91a531462ec823da632c6ae8ff65a8d16549e) - **docs:** update namespace table of contents [(#2674)](https://github.com/stdlib-js/stdlib/pull/2674) _(by stdlib-bot, Athan Reines)_
380382
- [`d31e751`](https://github.com/stdlib-js/stdlib/commit/d31e7515b71dc5b76751173c7724d73d943b1473) - **feat:** add `forEach` to namespace _(by Athan Reines)_
381383
- [`147a189`](https://github.com/stdlib-js/stdlib/commit/147a1897cc5ec7c05a97f8b4d4526ed6e6f224c1) - **docs:** reorder notes _(by Athan Reines)_

docs/types/index.d.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import flag = require( '@stdlib/ndarray-base-flag' );
5454
import flags = require( '@stdlib/ndarray-base-flags' );
5555
import fliplr = require( '@stdlib/ndarray-base-fliplr' );
5656
import flipud = require( '@stdlib/ndarray-base-flipud' );
57+
import forEach = require( '@stdlib/ndarray-base-for-each' );
5758
import scalar2ndarray = require( '@stdlib/ndarray-base-from-scalar' );
5859
import ind = require( '@stdlib/ndarray-base-ind' );
5960
import ind2sub = require( '@stdlib/ndarray-base-ind2sub' );
@@ -1044,6 +1045,37 @@ interface Namespace {
10441045
*/
10451046
flipud: typeof flipud;
10461047

1048+
/**
1049+
* Invokes a callback function once for each ndarray element.
1050+
*
1051+
* @param arrays - array-like object containing an output ndarray
1052+
* @param fcn - callback function
1053+
*
1054+
* @example
1055+
* var Float64Array = require( '@stdlib/array-float64' );
1056+
* var naryFunction = require( '@stdlib/utils-nary-function' );
1057+
* var log = require( '@stdlib/console-log' );
1058+
*
1059+
* // Create data buffers:
1060+
* var xbuf = new Float64Array( 12 );
1061+
*
1062+
* // Define the shape of the array:
1063+
* var shape = [ 3, 1, 2 ];
1064+
*
1065+
* // Define the array strides:
1066+
* var sx = [ 4, 4, 1 ];
1067+
*
1068+
* // Define the index offset:
1069+
* var ox = 1;
1070+
*
1071+
* // Create the output ndarray:
1072+
* var x = ndarray( 'float64', xbuf, shape, sx, ox, 'row-major' );
1073+
*
1074+
* // Apply the callback function:
1075+
* ns.forEach( [ x ], naryFunction( log, 1 ) );
1076+
*/
1077+
forEach: typeof forEach;
1078+
10471079
/**
10481080
* Returns a zero-dimensional ndarray containing a provided scalar value.
10491081
*

package.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,19 @@
155155
"@stdlib/array-empty": "^0.2.1",
156156
"@stdlib/array-filled": "^0.2.1",
157157
"@stdlib/array-filled-by": "^0.2.1",
158-
"@stdlib/array-float32": "^0.2.1",
159-
"@stdlib/array-float64": "^0.2.1",
160-
"@stdlib/array-int16": "^0.2.1",
161-
"@stdlib/array-int32": "^0.2.1",
162-
"@stdlib/array-int8": "^0.2.1",
158+
"@stdlib/array-float32": "^0.2.2",
159+
"@stdlib/array-float64": "^0.2.2",
160+
"@stdlib/array-int16": "^0.2.2",
161+
"@stdlib/array-int32": "^0.2.2",
162+
"@stdlib/array-int8": "^0.2.2",
163163
"@stdlib/array-typed": "^0.2.1",
164164
"@stdlib/array-typed-complex-ctors": "^0.2.1",
165-
"@stdlib/array-uint16": "^0.2.1",
166-
"@stdlib/array-uint32": "^0.2.1",
167-
"@stdlib/array-uint8": "^0.2.1",
168-
"@stdlib/array-uint8c": "^0.2.1",
165+
"@stdlib/array-uint16": "^0.2.2",
166+
"@stdlib/array-uint32": "^0.2.2",
167+
"@stdlib/array-uint8": "^0.2.2",
168+
"@stdlib/array-uint8c": "^0.2.2",
169169
"@stdlib/array-zeros": "^0.2.1",
170-
"@stdlib/assert-has-bigint-support": "^0.2.1",
170+
"@stdlib/assert-has-bigint-support": "^0.2.2",
171171
"@stdlib/assert-has-own-property": "^0.2.2",
172172
"@stdlib/assert-has-property": "^0.2.2",
173173
"@stdlib/assert-instance-of": "^0.2.2",
@@ -188,14 +188,14 @@
188188
"@stdlib/assert-is-int16array": "^0.2.2",
189189
"@stdlib/assert-is-int32array": "^0.2.2",
190190
"@stdlib/assert-is-int8array": "^0.2.2",
191-
"@stdlib/assert-is-integer": "^0.2.1",
192-
"@stdlib/assert-is-little-endian": "^0.2.1",
191+
"@stdlib/assert-is-integer": "^0.2.2",
192+
"@stdlib/assert-is-little-endian": "^0.2.2",
193193
"@stdlib/assert-is-ndarray-like": "^0.2.1",
194-
"@stdlib/assert-is-nonnegative-integer": "^0.2.1",
194+
"@stdlib/assert-is-nonnegative-integer": "^0.2.2",
195195
"@stdlib/assert-is-nonnegative-integer-array": "^0.2.1",
196196
"@stdlib/assert-is-number": "^0.2.2",
197197
"@stdlib/assert-is-plain-object": "^0.2.2",
198-
"@stdlib/assert-is-positive-integer": "^0.2.1",
198+
"@stdlib/assert-is-positive-integer": "^0.2.2",
199199
"@stdlib/assert-is-same-complex128array": "^0.2.1",
200200
"@stdlib/assert-is-same-float64array": "^0.2.1",
201201
"@stdlib/assert-is-string": "^0.2.2",
@@ -213,13 +213,13 @@
213213
"@stdlib/buffer-ctor": "^0.2.2",
214214
"@stdlib/buffer-from-array": "^0.2.1",
215215
"@stdlib/complex-base-cast-return": "^0.2.1",
216-
"@stdlib/complex-ctors": "^0.2.1",
217-
"@stdlib/complex-float32-ctor": "^0.0.1",
218-
"@stdlib/complex-float32-imag": "^0.1.0",
219-
"@stdlib/complex-float32-real": "^0.1.0",
220-
"@stdlib/complex-float64-ctor": "^0.0.1",
221-
"@stdlib/complex-float64-imag": "^0.1.0",
222-
"@stdlib/complex-float64-real": "^0.1.0",
216+
"@stdlib/complex-ctors": "^0.2.2",
217+
"@stdlib/complex-float32-ctor": "^0.0.2",
218+
"@stdlib/complex-float32-imag": "^0.1.1",
219+
"@stdlib/complex-float32-real": "^0.1.1",
220+
"@stdlib/complex-float64-ctor": "^0.0.3",
221+
"@stdlib/complex-float64-imag": "^0.1.1",
222+
"@stdlib/complex-float64-real": "^0.1.1",
223223
"@stdlib/console-log": "^0.2.2",
224224
"@stdlib/console-log-each": "^0.2.1",
225225
"@stdlib/fs-read-dir": "^0.2.2",
@@ -230,11 +230,11 @@
230230
"@stdlib/math-base-assert-is-nan": "^0.2.2",
231231
"@stdlib/math-base-special-abs": "^0.2.1",
232232
"@stdlib/math-base-special-cbrt": "^0.2.1",
233-
"@stdlib/math-base-special-floor": "^0.2.2",
234-
"@stdlib/math-base-special-identity": "^0.2.1",
233+
"@stdlib/math-base-special-floor": "^0.2.3",
234+
"@stdlib/math-base-special-identity": "^0.2.2",
235235
"@stdlib/math-base-special-pow": "^0.2.1",
236-
"@stdlib/math-base-special-round": "^0.2.1",
237-
"@stdlib/math-base-special-sqrt": "^0.2.1",
236+
"@stdlib/math-base-special-round": "^0.3.0",
237+
"@stdlib/math-base-special-sqrt": "^0.2.2",
238238
"@stdlib/math-base-special-trunc": "^0.2.1",
239239
"@stdlib/ndarray-array": "^0.2.1",
240240
"@stdlib/ndarray-base-assert-is-allowed-data-type-cast": "^0.2.1",
@@ -285,19 +285,19 @@
285285
"@stdlib/random-array-discrete-uniform": "^0.2.1",
286286
"@stdlib/random-base-discrete-uniform": "^0.2.1",
287287
"@stdlib/random-base-randu": "^0.2.1",
288-
"@stdlib/slice-base-args2multislice": "^0.2.1",
288+
"@stdlib/slice-base-args2multislice": "^0.2.2",
289289
"@stdlib/slice-base-nonreduced-dimensions": "^0.2.2",
290-
"@stdlib/slice-base-normalize-multi-slice": "^0.2.1",
290+
"@stdlib/slice-base-normalize-multi-slice": "^0.2.2",
291291
"@stdlib/slice-base-shape": "^0.2.1",
292-
"@stdlib/slice-ctor": "^0.2.1",
293-
"@stdlib/slice-multi": "^0.2.1",
294-
"@stdlib/strided-base-reinterpret-complex128": "^0.2.1",
295-
"@stdlib/strided-base-reinterpret-complex64": "^0.2.0",
292+
"@stdlib/slice-ctor": "^0.2.2",
293+
"@stdlib/slice-multi": "^0.2.2",
294+
"@stdlib/strided-base-reinterpret-complex128": "^0.2.2",
295+
"@stdlib/strided-base-reinterpret-complex64": "^0.2.1",
296296
"@stdlib/string-format": "^0.2.2",
297297
"@stdlib/string-left-pad": "^0.2.1",
298298
"@stdlib/string-replace": "^0.2.2",
299299
"@stdlib/string-right-pad": "^0.2.1",
300-
"@stdlib/string-substring-after": "^0.2.1",
300+
"@stdlib/string-substring-after": "^0.2.2",
301301
"@stdlib/string-substring-before": "^0.2.2",
302302
"@stdlib/string-uppercase": "^0.3.0",
303303
"@stdlib/time-current-year": "^0.2.2",
@@ -307,10 +307,10 @@
307307
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.2",
308308
"@stdlib/utils-keys": "^0.2.1",
309309
"@stdlib/utils-map2": "^0.2.1",
310-
"@stdlib/utils-nary-function": "^0.2.1",
310+
"@stdlib/utils-nary-function": "^0.2.2",
311311
"@stdlib/utils-object-inverse": "^0.2.1",
312312
"@stdlib/utils-try-require": "^0.2.2",
313-
"@stdlib/utils-unzip": "^0.2.1",
313+
"@stdlib/utils-unzip": "^0.2.2",
314314
"proxyquire": "^2.0.0",
315315
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
316316
"istanbul": "^0.4.1",

0 commit comments

Comments
 (0)