From d35d67e28c35d4cf18382fded544430520af8af2 Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 22 Sep 2024 08:05:29 +0000 Subject: [PATCH] Auto-generated commit --- CHANGELOG.md | 7 ++++++- base/reverse-dimension/lib/main.js | 4 ++-- base/slice-dimension-from/lib/main.js | 4 ++-- base/slice-dimension-to/lib/main.js | 4 ++-- base/slice-dimension/lib/main.js | 4 ++-- iter/select-dimension/lib/main.js | 4 ++-- 6 files changed, 16 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cedea3d..ee97dbab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-09-21) +## Unreleased (2024-09-22)
@@ -145,6 +145,11 @@ A total of 3 people contributed to this release. Thank you to the following cont
+- [`37ef5f4`](https://github.com/stdlib-js/stdlib/commit/37ef5f4f43d4fe03643b693a40b166420cbb07fd) - **refactor:** use dedicated array utility _(by Athan Reines)_ +- [`2e00b1f`](https://github.com/stdlib-js/stdlib/commit/2e00b1f79b968e3436fbb2cf406b308029cd7156) - **refactor:** use dedicated array utility _(by Athan Reines)_ +- [`bcc9d29`](https://github.com/stdlib-js/stdlib/commit/bcc9d29f11ad54bd388625ae257668304d829a5c) - **refactor:** use dedicated array utility _(by Athan Reines)_ +- [`8436f67`](https://github.com/stdlib-js/stdlib/commit/8436f675a80d4824d8571b2b1ce91c5c17e3938d) - **refactor:** use dedicated array utility _(by Athan Reines)_ +- [`b675172`](https://github.com/stdlib-js/stdlib/commit/b675172498c9449ca0e957f4af9694b8bc0f8dc6) - **refactor:** use dedicated array utility _(by Athan Reines)_ - [`6e9f42e`](https://github.com/stdlib-js/stdlib/commit/6e9f42e4c912485d9896eaa16c88b70fd3688e97) - **docs:** harmonize list formatting in repl.txt and ensure starting newline _(by Philipp Burckhardt)_ - [`f387603`](https://github.com/stdlib-js/stdlib/commit/f387603e739f88a38af3263ce6ff675ad903ee8c) - **docs:** consistently use declarative instead of imperative sentences outside of intros _(by Philipp Burckhardt)_ - [`95ef049`](https://github.com/stdlib-js/stdlib/commit/95ef04997f2f0f98406dbdf59c5c0ff757c5637a) - **docs:** fix grammar _(by Athan Reines)_ diff --git a/base/reverse-dimension/lib/main.js b/base/reverse-dimension/lib/main.js index 2fa9a0d9..9fcc89a2 100644 --- a/base/reverse-dimension/lib/main.js +++ b/base/reverse-dimension/lib/main.js @@ -23,7 +23,7 @@ var args2multislice = require( '@stdlib/slice/base/args2multislice' ); var Slice = require( '@stdlib/slice/ctor' ); var slice = require( './../../../base/slice' ); -var filled = require( '@stdlib/array/base/filled' ); +var nulls = require( '@stdlib/array/base/nulls' ); var ndims = require( './../../../base/ndims' ); var format = require( '@stdlib/string/format' ); @@ -90,7 +90,7 @@ function reverseDimension( x, dim, writable ) { throw new RangeError( format( 'invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.', N, dim ) ); } // Define a list of MultiSlice constructor arguments: - args = filled( null, N ); + args = nulls( N ); args[ d ] = new Slice( null, null, -1 ); // Return a new array view: diff --git a/base/slice-dimension-from/lib/main.js b/base/slice-dimension-from/lib/main.js index b4697ca0..3460eb0d 100644 --- a/base/slice-dimension-from/lib/main.js +++ b/base/slice-dimension-from/lib/main.js @@ -25,7 +25,7 @@ var Slice = require( '@stdlib/slice/ctor' ); var ndims = require( './../../../base/ndims' ); var slice = require( './../../../base/slice' ); var normalizeIndex = require( './../../../base/normalize-index' ); -var filled = require( '@stdlib/array/base/filled' ); +var nulls = require( '@stdlib/array/base/nulls' ); var format = require( '@stdlib/string/format' ); @@ -89,7 +89,7 @@ function sliceDimensionFrom( x, dim, start, strict, writable ) { throw new RangeError( format( 'invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.', N, dim ) ); } // Define a list of slice arguments: - args = filled( null, N ); + args = nulls( N ); args[ d ] = new Slice( start, null ); // Return a new array view: diff --git a/base/slice-dimension-to/lib/main.js b/base/slice-dimension-to/lib/main.js index c12c24f2..01ddc48e 100644 --- a/base/slice-dimension-to/lib/main.js +++ b/base/slice-dimension-to/lib/main.js @@ -25,7 +25,7 @@ var Slice = require( '@stdlib/slice/ctor' ); var ndims = require( './../../../base/ndims' ); var slice = require( './../../../base/slice' ); var normalizeIndex = require( './../../../base/normalize-index' ); -var filled = require( '@stdlib/array/base/filled' ); +var nulls = require( '@stdlib/array/base/nulls' ); var format = require( '@stdlib/string/format' ); @@ -89,7 +89,7 @@ function sliceDimensionTo( x, dim, stop, strict, writable ) { throw new RangeError( format( 'invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.', N, dim ) ); } // Define a list of slice arguments: - args = filled( null, N ); + args = nulls( N ); args[ d ] = new Slice( stop ); // Return a new array view: diff --git a/base/slice-dimension/lib/main.js b/base/slice-dimension/lib/main.js index cb7c3dbe..1cb3a47d 100644 --- a/base/slice-dimension/lib/main.js +++ b/base/slice-dimension/lib/main.js @@ -24,7 +24,7 @@ var args2multislice = require( '@stdlib/slice/base/args2multislice' ); var ndims = require( './../../../base/ndims' ); var slice = require( './../../../base/slice' ); var normalizeIndex = require( './../../../base/normalize-index' ); -var filled = require( '@stdlib/array/base/filled' ); +var nulls = require( '@stdlib/array/base/nulls' ); var format = require( '@stdlib/string/format' ); @@ -92,7 +92,7 @@ function sliceDimension( x, dim, s, strict, writable ) { throw new RangeError( format( 'invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.', N, dim ) ); } // Define a list of MultiSlice constructor arguments: - args = filled( null, N ); + args = nulls( N ); args[ d ] = s; // Return a new array view: diff --git a/iter/select-dimension/lib/main.js b/iter/select-dimension/lib/main.js index 21a3b028..de1575df 100644 --- a/iter/select-dimension/lib/main.js +++ b/iter/select-dimension/lib/main.js @@ -28,7 +28,7 @@ var isndarrayLike = require( '@stdlib/assert/is-ndarray-like' ); var isReadOnly = require( './../../../base/assert/is-read-only' ); var hasOwnProp = require( '@stdlib/assert/has-own-property' ); var iteratorSymbol = require( '@stdlib/symbol/iterator' ); -var filled = require( '@stdlib/array/base/filled' ); +var nulls = require( '@stdlib/array/base/nulls' ); var getShape = require( './../../../shape' ); var normalizeIndex = require( './../../../base/normalize-index' ); var numel = require( './../../../base/numel' ); @@ -143,7 +143,7 @@ function nditerSelectDimension( x, dim ) { i = -1; // Initialize an index array for generating slices: - idx = filled( null, ndims ); + idx = nulls( ndims ); // Create an iterator protocol-compliant object: iter = {};