From d20a6540c664f8864c145e94aa2b579cc1089fe5 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 11 Aug 2024 21:21:08 +0000 Subject: [PATCH] Auto-generated commit --- CHANGELOG.md | 1949 ++++------------- iter/interleave-subarrays/README.md | 169 ++ .../benchmark/benchmark.js | 85 + iter/interleave-subarrays/docs/repl.txt | 54 + .../docs/types/index.d.ts | 72 + iter/interleave-subarrays/docs/types/test.ts | 79 + iter/interleave-subarrays/examples/index.js | 45 + iter/interleave-subarrays/lib/index.js | 58 + iter/interleave-subarrays/lib/main.js | 221 ++ iter/interleave-subarrays/package.json | 73 + iter/interleave-subarrays/test/test.js | 501 +++++ iter/lib/index.js | 9 + 12 files changed, 1739 insertions(+), 1576 deletions(-) create mode 100644 iter/interleave-subarrays/README.md create mode 100644 iter/interleave-subarrays/benchmark/benchmark.js create mode 100644 iter/interleave-subarrays/docs/repl.txt create mode 100644 iter/interleave-subarrays/docs/types/index.d.ts create mode 100644 iter/interleave-subarrays/docs/types/test.ts create mode 100644 iter/interleave-subarrays/examples/index.js create mode 100644 iter/interleave-subarrays/lib/index.js create mode 100644 iter/interleave-subarrays/lib/main.js create mode 100644 iter/interleave-subarrays/package.json create mode 100644 iter/interleave-subarrays/test/test.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 41abcaf0..f5b9b002 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,18 +33,16 @@ ##### BREAKING CHANGES -- [`0adcae5`](https://github.com/stdlib-js/stdlib/commit/0adcae51386086e2ef5fb5d78402389cff776deb): update namespace TypeScript declarations -- [`0adcae5`](https://github.com/stdlib-js/stdlib/commit/0adcae51386086e2ef5fb5d78402389cff776deb): rename exported aliases +- [`0adcae5`](https://github.com/stdlib-js/stdlib/commit/0adcae51386086e2ef5fb5d78402389cff776deb): rename exported aliases - To migrate, users should consult the relevant namespace documentation and associated commits in order to determine which aliases have been renamed. - [`8f43afc`](https://github.com/stdlib-js/stdlib/commit/8f43afc5d9637ba35f60d35046041e5f0579f92c): rename exported aliases -- [`8f43afc`](https://github.com/stdlib-js/stdlib/commit/8f43afc5d9637ba35f60d35046041e5f0579f92c): rename exported aliases - To migrate, users should consult the documentation for the updated - aliases. For the most part, updating code should be as simple as - dropping an `ndarray` or `nd` prefix. For others, they should more - directly match, or be inferrable from, the package name. + aliases. For the most part, updating code should be as simple as + dropping an `ndarray` or `nd` prefix. For others, they should more + directly match, or be inferrable from, the package name. @@ -530,17 +528,16 @@ This release closes the following issue: ##### BREAKING CHANGES -- [`9e08caf`](https://github.com/stdlib-js/stdlib/commit/9e08caf0e897040e9b82ff104cb5a09d6b03465e): return a `complex64` dtype ndarray if provided a Complex64 scalar -- [`9e08caf`](https://github.com/stdlib-js/stdlib/commit/9e08caf0e897040e9b82ff104cb5a09d6b03465e): return same dtype when provided a complex number instance +- [`9e08caf`](https://github.com/stdlib-js/stdlib/commit/9e08caf0e897040e9b82ff104cb5a09d6b03465e): return same dtype when provided a complex number instance - To migrate, users relying on the previous behavior where anything - complex-like resulted in a `complex128` ndarray should explicitly - set the output dtype to 'complex128'. By default, the function will - return an ndarray having the same dtype as a provided complex number - instance. When a user wants to explicitly upcast a Complex64 scalar, - the user can explicitly set the `dtype` option. The previous default - behavior is undesirable, as we disregarded the explicit type info - of a provided complex number scalar. + complex-like resulted in a `complex128` ndarray should explicitly + set the output dtype to 'complex128'. By default, the function will + return an ndarray having the same dtype as a provided complex number + instance. When a user wants to explicitly upcast a Complex64 scalar, + the user can explicitly set the `dtype` option. The previous default + behavior is undesirable, as we disregarded the explicit type info + of a provided complex number scalar. @@ -562,6 +559,7 @@ This release closes the following issue: ##### Features +- [`6576f4f`](https://github.com/stdlib-js/stdlib/commit/6576f4f82a2f47b2c0ffa35731efcb15a22e158a) - add `nditerInterleaveSubarrays` - [`4289f78`](https://github.com/stdlib-js/stdlib/commit/4289f78da1d67c5671151413b4673ec32ede26c2) - add `nditerStacks` to namespace - [`873b085`](https://github.com/stdlib-js/stdlib/commit/873b085ae0183426f3e8e831a50a42e2df3ba13d) - add `nditerSubarrays` to namespace - [`46aec25`](https://github.com/stdlib-js/stdlib/commit/46aec25aac5d4a0c8a3fd7b719dd6a080e59beb8) - add `nditerSelectDimension` to namespace @@ -576,6 +574,28 @@ This release closes the following issue: +
+ +#### [@stdlib/ndarray/iter/interleave-subarrays](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/iter/interleave-subarrays) + +
+ +
+ +##### Features + +- [`25e87e4`](https://github.com/stdlib-js/stdlib/commit/25e87e46c052b2fb2bbd026a71a5ee10f4c50d3f) - add `ndarray/iter/interleave-subarrays` + +
+ + + +
+ +
+ + +
#### [@stdlib/ndarray/iter/select-dimension](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/iter/select-dimension) @@ -662,8 +682,7 @@ This release closes the following issue: ##### BREAKING CHANGES -- [`21052a2`](https://github.com/stdlib-js/stdlib/commit/21052a211289b86b0e8a2e1f43a4d4c5b2379ffb): add boolean dtype support to ndarray/min-dtype -- [`21052a2`](https://github.com/stdlib-js/stdlib/commit/21052a211289b86b0e8a2e1f43a4d4c5b2379ffb): return "bool" when provided a boolean +- [`21052a2`](https://github.com/stdlib-js/stdlib/commit/21052a211289b86b0e8a2e1f43a4d4c5b2379ffb): return "bool" when provided a boolean - To migrate, users explicitly handle "bool" return values. If "generic" is still desired, users should consolidate accordingly. @@ -839,35 +858,31 @@ This release closes the following issue: ### BREAKING CHANGES -- [`21052a2`](https://github.com/stdlib-js/stdlib/commit/21052a211289b86b0e8a2e1f43a4d4c5b2379ffb): add boolean dtype support to ndarray/min-dtype -- [`21052a2`](https://github.com/stdlib-js/stdlib/commit/21052a211289b86b0e8a2e1f43a4d4c5b2379ffb): return "bool" when provided a boolean +- [`21052a2`](https://github.com/stdlib-js/stdlib/commit/21052a211289b86b0e8a2e1f43a4d4c5b2379ffb): return "bool" when provided a boolean - To migrate, users explicitly handle "bool" return values. If "generic" is still desired, users should consolidate accordingly. -- [`0adcae5`](https://github.com/stdlib-js/stdlib/commit/0adcae51386086e2ef5fb5d78402389cff776deb): update namespace TypeScript declarations -- [`0adcae5`](https://github.com/stdlib-js/stdlib/commit/0adcae51386086e2ef5fb5d78402389cff776deb): rename exported aliases +- [`0adcae5`](https://github.com/stdlib-js/stdlib/commit/0adcae51386086e2ef5fb5d78402389cff776deb): rename exported aliases - To migrate, users should consult the relevant namespace documentation and associated commits in order to determine which aliases have been renamed. - [`8f43afc`](https://github.com/stdlib-js/stdlib/commit/8f43afc5d9637ba35f60d35046041e5f0579f92c): rename exported aliases -- [`8f43afc`](https://github.com/stdlib-js/stdlib/commit/8f43afc5d9637ba35f60d35046041e5f0579f92c): rename exported aliases - To migrate, users should consult the documentation for the updated - aliases. For the most part, updating code should be as simple as - dropping an `ndarray` or `nd` prefix. For others, they should more - directly match, or be inferrable from, the package name. + aliases. For the most part, updating code should be as simple as + dropping an `ndarray` or `nd` prefix. For others, they should more + directly match, or be inferrable from, the package name. -- [`9e08caf`](https://github.com/stdlib-js/stdlib/commit/9e08caf0e897040e9b82ff104cb5a09d6b03465e): return a `complex64` dtype ndarray if provided a Complex64 scalar -- [`9e08caf`](https://github.com/stdlib-js/stdlib/commit/9e08caf0e897040e9b82ff104cb5a09d6b03465e): return same dtype when provided a complex number instance +- [`9e08caf`](https://github.com/stdlib-js/stdlib/commit/9e08caf0e897040e9b82ff104cb5a09d6b03465e): return same dtype when provided a complex number instance - To migrate, users relying on the previous behavior where anything - complex-like resulted in a `complex128` ndarray should explicitly - set the output dtype to 'complex128'. By default, the function will - return an ndarray having the same dtype as a provided complex number - instance. When a user wants to explicitly upcast a Complex64 scalar, - the user can explicitly set the `dtype` option. The previous default - behavior is undesirable, as we disregarded the explicit type info - of a provided complex number scalar. + complex-like resulted in a `complex128` ndarray should explicitly + set the output dtype to 'complex128'. By default, the function will + return an ndarray having the same dtype as a provided complex number + instance. When a user wants to explicitly upcast a Complex64 scalar, + the user can explicitly set the `dtype` option. The previous default + behavior is undesirable, as we disregarded the explicit type info + of a provided complex number scalar.
@@ -906,6 +921,8 @@ A total of 4 people contributed to this release. Thank you to the following cont
+- [`6576f4f`](https://github.com/stdlib-js/stdlib/commit/6576f4f82a2f47b2c0ffa35731efcb15a22e158a) - **feat:** add `nditerInterleaveSubarrays` _(by Athan Reines)_ +- [`25e87e4`](https://github.com/stdlib-js/stdlib/commit/25e87e46c052b2fb2bbd026a71a5ee10f4c50d3f) - **feat:** add `ndarray/iter/interleave-subarrays` _(by Athan Reines)_ - [`4289f78`](https://github.com/stdlib-js/stdlib/commit/4289f78da1d67c5671151413b4673ec32ede26c2) - **feat:** add `nditerStacks` to namespace _(by Athan Reines)_ - [`d256bd9`](https://github.com/stdlib-js/stdlib/commit/d256bd93e03a245d45b732ba4d8ab60e47d378d6) - **feat:** add `ndarray/iter/stacks` _(by Athan Reines)_ - [`7a4424b`](https://github.com/stdlib-js/stdlib/commit/7a4424bd81e212e9c7534520213b696c0c64c644) - **docs:** fix comment _(by Athan Reines)_ @@ -992,27 +1009,17 @@ A total of 4 people contributed to this release. Thank you to the following cont -## 0.2.1 (2024-02-05) +
-
+## 0.2.1 (2024-02-05) -### Packages +No changes reported for this release.
- - -
- -### Commits - -
- -
- -
+ - +
## 0.2.0 (2024-02-05) @@ -1129,69 +1136,53 @@ A total of 4 people contributed to this release. Thank you to the following cont -
+
-#### [@stdlib/ndarray/base/assert](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/assert) +#### [@stdlib/ndarray/base/broadcast-arrays](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/broadcast-arrays)
-No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/assert/is-index-mode](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/assert/is-index-mode) +
-
+##### Features -No changes reported for this release.
+- [`d47c764`](https://github.com/stdlib-js/stdlib/commit/d47c7648f41c6622489321f7ee36b875acd117f6) - add `ndarray/base/broadcast-arrays`
- - -
- -#### [@stdlib/ndarray/base/assert/is-read-only](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/assert/is-read-only) - -
+ -No changes reported for this release.
+
-
+
-#### [@stdlib/ndarray/base/assign](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/assign) +#### [@stdlib/ndarray/base/empty](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/empty)
-No changes reported for this release.
- -
+
- +##### Bug Fixes -
+- [`def989d`](https://github.com/stdlib-js/stdlib/commit/def989d20c35d4cb0834e91324177abc8f522626) - resolve type declaration typo by removing stray lint directive -#### [@stdlib/ndarray/base/broadcast-array](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/broadcast-array) +
-
+ -No changes reported for this release.
+
-
+
-#### [@stdlib/ndarray/base/broadcast-arrays](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/broadcast-arrays) +#### [@stdlib/ndarray/base/flag](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/flag)
@@ -1199,7 +1190,7 @@ No changes reported for this release.
##### Features -- [`d47c764`](https://github.com/stdlib-js/stdlib/commit/d47c7648f41c6622489321f7ee36b875acd117f6) - add `ndarray/base/broadcast-arrays` +- [`e557f2b`](https://github.com/stdlib-js/stdlib/commit/e557f2bd167692a6d0c67e8b9b0133a72d91903c) - add `ndarray/base/flag`
@@ -1211,93 +1202,88 @@ No changes reported for this release. -
+
-#### [@stdlib/ndarray/base/broadcast-scalar](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/broadcast-scalar) +#### [@stdlib/ndarray/base/flags](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/flags)
-No changes reported for this release.
- -
+
- +##### Features -
+- [`181c73e`](https://github.com/stdlib-js/stdlib/commit/181c73e2f2b9a88ddfe95df533e975a1b1c3a469) - add `ndarray/base/flags` -#### [@stdlib/ndarray/base/buffer-dtype-enum](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/buffer-dtype-enum) +
-
+ -No changes reported for this release.
+
-
+
-#### [@stdlib/ndarray/base/ctor](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/ctor) +#### [@stdlib/ndarray/base/ind](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/ind)
-No changes reported for this release.
- -
+
- +##### Features -
+- [`f3d3f4f`](https://github.com/stdlib-js/stdlib/commit/f3d3f4f4d69804a3f31bdb542abf1aca9f3576d9) - add a `factory` method to allow for partial application +- [`a7d2960`](https://github.com/stdlib-js/stdlib/commit/a7d2960bebae832e80d61cadeb2a1b6d719f0db1) - add support for returning a normalized index -#### [@stdlib/ndarray/base/dtype](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/dtype) +
-
+ -No changes reported for this release.
+
-
+
-#### [@stdlib/ndarray/base/dtype-enum2str](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/dtype-enum2str) +#### [@stdlib/ndarray/base/ind2sub](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/ind2sub)
-No changes reported for this release.
- -
+
- +##### Features -
+- [`8e18e43`](https://github.com/stdlib-js/stdlib/commit/8e18e43bbd0b553e32bd5e8df1d36d4a8cc9d8c3) - add support for `normalize` index mode -#### [@stdlib/ndarray/base/dtype-resolve-str](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/dtype-resolve-str) +
-
+ -No changes reported for this release.
+
-
+
-#### [@stdlib/ndarray/base/empty](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/empty) +#### [@stdlib/ndarray/base/maybe-broadcast-arrays](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/maybe-broadcast-arrays)
-
+
-##### Bug Fixes +##### Features -- [`def989d`](https://github.com/stdlib-js/stdlib/commit/def989d20c35d4cb0834e91324177abc8f522626) - resolve type declaration typo by removing stray lint directive +- [`74d4f9f`](https://github.com/stdlib-js/stdlib/commit/74d4f9f193420a70ea40fb576d667d582da5cd6f) - add `ndarray/base/maybe-broadcast-arrays`
- +
@@ -1305,33 +1291,31 @@ No changes reported for this release. -
+
-#### [@stdlib/ndarray/base/empty-like](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/empty-like) +#### [@stdlib/ndarray/base/nullary](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/nullary)
-No changes reported for this release.
- -
+
- +##### Bug Fixes -
+- [`ba92c62`](https://github.com/stdlib-js/stdlib/commit/ba92c62429e3f7165f526c72ad37824283b459d7) - remove related section -#### [@stdlib/ndarray/base/expand-dimensions](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/expand-dimensions) +
-
+ -No changes reported for this release.
+
-
+
-#### [@stdlib/ndarray/base/flag](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/flag) +#### [@stdlib/ndarray/base/nullary-loop-interchange-order](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/nullary-loop-interchange-order)
@@ -1339,7 +1323,7 @@ No changes reported for this release.
##### Features -- [`e557f2b`](https://github.com/stdlib-js/stdlib/commit/e557f2bd167692a6d0c67e8b9b0133a72d91903c) - add `ndarray/base/flag` +- [`c73cbe7`](https://github.com/stdlib-js/stdlib/commit/c73cbe76e440cf2e4211467d0db69d752409054d) - add support for returning dimension indices
@@ -1351,9 +1335,9 @@ No changes reported for this release. -
+
-#### [@stdlib/ndarray/base/flags](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/flags) +#### [@stdlib/ndarray/base/numel-dimension](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/numel-dimension)
@@ -1361,7 +1345,7 @@ No changes reported for this release.
##### Features -- [`181c73e`](https://github.com/stdlib-js/stdlib/commit/181c73e2f2b9a88ddfe95df533e975a1b1c3a469) - add `ndarray/base/flags` +- [`6224528`](https://github.com/stdlib-js/stdlib/commit/62245282f95e98d2fe25e5aadc92f9d196ff25c5) - add `ndarray/base/numel-dimension`
@@ -1373,57 +1357,53 @@ No changes reported for this release. -
+
-#### [@stdlib/ndarray/base/fliplr](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/fliplr) +#### [@stdlib/ndarray/base/slice-from](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/slice-from)
-No changes reported for this release.
- -
+
- +##### Bug Fixes -
+- [`c8241c2`](https://github.com/stdlib-js/stdlib/commit/c8241c254b2ab5e5116f293ad2f8165c38ac9f4e) - ensure ability to return an empty slice in strict mode -#### [@stdlib/ndarray/base/flipud](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/flipud) +
-
+ -No changes reported for this release.
+
-
+
-#### [@stdlib/ndarray/base/from-scalar](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/from-scalar) +#### [@stdlib/ndarray/base/stride](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/stride)
-No changes reported for this release.
- -
+
- +##### Features -
+- [`b4aa572`](https://github.com/stdlib-js/stdlib/commit/b4aa5729cbf528faac2a81b2bf73d11f9f3ad39f) - add `ndarray/base/stride` -#### [@stdlib/ndarray/base/function-object](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/function-object) +
-
+ -No changes reported for this release.
+
-
+
-#### [@stdlib/ndarray/base/ind](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/ind) +#### [@stdlib/ndarray/base/sub2ind](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/sub2ind)
@@ -1431,8 +1411,7 @@ No changes reported for this release.
##### Features -- [`f3d3f4f`](https://github.com/stdlib-js/stdlib/commit/f3d3f4f4d69804a3f31bdb542abf1aca9f3576d9) - add a `factory` method to allow for partial application -- [`a7d2960`](https://github.com/stdlib-js/stdlib/commit/a7d2960bebae832e80d61cadeb2a1b6d719f0db1) - add support for returning a normalized index +- [`5363916`](https://github.com/stdlib-js/stdlib/commit/5363916b97a8b70622fff6d8663760d3582e4336) - add support for `normalize` index mode
@@ -1444,9 +1423,9 @@ No changes reported for this release. -
+
-#### [@stdlib/ndarray/base/ind2sub](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/ind2sub) +#### [@stdlib/ndarray/base/vind2](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/vind2)
@@ -1454,7 +1433,7 @@ No changes reported for this release.
##### Features -- [`8e18e43`](https://github.com/stdlib-js/stdlib/commit/8e18e43bbd0b553e32bd5e8df1d36d4a8cc9d8c3) - add support for `normalize` index mode +- [`274da55`](https://github.com/stdlib-js/stdlib/commit/274da55cfd025bbc1f1bf59d5c7e71ed12250ae4) - add support for `normalize` index mode
@@ -1466,21 +1445,31 @@ No changes reported for this release. -
+
-#### [@stdlib/ndarray/base/maybe-broadcast-array](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/maybe-broadcast-array) +#### [@stdlib/ndarray/base/zeros](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/zeros)
-No changes reported for this release.
+
+ +##### Bug Fixes + +- [`def989d`](https://github.com/stdlib-js/stdlib/commit/def989d20c35d4cb0834e91324177abc8f522626) - resolve type declaration typo by removing stray lint directive + +
+ + + +
-
+
-#### [@stdlib/ndarray/base/maybe-broadcast-arrays](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/maybe-broadcast-arrays) +#### [@stdlib/ndarray/broadcast-arrays](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/broadcast-arrays)
@@ -1488,7 +1477,7 @@ No changes reported for this release.
##### Features -- [`74d4f9f`](https://github.com/stdlib-js/stdlib/commit/74d4f9f193420a70ea40fb576d667d582da5cd6f) - add `ndarray/base/maybe-broadcast-arrays` +- [`f3b79c9`](https://github.com/stdlib-js/stdlib/commit/f3b79c9696d2db950fb28874e4ca8d2562bd38f7) - add `ndarray/broadcast-arrays`
@@ -1500,654 +1489,60 @@ No changes reported for this release. -
+
-#### [@stdlib/ndarray/base/napi](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/napi) +#### [@stdlib/ndarray/ctor](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/ctor)
-No changes reported for this release.
- -
+
- +##### Features -
+- [`5c9d067`](https://github.com/stdlib-js/stdlib/commit/5c9d067cfaf35e20ff0dde4943f9e75a9ceb6037) - add tests and update docs for `normalize` index mode support -#### [@stdlib/ndarray/base/napi/addon-arguments](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/napi/addon-arguments) +
-
+ -No changes reported for this release.
+
-
+
-#### [@stdlib/ndarray/base/napi/dtype-string-to-dtype](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/napi/dtype-string-to-dtype) +#### [@stdlib/ndarray/dispatch](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/dispatch)
-No changes reported for this release.
- -
+
- +##### Bug Fixes -
+- [`f204b3f`](https://github.com/stdlib-js/stdlib/commit/f204b3fd61259968e39e91aa3579df62c6fda2ca) - resolve type declaration typo by removing stray lint directive [(#1133)](https://github.com/stdlib-js/stdlib/pull/1133) +- [`e3a8985`](https://github.com/stdlib-js/stdlib/commit/e3a898537dc0ff2e08c24fbb5a6e58c6394fcd0c) - move links -#### [@stdlib/ndarray/base/napi/typedarray-type-to-dtype](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/napi/typedarray-type-to-dtype) +
-
+ -No changes reported for this release.
+
-
+
-#### [@stdlib/ndarray/base/napi/unary](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/napi/unary) +#### [@stdlib/ndarray/dispatch-by](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/dispatch-by)
-No changes reported for this release.
+
-
- - - -
- -#### [@stdlib/ndarray/base/ndarraylike2object](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/ndarraylike2object) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/ndims](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/ndims) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/nullary](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/nullary) - -
- -
- -##### Bug Fixes - -- [`ba92c62`](https://github.com/stdlib-js/stdlib/commit/ba92c62429e3f7165f526c72ad37824283b459d7) - remove related section - -
- - - -
- -
- - - -
- -#### [@stdlib/ndarray/base/nullary-loop-interchange-order](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/nullary-loop-interchange-order) - -
- -
- -##### Features - -- [`c73cbe7`](https://github.com/stdlib-js/stdlib/commit/c73cbe76e440cf2e4211467d0db69d752409054d) - add support for returning dimension indices - -
- - - -
- -
- - - -
- -#### [@stdlib/ndarray/base/numel-dimension](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/numel-dimension) - -
- -
- -##### Features - -- [`6224528`](https://github.com/stdlib-js/stdlib/commit/62245282f95e98d2fe25e5aadc92f9d196ff25c5) - add `ndarray/base/numel-dimension` - -
- - - -
- -
- - - -
- -#### [@stdlib/ndarray/base/offset](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/offset) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/order](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/order) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/output-policy-enum2str](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/output-policy-enum2str) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/output-policy-resolve-enum](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/output-policy-resolve-enum) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/output-policy-resolve-str](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/output-policy-resolve-str) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/output-policy-str2enum](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/output-policy-str2enum) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/prepend-singleton-dimensions](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/prepend-singleton-dimensions) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/remove-singleton-dimensions](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/remove-singleton-dimensions) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/reverse](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/reverse) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/reverse-dimension](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/reverse-dimension) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/serialize-meta-](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/serialize-meta-) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/shape](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/shape) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/slice](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/slice) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/slice-assign](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/slice-assign) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/slice-dimension](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/slice-dimension) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/slice-dimension-from](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/slice-dimension-from) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/slice-dimension-to](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/slice-dimension-to) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/slice-from](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/slice-from) - -
- -
- -##### Bug Fixes - -- [`c8241c2`](https://github.com/stdlib-js/stdlib/commit/c8241c254b2ab5e5116f293ad2f8165c38ac9f4e) - ensure ability to return an empty slice in strict mode - -
- - - -
- -
- - - -
- -#### [@stdlib/ndarray/base/slice-to](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/slice-to) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/stride](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/stride) - -
- -
- -##### Features - -- [`b4aa572`](https://github.com/stdlib-js/stdlib/commit/b4aa5729cbf528faac2a81b2bf73d11f9f3ad39f) - add `ndarray/base/stride` - -
- - - -
- -
- - - -
- -#### [@stdlib/ndarray/base/strides](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/strides) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/sub2ind](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/sub2ind) - -
- -
- -##### Features - -- [`5363916`](https://github.com/stdlib-js/stdlib/commit/5363916b97a8b70622fff6d8663760d3582e4336) - add support for `normalize` index mode - -
- - - -
- -
- - - -
- -#### [@stdlib/ndarray/base/transpose](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/transpose) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/unary](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/unary) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/unary-by](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/unary-by) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/unary-loop-interchange-order](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/unary-loop-interchange-order) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/unary-output-dtype](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/unary-output-dtype) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/base/vind2](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/vind2) - -
- -
- -##### Features - -- [`274da55`](https://github.com/stdlib-js/stdlib/commit/274da55cfd025bbc1f1bf59d5c7e71ed12250ae4) - add support for `normalize` index mode - -
- - - -
- -
- - - -
- -#### [@stdlib/ndarray/base/zeros](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/zeros) - -
- -
- -##### Bug Fixes - -- [`def989d`](https://github.com/stdlib-js/stdlib/commit/def989d20c35d4cb0834e91324177abc8f522626) - resolve type declaration typo by removing stray lint directive - -
- - - -
- -
- - - -
- -#### [@stdlib/ndarray/base/zeros-like](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/base/zeros-like) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/broadcast-array](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/broadcast-array) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/broadcast-arrays](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/broadcast-arrays) - -
- -
- -##### Features - -- [`f3b79c9`](https://github.com/stdlib-js/stdlib/commit/f3b79c9696d2db950fb28874e4ca8d2562bd38f7) - add `ndarray/broadcast-arrays` - -
- - - -
- -
- - - -
- -#### [@stdlib/ndarray/ctor](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/ctor) - -
- -
- -##### Features - -- [`5c9d067`](https://github.com/stdlib-js/stdlib/commit/5c9d067cfaf35e20ff0dde4943f9e75a9ceb6037) - add tests and update docs for `normalize` index mode support - -
- - - -
- -
- - - -
- -#### [@stdlib/ndarray/dispatch](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/dispatch) - -
- -
- -##### Bug Fixes - -- [`f204b3f`](https://github.com/stdlib-js/stdlib/commit/f204b3fd61259968e39e91aa3579df62c6fda2ca) - resolve type declaration typo by removing stray lint directive [(#1133)](https://github.com/stdlib-js/stdlib/pull/1133) -- [`e3a8985`](https://github.com/stdlib-js/stdlib/commit/e3a898537dc0ff2e08c24fbb5a6e58c6394fcd0c) - move links - -
- - - -
- -
- - - -
- -#### [@stdlib/ndarray/dispatch-by](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/dispatch-by) - -
- -
- -##### Bug Fixes +##### Bug Fixes - [`8fccaaa`](https://github.com/stdlib-js/stdlib/commit/8fccaaa1d2ce14f2ee512f0ea307b53f9bd16211) - move links @@ -2161,18 +1556,6 @@ No changes reported for this release.
-
- -#### [@stdlib/ndarray/dtype](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/dtype) - -
- -No changes reported for this release.
- -
- - -
#### [@stdlib/ndarray/dtypes](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/dtypes) @@ -2325,18 +1708,6 @@ No changes reported for this release. -
- -#### [@stdlib/ndarray/from-scalar](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/from-scalar) - -
- -No changes reported for this release.
- -
- - -
#### [@stdlib/ndarray/ind2sub](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/ind2sub) @@ -2413,138 +1784,6 @@ No changes reported for this release. -
- -#### [@stdlib/ndarray/iter/column-entries](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/iter/column-entries) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/iter/columns](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/iter/columns) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/iter/entries](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/iter/entries) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/iter/indices](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/iter/indices) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/iter/matrices](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/iter/matrices) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/iter/matrix-entries](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/iter/matrix-entries) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/iter/row-entries](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/iter/row-entries) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/iter/rows](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/iter/rows) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/iter/to-array-each](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/iter/to-array-each) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/iter/values](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/iter/values) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/maybe-broadcast-array](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/maybe-broadcast-array) - -
- -No changes reported for this release.
- -
- - -
#### [@stdlib/ndarray/maybe-broadcast-arrays](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/maybe-broadcast-arrays) @@ -2567,42 +1806,6 @@ No changes reported for this release. -
- -#### [@stdlib/ndarray/mostly-safe-casts](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/mostly-safe-casts) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/ndims](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/ndims) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/numel](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/numel) - -
- -No changes reported for this release.
- -
- - -
#### [@stdlib/ndarray/numel-dimension](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/numel-dimension) @@ -2613,109 +1816,13 @@ No changes reported for this release. ##### Features -- [`1124fc6`](https://github.com/stdlib-js/stdlib/commit/1124fc69bbbda00bdaebf3b825795fecd06ce537) - add `ndarray/numel-dimension` - -
- - - - - -
- - - -
- -#### [@stdlib/ndarray/offset](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/offset) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/order](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/order) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/shape](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/shape) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/slice](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/slice) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/slice-assign](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/slice-assign) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/slice-dimension](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/slice-dimension) - -
- -No changes reported for this release.
- -
- - - -
- -#### [@stdlib/ndarray/slice-dimension-from](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/slice-dimension-from) - -
- -No changes reported for this release.
- -
- - - -
+- [`1124fc6`](https://github.com/stdlib-js/stdlib/commit/1124fc69bbbda00bdaebf3b825795fecd06ce537) - add `ndarray/numel-dimension` -#### [@stdlib/ndarray/slice-dimension-to](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/slice-dimension-to) +
-
+ -No changes reported for this release.
+
@@ -2787,18 +1894,6 @@ No changes reported for this release. -
- -#### [@stdlib/ndarray/strides](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/strides) - -
- -No changes reported for this release.
- -
- - -
#### [@stdlib/ndarray/sub2ind](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/sub2ind) @@ -2821,18 +1916,6 @@ No changes reported for this release. -
- -#### [@stdlib/ndarray/to-array](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/to-array) - -
- -No changes reported for this release.
- -
- - -
#### [@stdlib/ndarray/zeros](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/ndarray/zeros) @@ -2885,12 +1968,11 @@ No changes reported for this release. ### Contributors -A total of 4 people contributed to this release. Thank you to the following contributors: +A total of 3 people contributed to this release. Thank you to the following contributors: - Athan Reines - Daniel Killenberger - Philipp Burckhardt -- Philipp Burckhardt
@@ -3034,27 +2116,21 @@ A total of 4 people contributed to this release. Thank you to the following cont -## 0.1.1 (2023-11-08) - -
- -### Packages -
- - -
+ -### Commits +
-
+## 0.1.1 (2023-11-08) -
+No changes reported for this release.
- + + +
## 0.1.0 (2023-11-08) @@ -3119,17 +2195,15 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES - [`6cd4e38`](https://github.com/stdlib-js/stdlib/commit/6cd4e38150c7b040fa6266f71113b35944896167): rename aliases -- [`6cd4e38`](https://github.com/stdlib-js/stdlib/commit/6cd4e38150c7b040fa6266f71113b35944896167): rename aliases - To migrate, users should make the following name changes: - ndoffset => ndarrayOffset - ndshape => ndarrayShape - ndstrides => ndarrayStrides - This renaming allows for more consistent naming conventions with - other ndarray utility functions. + ndoffset => ndarrayOffset + ndshape => ndarrayShape + ndstrides => ndarrayStrides + This renaming allows for more consistent naming conventions with + other ndarray utility functions. -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3174,8 +2248,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3245,8 +2318,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3291,13 +2363,11 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. - [`1e78f7b`](https://github.com/stdlib-js/stdlib/commit/1e78f7b05c30245bd7ae22991ee021ae38a90a53): rename `isIntegralDataType` to `isIntegerDataType` -- [`1e78f7b`](https://github.com/stdlib-js/stdlib/commit/1e78f7b05c30245bd7ae22991ee021ae38a90a53): rename `isIntegralDataType` to `isIntegerDataType` - To migrate, users should update their usage accordingly. @@ -3331,8 +2401,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3367,8 +2436,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3402,8 +2470,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3437,8 +2504,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3472,8 +2538,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3507,8 +2572,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3542,8 +2606,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3578,8 +2641,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3613,8 +2675,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3649,8 +2710,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3684,8 +2744,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3720,8 +2779,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3800,8 +2858,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3835,8 +2892,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3870,8 +2926,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3906,8 +2961,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3942,8 +2996,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -3977,8 +3030,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4012,8 +3064,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4047,8 +3098,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4082,8 +3132,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4118,8 +3167,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4153,8 +3201,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4189,8 +3236,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4259,8 +3305,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4305,8 +3350,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4340,8 +3384,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4375,8 +3418,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4410,8 +3452,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4445,8 +3486,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4522,8 +3562,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4557,8 +3596,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4592,8 +3630,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4627,8 +3664,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4684,8 +3720,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4719,8 +3754,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4764,8 +3798,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4799,8 +3832,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4834,8 +3866,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4869,8 +3900,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4904,8 +3934,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4939,8 +3968,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -4975,8 +4003,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5021,8 +4048,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5066,8 +4092,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5156,16 +4181,14 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. -- [`171fc57`](https://github.com/stdlib-js/stdlib/commit/171fc571b800ceb803d7d925cd871fc9bbcd7e8c): add support for providing `order` argument -- [`171fc57`](https://github.com/stdlib-js/stdlib/commit/171fc571b800ceb803d7d925cd871fc9bbcd7e8c): must provide `order` argument. +- [`171fc57`](https://github.com/stdlib-js/stdlib/commit/171fc571b800ceb803d7d925cd871fc9bbcd7e8c): must provide `order` argument. - To migrate, users should explicitly provide an `order` argument as - a third argument when invoking `scalar2ndarray`. + a third argument when invoking `scalar2ndarray`.
@@ -5197,8 +4220,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5242,8 +4264,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5277,8 +4298,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5312,8 +4332,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5347,8 +4366,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5392,8 +4410,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5427,8 +4444,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5462,8 +4478,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5497,8 +4512,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5532,8 +4546,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5567,8 +4580,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5602,8 +4614,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5637,8 +4648,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5672,8 +4682,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5718,8 +4727,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5797,8 +4805,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5866,8 +4873,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5902,8 +4908,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5938,8 +4943,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -5973,8 +4977,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6063,8 +5066,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6099,8 +5101,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6135,8 +5136,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6171,8 +5171,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6216,8 +5215,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6261,8 +5259,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6350,8 +5347,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6407,8 +5403,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6442,8 +5437,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6686,8 +5680,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6721,8 +5714,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6756,8 +5748,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6791,8 +5782,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6826,8 +5816,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6873,8 +5862,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6908,8 +5896,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6943,8 +5930,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -6979,8 +5965,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7014,8 +5999,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7049,8 +6033,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7084,8 +6067,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7119,8 +6101,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7154,8 +6135,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7212,8 +6192,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7257,8 +6236,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7296,17 +6274,15 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. - [`d45a05b`](https://github.com/stdlib-js/stdlib/commit/d45a05b03973bf5b6a5e97cb4bc8c0aba3a68a12): rename `integral` to `integer` -- [`d45a05b`](https://github.com/stdlib-js/stdlib/commit/d45a05b03973bf5b6a5e97cb4bc8c0aba3a68a12): rename `integral` to `integer` - To migrate, users should update their code to use `integer` rather - than `integral` to refer to the policy/kind which includes both - signed and unsigned integer dtypes. + than `integral` to refer to the policy/kind which includes both + signed and unsigned integer dtypes.
@@ -7338,8 +6314,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7420,17 +6395,15 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. - [`d45a05b`](https://github.com/stdlib-js/stdlib/commit/d45a05b03973bf5b6a5e97cb4bc8c0aba3a68a12): rename `integral` to `integer` -- [`d45a05b`](https://github.com/stdlib-js/stdlib/commit/d45a05b03973bf5b6a5e97cb4bc8c0aba3a68a12): rename `integral` to `integer` - To migrate, users should update their code to use `integer` rather - than `integral` to refer to the policy/kind which includes both - signed and unsigned integer dtypes. + than `integral` to refer to the policy/kind which includes both + signed and unsigned integer dtypes.
@@ -7473,8 +6446,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7509,8 +6481,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7590,16 +6561,14 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. -- [`f07f1ce`](https://github.com/stdlib-js/stdlib/commit/f07f1cedbfa64e81f21fcea8bb4e7ccbc67bde35): add ndarray option support to `ndarray/from-scalar` -- [`f07f1ce`](https://github.com/stdlib-js/stdlib/commit/f07f1cedbfa64e81f21fcea8bb4e7ccbc67bde35): `dtype` argument replaced by `options` argument +- [`f07f1ce`](https://github.com/stdlib-js/stdlib/commit/f07f1cedbfa64e81f21fcea8bb4e7ccbc67bde35): `dtype` argument replaced by `options` argument - In order to migrate to the new API, users should replace any - `dtype` argument usage with an equivalent `options` argument. + `dtype` argument usage with an equivalent `options` argument.
@@ -7631,8 +6600,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7666,8 +6634,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -7997,8 +6964,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -8086,8 +7052,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -8187,8 +7152,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -8226,17 +7190,15 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. - [`d45a05b`](https://github.com/stdlib-js/stdlib/commit/d45a05b03973bf5b6a5e97cb4bc8c0aba3a68a12): rename `integral` to `integer` -- [`d45a05b`](https://github.com/stdlib-js/stdlib/commit/d45a05b03973bf5b6a5e97cb4bc8c0aba3a68a12): rename `integral` to `integer` - To migrate, users should update their code to use `integer` rather - than `integral` to refer to the policy/kind which includes both - signed and unsigned integer dtypes. + than `integral` to refer to the policy/kind which includes both + signed and unsigned integer dtypes.
@@ -8268,8 +7230,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -8303,8 +7264,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -8338,8 +7298,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -8559,8 +7518,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -8595,8 +7553,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -8641,8 +7598,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -8677,8 +7633,7 @@ A total of 4 people contributed to this release. Thank you to the following cont ##### BREAKING CHANGES -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. @@ -8701,44 +7656,38 @@ A total of 4 people contributed to this release. Thank you to the following cont ### BREAKING CHANGES - [`6cd4e38`](https://github.com/stdlib-js/stdlib/commit/6cd4e38150c7b040fa6266f71113b35944896167): rename aliases -- [`6cd4e38`](https://github.com/stdlib-js/stdlib/commit/6cd4e38150c7b040fa6266f71113b35944896167): rename aliases - To migrate, users should make the following name changes: - ndoffset => ndarrayOffset - ndshape => ndarrayShape - ndstrides => ndarrayStrides - This renaming allows for more consistent naming conventions with - other ndarray utility functions. + ndoffset => ndarrayOffset + ndshape => ndarrayShape + ndstrides => ndarrayStrides + This renaming allows for more consistent naming conventions with + other ndarray utility functions. -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version -- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 +- [`7ae5741`](https://github.com/stdlib-js/stdlib/commit/7ae574143c9716c82cea6cbf839a20b70a9cdfe0): update minimum TypeScript version to 4.1 - To migrate, users should upgrade their TypeScript version to at least version 4.1. - [`015ff99`](https://github.com/stdlib-js/stdlib/commit/015ff99285585b1a9267a8ad3f8c856e64742dfd): increase minimum TypeScript version - [`1e78f7b`](https://github.com/stdlib-js/stdlib/commit/1e78f7b05c30245bd7ae22991ee021ae38a90a53): rename `isIntegralDataType` to `isIntegerDataType` -- [`1e78f7b`](https://github.com/stdlib-js/stdlib/commit/1e78f7b05c30245bd7ae22991ee021ae38a90a53): rename `isIntegralDataType` to `isIntegerDataType` - To migrate, users should update their usage accordingly. - [`d45a05b`](https://github.com/stdlib-js/stdlib/commit/d45a05b03973bf5b6a5e97cb4bc8c0aba3a68a12): rename `integral` to `integer` -- [`d45a05b`](https://github.com/stdlib-js/stdlib/commit/d45a05b03973bf5b6a5e97cb4bc8c0aba3a68a12): rename `integral` to `integer` - To migrate, users should update their code to use `integer` rather - than `integral` to refer to the policy/kind which includes both - signed and unsigned integer dtypes. + than `integral` to refer to the policy/kind which includes both + signed and unsigned integer dtypes. -- [`f07f1ce`](https://github.com/stdlib-js/stdlib/commit/f07f1cedbfa64e81f21fcea8bb4e7ccbc67bde35): add ndarray option support to `ndarray/from-scalar` -- [`f07f1ce`](https://github.com/stdlib-js/stdlib/commit/f07f1cedbfa64e81f21fcea8bb4e7ccbc67bde35): `dtype` argument replaced by `options` argument +- [`f07f1ce`](https://github.com/stdlib-js/stdlib/commit/f07f1cedbfa64e81f21fcea8bb4e7ccbc67bde35): `dtype` argument replaced by `options` argument - In order to migrate to the new API, users should replace any - `dtype` argument usage with an equivalent `options` argument. + `dtype` argument usage with an equivalent `options` argument. -- [`171fc57`](https://github.com/stdlib-js/stdlib/commit/171fc571b800ceb803d7d925cd871fc9bbcd7e8c): add support for providing `order` argument -- [`171fc57`](https://github.com/stdlib-js/stdlib/commit/171fc571b800ceb803d7d925cd871fc9bbcd7e8c): must provide `order` argument. +- [`171fc57`](https://github.com/stdlib-js/stdlib/commit/171fc571b800ceb803d7d925cd871fc9bbcd7e8c): must provide `order` argument. - To migrate, users should explicitly provide an `order` argument as - a third argument when invoking `scalar2ndarray`. + a third argument when invoking `scalar2ndarray`.
@@ -9190,289 +8139,137 @@ A total of 3 people contributed to this release. Thank you to the following cont -## 0.0.13 (2021-08-22) - -
- -### Packages -
- - -
+ -### Commits +
-
+## 0.0.13 (2021-08-22) -
+No changes reported for this release.
- + -## 0.0.12 (2021-07-10) +
-
+## 0.0.12 (2021-07-10) -### Packages +No changes reported for this release.
- - -
- -### Commits - -
- -
- -
+ - +
## 0.0.11 (2021-07-07) -
- -### Packages +No changes reported for this release.
- - -
- -### Commits - -
- -
- -
+ - +
## 0.0.10 (2021-06-29) -
- -### Packages +No changes reported for this release.
- - -
- -### Commits - -
- -
- -
+ - +
## 0.0.9 (2021-06-27) -
- -### Packages +No changes reported for this release.
- - -
- -### Commits - -
- -
- -
+ - +
## 0.0.8 (2021-06-16) -
- -### Packages +No changes reported for this release.
- - -
- -### Commits - -
- -
- -
+ - +
## 0.0.7 (2021-06-15) -
- -### Packages +No changes reported for this release.
- - -
- -### Commits - -
- -
- -
+ - +
## 0.0.6 (2021-06-15) -
- -### Packages +No changes reported for this release.
- - -
- -### Commits - -
- -
- -
+ - +
## 0.0.5 (2021-06-13) -
- -### Packages +No changes reported for this release.
- - -
- -### Commits - -
- -
- -
+ - +
## 0.0.4 (2021-06-12) -
- -### Packages +No changes reported for this release.
- - -
- -### Commits - -
- -
- -
+ - +
## 0.0.3 (2021-06-12) -
- -### Packages +No changes reported for this release.
- - -
- -### Commits - -
- -
- -
+ - +
## 0.0.2 (2021-06-10) -
- -### Packages +No changes reported for this release.
- - -
- -### Commits - -
- -
- -
+ - +
## 0.0.1 (2021-06-10) -
- -### Packages - -
- - - -
- -### Commits - -
- -
+No changes reported for this release.
- + diff --git a/iter/interleave-subarrays/README.md b/iter/interleave-subarrays/README.md new file mode 100644 index 00000000..242dc2f9 --- /dev/null +++ b/iter/interleave-subarrays/README.md @@ -0,0 +1,169 @@ + + +# nditerInterleaveSubarrays + +> Create an iterator which iterates over interleaved subarrays. + + + +
+ +
+ + + + + +
+ +## Usage + +```javascript +var nditerInterleaveSubarrays = require( '@stdlib/ndarray/iter/interleave-subarrays' ); +``` + +#### nditerInterleaveSubarrays( arr, ndims ) + +Returns an iterator which iterates over interleaved subarrays. + +```javascript +var array = require( '@stdlib/ndarray/array' ); +var ndarray2array = require( '@stdlib/ndarray/to-array' ); + +var x = array( [ [ [ 1, 2 ], [ 3, 4 ] ], [ [ 5, 6 ], [ 7, 8 ] ] ] ); +// returns + +var iter = nditerInterleaveSubarrays( [ x, x ], 2 ); + +var v = iter.next().value; +// returns + +var arr = ndarray2array( v ); +// returns [ [ 1, 2 ], [ 3, 4 ] ] + +v = iter.next().value; +// returns + +arr = ndarray2array( v ); +// returns [ [ 1, 2 ], [ 3, 4 ] ] + +// ... +``` + +The returned [iterator][mdn-iterator-protocol] protocol-compliant object has the following properties: + +- **next**: function which returns an [iterator][mdn-iterator-protocol] protocol-compliant object containing the next iterated value (if one exists) assigned to a `value` property and a `done` property having a `boolean` value indicating whether the [iterator][mdn-iterator-protocol] is finished. +- **return**: function which closes an [iterator][mdn-iterator-protocol] and returns a single (optional) argument in an [iterator][mdn-iterator-protocol] protocol-compliant object. + +
+ + + + + +
+ +## Notes + +- All provided [`ndarrays`][@stdlib/ndarray/ctor] must be [broadcast compatible][@stdlib/ndarray/base/broadcast-shapes]. +- After broadcasting, each broadcasted input [`ndarray`][@stdlib/ndarray/ctor] must have at least `ndims+1` dimensions. +- For input [`ndarrays`][@stdlib/ndarray/ctor] supporting read-only views, the function returns **read-only** views of interleaved subarrays. As input [`ndarrays`][@stdlib/ndarray/ctor] may be broadcasted, a view is typically **not** contiguous. As more than one element of a returned view may refer to the same memory location, writing to a view may affect multiple elements. If you need to write to a subarray, copy the subarray **before** attempting mutation. +- If an environment supports `Symbol.iterator`, the returned iterator is iterable. +- A returned iterator does **not** copy a provided [`ndarray`][@stdlib/ndarray/ctor]. To ensure iterable reproducibility, copy the input [`ndarray`][@stdlib/ndarray/ctor] **before** creating an iterator. Otherwise, any changes to the contents of input [`ndarray`][@stdlib/ndarray/ctor] will be reflected in the returned iterator. +- In environments supporting `Symbol.iterator`, the function **explicitly** does **not** invoke an ndarray's `@@iterator` method, regardless of whether this method is defined. + +
+ + + + + +
+ +## Examples + + + +```javascript +var array = require( '@stdlib/ndarray/array' ); +var zeroTo = require( '@stdlib/array/base/zero-to' ); +var ndarray2array = require( '@stdlib/ndarray/to-array' ); +var nditerInterleaveSubarrays = require( '@stdlib/ndarray/iter/interleave-subarrays' ); + +// Define input arrays: +var x = array( zeroTo( 27 ), { + 'shape': [ 3, 3, 3 ] +}); +var y = array( zeroTo( 9 ), { + 'shape': [ 3, 3 ] +}); + +// Create an iterator for iterating over interleaved matrices: +var it = nditerInterleaveSubarrays( [ x, y ], 2 ); + +// Perform manual iteration... +var v; +while ( true ) { + v = it.next(); + if ( v.done ) { + break; + } + console.log( ndarray2array( v.value ) ); +} +``` + +
+ + + + + +
+ +
+ + + + + + + + + + + + + + diff --git a/iter/interleave-subarrays/benchmark/benchmark.js b/iter/interleave-subarrays/benchmark/benchmark.js new file mode 100644 index 00000000..289ecb60 --- /dev/null +++ b/iter/interleave-subarrays/benchmark/benchmark.js @@ -0,0 +1,85 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var bench = require( '@stdlib/bench' ); +var isIteratorLike = require( '@stdlib/assert/is-iterator-like' ); +var isndarrayLike = require( '@stdlib/assert/is-ndarray-like' ); +var array = require( './../../../array' ); +var pkg = require( './../package.json' ).name; +var nditerInterleaveSubarrays = require( './../lib' ); + + +// MAIN // + +bench( pkg, function benchmark( b ) { + var iter; + var x; + var i; + + x = array( [ [ [ 1, 2, 3, 4 ] ] ] ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + iter = nditerInterleaveSubarrays( [ x, x ], 2 ); + if ( typeof iter !== 'object' ) { + b.fail( 'should return an object' ); + } + } + b.toc(); + if ( !isIteratorLike( iter ) ) { + b.fail( 'should return an iterator protocol-compliant object' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); + +bench( pkg+'::iteration', function benchmark( b ) { + var xbuf; + var iter; + var x; + var z; + var i; + + xbuf = []; + xbuf.length = b.iterations + 1; + x = array( xbuf, { + 'shape': [ xbuf.length, 1, 1 ], + 'dtype': 'generic', + 'copy': false + }); + + iter = nditerInterleaveSubarrays( [ x, x ], 2 ); + + b.tic(); + for ( i = 0; i < b.iterations; i++ ) { + z = iter.next().value; + if ( typeof z !== 'object' ) { + b.fail( 'should return an ndarray' ); + } + } + b.toc(); + if ( !isndarrayLike( z ) ) { + b.fail( 'should return an ndarray' ); + } + b.pass( 'benchmark finished' ); + b.end(); +}); diff --git a/iter/interleave-subarrays/docs/repl.txt b/iter/interleave-subarrays/docs/repl.txt new file mode 100644 index 00000000..b2e307af --- /dev/null +++ b/iter/interleave-subarrays/docs/repl.txt @@ -0,0 +1,54 @@ + +{{alias}}( arr, ndims ) + Returns an iterator which iterates over interleaved subarrays. + + For input ndarrays supporting read-only views, the function returns + *read-only* views of interleaved subarrays. As input ndarrays may be + broadcasted, a view is typically *not* contiguous. As more than one element + of a returned view may refer to the same memory location, writing to a view + may affect multiple elements. If you need to write to a subarray, copy the + subarray before attempting mutation. + + The function throws an error if a provided broadcast-incompatible ndarrays. + + If an environment supports Symbol.iterator, the returned iterator is + iterable. + + If an environment supports Symbol.iterator, the function explicitly does not + invoke an ndarray's `@@iterator` method, regardless of whether this method + is defined. + + Parameters + ---------- + arr: ArrayLike + Input ndarrays. All ndarrays must be broadcast-compatible. After + broadcasting, each broadcasted input ndarray must have at least + `ndims+1` dimensions. + + ndims: integer + Number of dimensions to stack after broadcasting. + + Returns + ------- + iterator: Object + Iterator. + + iterator.next(): Function + Returns an iterator protocol-compliant object containing the next + iterated value (if one exists) and a boolean flag indicating whether the + iterator is finished. + + iterator.return( [value] ): Function + Finishes an iterator and returns a provided value. + + Examples + -------- + > var x = {{alias:@stdlib/ndarray/array}}( [ [ [ 1, 2 ], [ 3, 4 ] ] ] ); + > var it = {{alias}}( [ x, x ], 2 ); + > var v = it.next().value; + > {{alias:@stdlib/ndarray/to-array}}( v ) + [ [ 1, 2 ], [ 3, 4 ] ] + + See Also + -------- + diff --git a/iter/interleave-subarrays/docs/types/index.d.ts b/iter/interleave-subarrays/docs/types/index.d.ts new file mode 100644 index 00000000..21eabda2 --- /dev/null +++ b/iter/interleave-subarrays/docs/types/index.d.ts @@ -0,0 +1,72 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/// + +import { TypedIterator, TypedIterableIterator } from '@stdlib/types/iter'; +import { typedndarray } from '@stdlib/types/ndarray'; +import { ArrayLike } from '@stdlib/types/array'; + +// Define a union type representing both iterable and non-iterable iterators: +type Iterator = TypedIterator | TypedIterableIterator; + +/** +* Returns an iterator which iterates over interleaved subarrays. +* +* ## Notes +* +* - The function throws an error if a provided broadcast-incompatible ndarrays. +* - For input ndarrays supporting read-only views, the function returns *read-only* views of interleaved subarrays. As input ndarrays may be broadcasted, a view is typically *not* contiguous. As more than one element of a returned view may refer to the same memory location, writing to a view may affect multiple elements. If you need to write to a subarray, copy the subarray before attempting mutation. +* +* @param arr - input ndarrays +* @param ndims - number of dimensions to stack +* @returns iterator +* +* @example +* var array = require( '@stdlib/ndarray/array' ); +* var ndarray2array = require( '@stdlib/ndarray/to-array' ); +* +* var x = array( [ [ [ 1, 2 ], [ 3, 4 ] ], [ [ 5, 6 ], [ 7, 8 ] ] ], { +* 'dtype': 'float64' +* }); +* // returns +* +* var iter = nditerInterleaveSubarrays( [ x, x ], 2 ); +* +* var v = iter.next().value; +* // returns +* +* var arr = ndarray2array( v ); +* // returns [ [ 1, 2 ], [ 3, 4 ] ] +* +* v = iter.next().value; +* // returns +* +* arr = ndarray2array( v ); +* // returns [ [ 1, 2 ], [ 3, 4 ] ] +* +* // ... +*/ +declare function nditerInterleaveSubarrays( arr: ArrayLike>, ndims: number ): Iterator>; + + +// EXPORTS // + +export = nditerInterleaveSubarrays; diff --git a/iter/interleave-subarrays/docs/types/test.ts b/iter/interleave-subarrays/docs/types/test.ts new file mode 100644 index 00000000..65886439 --- /dev/null +++ b/iter/interleave-subarrays/docs/types/test.ts @@ -0,0 +1,79 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import zeros = require( './../../../../zeros' ); +import nditerInterleaveSubarrays = require( './index' ); + + +// TESTS // + +// The function returns an iterator... +{ + const x = zeros( [ 2, 2, 2 ] ); + + nditerInterleaveSubarrays( [ x, x ], 2 ); // $ExpectType Iterator> +} + +// The compiler throws an error if the function is provided a first argument which is not an array of ndarrays... +{ + nditerInterleaveSubarrays( '123', 2 ); // $ExpectError + nditerInterleaveSubarrays( 123, 2 ); // $ExpectError + nditerInterleaveSubarrays( true, 2 ); // $ExpectError + nditerInterleaveSubarrays( false, 2 ); // $ExpectError + nditerInterleaveSubarrays( null, 2 ); // $ExpectError + nditerInterleaveSubarrays( undefined, 2 ); // $ExpectError + nditerInterleaveSubarrays( {}, 2 ); // $ExpectError + nditerInterleaveSubarrays( [ '5' ], 2 ); // $ExpectError + nditerInterleaveSubarrays( ( x: number ): number => x, 2 ); // $ExpectError +} + +// The compiler throws an error if the function is provided a second argument which is not a number... +{ + const x = zeros( [ 2, 2, 2 ] ); + + nditerInterleaveSubarrays( [ x, x ], '123' ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], true ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], false ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], null ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], undefined ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], {} ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], [] ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided a third argument which is not an object... +{ + const x = zeros( [ 2, 2, 2 ] ); + + nditerInterleaveSubarrays( [ x, x ], 2, 'abc' ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], 2, 123 ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], 2, true ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], 2, false ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], 2, null ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], 2, [] ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], 2, ( x: number ): number => x ); // $ExpectError +} + +// The compiler throws an error if the function is provided an unsupported number of arguments... +{ + const x = zeros( [ 2, 2, 2 ] ); + + nditerInterleaveSubarrays(); // $ExpectError + nditerInterleaveSubarrays( [ x, x ] ); // $ExpectError + nditerInterleaveSubarrays( [ x, x ], 2, {} ); // $ExpectError +} diff --git a/iter/interleave-subarrays/examples/index.js b/iter/interleave-subarrays/examples/index.js new file mode 100644 index 00000000..a8f52eee --- /dev/null +++ b/iter/interleave-subarrays/examples/index.js @@ -0,0 +1,45 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var array = require( './../../../array' ); +var zeroTo = require( '@stdlib/array/base/zero-to' ); +var ndarray2array = require( './../../../to-array' ); +var nditerInterleaveSubarrays = require( './../lib' ); + +// Define input arrays: +var x = array( zeroTo( 27 ), { + 'shape': [ 3, 3, 3 ] +}); +var y = array( zeroTo( 9 ), { + 'shape': [ 3, 3 ] +}); + +// Create an iterator for iterating over interleaved matrices: +var it = nditerInterleaveSubarrays( [ x, y ], 2 ); + +// Perform manual iteration... +var v; +while ( true ) { + v = it.next(); + if ( v.done ) { + break; + } + console.log( ndarray2array( v.value ) ); +} diff --git a/iter/interleave-subarrays/lib/index.js b/iter/interleave-subarrays/lib/index.js new file mode 100644 index 00000000..8a618a24 --- /dev/null +++ b/iter/interleave-subarrays/lib/index.js @@ -0,0 +1,58 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* Create an iterator which iterates over interleaved subarrays. +* +* @module @stdlib/ndarray/iter/interleave-subarrays +* +* @example +* var array = require( '@stdlib/ndarray/array' ); +* var ndarray2array = require( '@stdlib/ndarray/to-array' ); +* var nditerInterleaveSubarrays = require( '@stdlib/ndarray/iter/interleave-subarrays' ); +* +* var x = array( [ [ [ 1, 2 ], [ 3, 4 ] ], [ [ 5, 6 ], [ 7, 8 ] ] ] ); +* // returns +* +* var iter = nditerInterleaveSubarrays( [ x, x ], 2 ); +* +* var v = iter.next().value; +* // returns +* +* var arr = ndarray2array( v ); +* // returns [ [ 1, 2 ], [ 3, 4 ] ] +* +* v = iter.next().value; +* // returns +* +* arr = ndarray2array( v ); +* // returns [ [ 1, 2 ], [ 3, 4 ] ] +* +* // ... +*/ + +// MODULES // + +var main = require( './main.js' ); + + +// EXPORTS // + +module.exports = main; diff --git a/iter/interleave-subarrays/lib/main.js b/iter/interleave-subarrays/lib/main.js new file mode 100644 index 00000000..d429a79b --- /dev/null +++ b/iter/interleave-subarrays/lib/main.js @@ -0,0 +1,221 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' ); +var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' ); +var isPositiveInteger = require( '@stdlib/assert/is-positive-integer' ).isPrimitive; +var iteratorSymbol = require( '@stdlib/symbol/iterator' ); +var zeros = require( '@stdlib/array/base/zeros' ); +var getShape = require( './../../../shape' ); +var numel = require( './../../../base/numel' ); +var ndslice = require( './../../../base/slice' ); +var maybeBroadcastArrays = require( './../../../maybe-broadcast-arrays' ); +var nextCartesianIndex = require( './../../../base/next-cartesian-index' ).assign; +var args2multislice = require( '@stdlib/slice/base/args2multislice' ); +var format = require( '@stdlib/string/format' ); + + +// MAIN // + +/** +* Returns an iterator which iterates over interleaved subarrays. +* +* @param {ArrayLikeObject} arrays - input ndarrays +* @param {PositiveInteger} ndims - number of dimensions to stack after broadcasting +* @throws {TypeError} first argument must be an array of ndarrays +* @throws {TypeError} each ndarray after broadcasting must have at least `ndims+1` dimensions +* @throws {TypeError} second argument must be a positive integer +* @throws {Error} input ndarrays must be broadcast-compatible +* @returns {Iterator} iterator +* +* @example +* var array = require( '@stdlib/ndarray/array' ); +* var ndarray2array = require( '@stdlib/ndarray/to-array' ); +* +* var x = array( [ [ [ 1, 2 ], [ 3, 4 ] ], [ [ 5, 6 ], [ 7, 8 ] ] ] ); +* // returns +* +* var iter = nditerInterleaveSubarrays( [ x, x ], 2 ); +* +* var v = iter.next().value; +* // returns +* +* var arr = ndarray2array( v ); +* // returns [ [ 1, 2 ], [ 3, 4 ] ] +* +* v = iter.next().value; +* // returns +* +* arr = ndarray2array( v ); +* // returns [ [ 1, 2 ], [ 3, 4 ] ] +* +* // ... +*/ +function nditerInterleaveSubarrays( arrays, ndims ) { + var shape; + var iter; + var list; + var FLG; + var idx; + var dim; + var tmp; + var S; + var M; + var N; + var K; + var i; + var j; + var k; + + if ( !isArrayLikeObject( arrays ) ) { + throw new TypeError( format( 'invalid argument. First argument must be an array of ndarrays. Value: `%s`.', arrays ) ); + } + if ( !isPositiveInteger( ndims ) ) { + throw new TypeError( format( 'invalid argument. Second argument must be a positive integer. Value: `%s`.', ndims ) ); + } + // Attempt to broadcast the input ndarrays... + try { + list = maybeBroadcastArrays( arrays ); + } catch ( err ) { // eslint-disable-line no-unused-vars + throw new TypeError( format( 'invalid argument. First argument must be an array of ndarrays which are broadcast-compatible. Value: `%s`.', arrays ) ); + } + K = list.length; + + // Retrieve input array meta data: + shape = getShape( list[ 0 ] ); + M = shape.length; + + // Ensure that each broadcasted input array has sufficient dimensions... + if ( M <= ndims ) { + throw new TypeError( format( 'invalid argument. First argument must be an array of ndarrays having at least %d dimensions after broadcasting.', ndims+1 ) ); + } + // Check whether the broadcasted shape is empty... + N = numel( shape ); + if ( N === 0 ) { + FLG = true; + } + // Compute the number of subarrays across all stacks of subarrays: + dim = M - ndims - 1; + for ( i = dim+1; i < M; i++ ) { + N /= shape[ i ]; + } + N *= K; + S = shape[ dim ]; + + // Initialize index arrays for generating slices... + idx = []; + for ( i = 0; i < K; i++ ) { + tmp = zeros( M ); + + // Set the last `ndims` elements to `null` to indicate that we want a full "slice" for the last `ndims` dimensions: + for ( j = dim+1; j < M; j++ ) { + tmp[ j ] = null; + } + idx.push( tmp ); + } + // Initialize counters: + i = -1; + k = -1; + + // Create an iterator protocol-compliant object: + iter = {}; + setReadOnly( iter, 'next', next ); + setReadOnly( iter, 'return', end ); + + // If an environment supports `Symbol.iterator`, make the iterator iterable: + if ( iteratorSymbol ) { + setReadOnly( iter, iteratorSymbol, factory ); + } + return iter; + + /** + * Returns an iterator protocol-compliant object containing the next iterated value. + * + * @private + * @returns {Object} iterator protocol-compliant object + */ + function next() { + var ibuf; + var s; + var j; + + i += 1; + if ( FLG || i >= N ) { + return { + 'done': true + }; + } + k = ( k+1 ) % K; + ibuf = idx[ k ]; + + // Create a multi-slice for the current view: + s = args2multislice( ibuf ); + + // Update the index array: + j = ( ibuf[ dim ] + 1 ) % S; + ibuf[ dim ] = j; + if ( j === 0 ) { + // If we've iterated over all the subarrays in the current stack, move on to the next set of subarrays: + ibuf = nextCartesianIndex( shape, 'row-major', ibuf, dim-1, ibuf ); + } + // Return the next slice: + return { + 'value': ndslice( list[ k ], s, true, false ), + 'done': false + }; + } + + /** + * Finishes an iterator. + * + * @private + * @param {*} [value] - value to return + * @returns {Object} iterator protocol-compliant object + */ + function end( value ) { + FLG = true; + if ( arguments.length ) { + return { + 'value': value, + 'done': true + }; + } + return { + 'done': true + }; + } + + /** + * Returns a new iterator. + * + * @private + * @returns {Iterator} iterator + */ + function factory() { + return nditerInterleaveSubarrays( arrays, ndims ); + } +} + + +// EXPORTS // + +module.exports = nditerInterleaveSubarrays; diff --git a/iter/interleave-subarrays/package.json b/iter/interleave-subarrays/package.json new file mode 100644 index 00000000..21670bad --- /dev/null +++ b/iter/interleave-subarrays/package.json @@ -0,0 +1,73 @@ +{ + "name": "@stdlib/ndarray/iter/interleave-subarrays", + "version": "0.0.0", + "description": "Create an iterator which iterates over interleaved subarrays.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "benchmark": "./benchmark", + "doc": "./docs", + "example": "./examples", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdtypes", + "utils", + "util", + "utilities", + "utility", + "ndarray", + "tensor", + "multidimensional", + "matrix", + "stack", + "iterator", + "iterate", + "iteration", + "iter", + "view", + "interleave", + "subarray", + "concat", + "concatenate" + ] +} diff --git a/iter/interleave-subarrays/test/test.js b/iter/interleave-subarrays/test/test.js new file mode 100644 index 00000000..015b6f70 --- /dev/null +++ b/iter/interleave-subarrays/test/test.js @@ -0,0 +1,501 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var proxyquire = require( 'proxyquire' ); +var iteratorSymbol = require( '@stdlib/symbol/iterator' ); +var isndarrayLike = require( '@stdlib/assert/is-ndarray-like' ); +var isReadOnly = require( './../../../base/assert/is-read-only' ); +var array = require( './../../../array' ); +var zeros = require( './../../../zeros' ); +var slice = require( './../../../slice' ); +var ndarray2array = require( './../../../to-array' ); +var nditerInterleaveSubarrays = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a function', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof nditerInterleaveSubarrays, 'function', 'main export is a function' ); + t.end(); +}); + +tape( 'the function throws an error if provided a first argument which is not an array of ndarrays', function test( t ) { + var values; + var i; + + values = [ + '5', + 5, + NaN, + true, + false, + null, + void 0, + {}, + [ '5' ], + function noop() {} + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[i] ), TypeError, 'throws an error when provided '+values[i] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + nditerInterleaveSubarrays( value, 2 ); + }; + } +}); + +tape( 'the function throws an error if provided a second argument which is not a positive integer', function test( t ) { + var values; + var i; + + values = [ + '5', + 3.14, + NaN, + true, + false, + null, + void 0, + {}, + [], + function noop() {} + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[i] ), TypeError, 'throws an error when provided '+values[i] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + var x = zeros( [ 2, 2, 2 ] ); + nditerInterleaveSubarrays( [ x, x ], value ); + }; + } +}); + +tape( 'the function throws an error if provided an ndarray having fewer than `ndims+1` dimensions after broadcasting', function test( t ) { + var values; + var i; + + values = [ + zeros( [] ), + zeros( [ 2 ] ), + zeros( [ 2, 2 ] ) + ]; + + for ( i = 0; i < values.length; i++ ) { + t.throws( badValue( values[i] ), TypeError, 'throws an error when provided '+values[i] ); + } + t.end(); + + function badValue( value ) { + return function badValue() { + nditerInterleaveSubarrays( [ value, value ], 2 ); + }; + } +}); + +tape( 'the function returns an iterator protocol-compliant object (ndims=3, ndims=1)', function test( t ) { + var expected; + var it; + var e; + var x; + var y; + var r; + var i; + + x = array([ + [ + [ 1, 2 ], + [ 3, 4 ] + ], + [ + [ 5, 6 ], + [ 7, 8 ] + ] + ]); + y = array([ + [ + [ 9, 10 ], + [ 11, 12 ] + ], + [ + [ 13, 14 ], + [ 15, 16 ] + ] + ]); + expected = [ + { + 'value': slice( x, 0, 0, null ), + 'done': false + }, + { + 'value': slice( y, 0, 0, null ), + 'done': false + }, + { + 'value': slice( x, 0, 1, null ), + 'done': false + }, + { + 'value': slice( y, 0, 1, null ), + 'done': false + }, + { + 'value': slice( x, 1, 0, null ), + 'done': false + }, + { + 'value': slice( y, 1, 0, null ), + 'done': false + }, + { + 'value': slice( x, 1, 1, null ), + 'done': false + }, + { + 'value': slice( y, 1, 1, null ), + 'done': false + }, + { + 'done': true + } + ]; + + it = nditerInterleaveSubarrays( [ x, y ], 1 ); + t.strictEqual( it.next.length, 0, 'has zero arity' ); + + for ( i = 0; i < expected.length; i++ ) { + r = it.next(); + e = expected[ i ]; + if ( e.value === void 0 ) { + t.deepEqual( r, e, 'returns expected value' ); + } else { + t.strictEqual( isndarrayLike( r.value ), true, 'returns expected value' ); + t.deepEqual( ndarray2array( r.value ), ndarray2array( e.value ), 'returns expected value' ); + t.strictEqual( isReadOnly( r.value ), true, 'returns expected value' ); + t.strictEqual( r.done, e.done, 'returns expected value' ); + } + } + t.end(); +}); + +tape( 'the function returns an iterator protocol-compliant object (ndims=3, ndims=2)', function test( t ) { + var expected; + var it; + var e; + var x; + var y; + var r; + var i; + + x = array( [ [ [ 1, 2 ], [ 3, 4 ] ], [ [ 5, 6 ], [ 7, 8 ] ] ] ); + y = array( [ [ [ 9, 10 ], [ 11, 12 ] ], [ [ 13, 14 ], [ 15, 16 ] ] ] ); + expected = [ + { + 'value': slice( x, 0, null, null ), + 'done': false + }, + { + 'value': slice( y, 0, null, null ), + 'done': false + }, + { + 'value': slice( x, 1, null, null ), + 'done': false + }, + { + 'value': slice( y, 1, null, null ), + 'done': false + }, + { + 'done': true + } + ]; + + it = nditerInterleaveSubarrays( [ x, y ], 2 ); + t.strictEqual( it.next.length, 0, 'has zero arity' ); + + for ( i = 0; i < expected.length; i++ ) { + r = it.next(); + e = expected[ i ]; + if ( e.value === void 0 ) { + t.deepEqual( r, e, 'returns expected value' ); + } else { + t.strictEqual( isndarrayLike( r.value ), true, 'returns expected value' ); + t.deepEqual( ndarray2array( r.value ), ndarray2array( e.value ), 'returns expected value' ); + t.strictEqual( isReadOnly( r.value ), true, 'returns expected value' ); + t.strictEqual( r.done, e.done, 'returns expected value' ); + } + } + t.end(); +}); + +tape( 'the function returns an iterator protocol-compliant object (ndims=4)', function test( t ) { + var expected; + var xbuf; + var ybuf; + var it; + var e; + var x; + var y; + var r; + var i; + + xbuf = [ + [ + [ + [ 1, 2 ], + [ 3, 4 ] + ], + [ + [ 5, 6 ], + [ 7, 8 ] + ] + ], + [ + [ + [ 1, 2 ], + [ 3, 4 ] + ], + [ + [ 5, 6 ], + [ 7, 8 ] + ] + ] + ]; + ybuf = [ + [ + [ + [ 9, 10 ], + [ 11, 12 ] + ], + [ + [ 13, 14 ], + [ 15, 16 ] + ] + ], + [ + [ + [ 9, 10 ], + [ 11, 12 ] + ], + [ + [ 13, 14 ], + [ 15, 16 ] + ] + ] + ]; + x = array( xbuf ); + y = array( ybuf ); + expected = [ + { + 'value': slice( x, 0, 0, null, null ), + 'done': false + }, + { + 'value': slice( y, 0, 0, null, null ), + 'done': false + }, + { + 'value': slice( x, 0, 1, null, null ), + 'done': false + }, + { + 'value': slice( y, 0, 1, null, null ), + 'done': false + }, + { + 'value': slice( x, 1, 0, null, null ), + 'done': false + }, + { + 'value': slice( y, 1, 0, null, null ), + 'done': false + }, + { + 'value': slice( x, 1, 1, null, null ), + 'done': false + }, + { + 'value': slice( y, 1, 1, null, null ), + 'done': false + }, + { + 'done': true + } + ]; + + it = nditerInterleaveSubarrays( [ x, y ], 2 ); + t.strictEqual( it.next.length, 0, 'has zero arity' ); + + for ( i = 0; i < expected.length; i++ ) { + r = it.next(); + e = expected[ i ]; + if ( e.value === void 0 ) { + t.deepEqual( r, e, 'returns expected value' ); + } else { + t.strictEqual( isndarrayLike( r.value ), true, 'returns expected value' ); + t.deepEqual( ndarray2array( r.value ), ndarray2array( e.value ), 'returns expected value' ); + t.strictEqual( isReadOnly( r.value ), true, 'returns expected value' ); + t.strictEqual( r.done, e.done, 'returns expected value' ); + } + } + t.end(); +}); + +tape( 'the function returns an iterator which does not iterate over empty arrays', function test( t ) { + var expected; + var it; + var e; + var x; + var r; + var i; + + x = zeros( [ 2, 0, 2, 2, 2 ] ); + expected = [ + { + 'done': true + }, + { + 'done': true + }, + { + 'done': true + } + ]; + + it = nditerInterleaveSubarrays( [ x, x ], 2 ); + t.strictEqual( it.next.length, 0, 'has zero arity' ); + + for ( i = 0; i < expected.length; i++ ) { + r = it.next(); + e = expected[ i ]; + t.deepEqual( r, e, 'returns expected value' ); + } + t.end(); +}); + +tape( 'the returned iterator has a `return` method for closing an iterator (no argument)', function test( t ) { + var it; + var x; + var r; + + x = zeros( [ 2, 2, 2 ] ); + it = nditerInterleaveSubarrays( [ x, x ], 2 ); + + r = it.next(); + t.strictEqual( isndarrayLike( r.value ), true, 'returns expected value' ); + t.strictEqual( r.done, false, 'returns expected value' ); + + r = it.next(); + t.strictEqual( isndarrayLike( r.value ), true, 'returns expected value' ); + t.strictEqual( r.done, false, 'returns expected value' ); + + r = it.return(); + t.strictEqual( r.value, void 0, 'returns expected value' ); + t.strictEqual( r.done, true, 'returns expected value' ); + + r = it.next(); + t.strictEqual( r.value, void 0, 'returns expected value' ); + t.strictEqual( r.done, true, 'returns expected value' ); + + t.end(); +}); + +tape( 'the returned iterator has a `return` method for closing an iterator (argument)', function test( t ) { + var it; + var x; + var r; + + x = zeros( [ 2, 2, 2 ] ); + it = nditerInterleaveSubarrays( [ x, x ], 2 ); + + r = it.next(); + t.strictEqual( isndarrayLike( r.value ), true, 'returns expected value' ); + t.strictEqual( r.done, false, 'returns expected value' ); + + r = it.next(); + t.strictEqual( isndarrayLike( r.value ), true, 'returns expected value' ); + t.strictEqual( r.done, false, 'returns expected value' ); + + r = it.return( 'finished' ); + t.strictEqual( r.value, 'finished', 'returns expected value' ); + t.strictEqual( r.done, true, 'returns expected value' ); + + r = it.next(); + t.strictEqual( r.value, void 0, 'returns expected value' ); + t.strictEqual( r.done, true, 'returns expected value' ); + + t.end(); +}); + +tape( 'if an environment supports `Symbol.iterator`, the returned iterator is iterable', function test( t ) { + var nditerInterleaveSubarrays; + var it1; + var it2; + var x; + var i; + + nditerInterleaveSubarrays = proxyquire( './../lib/main.js', { + '@stdlib/symbol/iterator': '__ITERATOR_SYMBOL__' + }); + + x = array( [ [ [ 1, 2 ], [ 3, 4 ] ] ] ); + + it1 = nditerInterleaveSubarrays( [ x, x ], 2 ); + t.strictEqual( typeof it1[ '__ITERATOR_SYMBOL__' ], 'function', 'has method' ); + t.strictEqual( it1[ '__ITERATOR_SYMBOL__' ].length, 0, 'has zero arity' ); + + it2 = it1[ '__ITERATOR_SYMBOL__' ](); + t.strictEqual( typeof it2, 'object', 'returns an object' ); + t.strictEqual( typeof it2.next, 'function', 'has method' ); + t.strictEqual( typeof it2.return, 'function', 'has method' ); + + for ( i = 0; i < x.shape[ 0 ]; i++ ) { + t.deepEqual( ndarray2array( it2.next().value ), ndarray2array( it1.next().value ), 'returns expected value' ); + } + t.end(); +}); + +tape( 'if an environment does not support `Symbol.iterator`, the returned iterator is not "iterable"', function test( t ) { + var nditerInterleaveSubarrays; + var it; + var x; + + nditerInterleaveSubarrays = proxyquire( './../lib/main.js', { + '@stdlib/symbol/iterator': false + }); + + x = zeros( [ 2, 2, 2 ] ); + it = nditerInterleaveSubarrays( [ x, x ], 2 ); + t.strictEqual( it[ iteratorSymbol ], void 0, 'does not have property' ); + + t.end(); +}); diff --git a/iter/lib/index.js b/iter/lib/index.js index 7e9f215b..1ca1bb86 100644 --- a/iter/lib/index.js +++ b/iter/lib/index.js @@ -72,6 +72,15 @@ setReadOnly( ns, 'nditerEntries', require( './../../iter/entries' ) ); */ setReadOnly( ns, 'nditerIndices', require( './../../iter/indices' ) ); +/** +* @name nditerInterleaveSubarrays +* @memberof ns +* @readonly +* @type {Function} +* @see {@link module:@stdlib/ndarray/iter/interleave-subarrays} +*/ +setReadOnly( ns, 'nditerInterleaveSubarrays', require( './../../iter/interleave-subarrays' ) ); + /** * @name nditerMatrices * @memberof ns