diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fef8c9c..f765b4bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@
-## Unreleased (2024-11-21) +## Unreleased (2024-12-02)
@@ -180,6 +180,8 @@ A total of 1 person contributed to this release. Thank you to this contributor:
+- [`a80835b`](https://github.com/stdlib-js/stdlib/commit/a80835b8f9959a15751adfce5572bb2b29cfeeed) - **refactor:** declare parameters and pointer as const _(by Philipp Burckhardt)_ +- [`6c020d3`](https://github.com/stdlib-js/stdlib/commit/6c020d33665c4aec232196fd86214b296ddc7d36) - **chore:** use relative paths to load package.json file _(by Philipp Burckhardt)_ - [`b6a2b0b`](https://github.com/stdlib-js/stdlib/commit/b6a2b0b27dc8cc1e9fc02d9679a3ce468cf49b9d) - **docs:** update namespace table of contents [(#3192)](https://github.com/stdlib-js/stdlib/pull/3192) _(by stdlib-bot, Philipp Burckhardt)_ - [`8b1548f`](https://github.com/stdlib-js/stdlib/commit/8b1548fb45c1ff131f5edac20cb984344a2d28ec) - **feat:** update namespace TypeScript declarations [(#3190)](https://github.com/stdlib-js/stdlib/pull/3190) _(by stdlib-bot, Philipp Burckhardt)_ diff --git a/CONTRIBUTORS b/CONTRIBUTORS index f09b30e6..a8d0bb6e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -3,7 +3,7 @@ # Contributors listed in alphabetical order. Aayush Khanna -AbhijitRaut04 <121740684+AbhijitRaut04@users.noreply.github.com> +Abhijit Raut Adarsh Palaskar Aditya Sapra AgPriyanshu18 <113460573+AgPriyanshu18@users.noreply.github.com> @@ -44,18 +44,18 @@ Joey Reed Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com> Joris Labie Justin Dennison -Kaif Mohd Karthik Prakash <116057817+skoriop@users.noreply.github.com> Khaldon Kohantika Nath <145763549+kohantikanath@users.noreply.github.com> Krishnendu Das <86651039+itskdhere@users.noreply.github.com> +Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com> Lovelin <100030865+lovelindhoni@users.noreply.github.com> Manik Sharma Marcus Fantham Matt Cochrane Mihir Pandit <129577900+MSP20086@users.noreply.github.com> Milan Raj -Mohammad Kaif <98884589+Kaif987@users.noreply.github.com> +Mohammad Kaif Momtchil Momtchev Muhammad Haris Naresh Jagadeesan @@ -83,6 +83,7 @@ Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com> Rutam <138517416+performant23@users.noreply.github.com> Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com> Ryan Seal +Rylan Yang <137365285+rylany27@users.noreply.github.com> Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com> SarthakPaandey <145528240+SarthakPaandey@users.noreply.github.com> Saurabh Singh @@ -106,6 +107,7 @@ Utkarsh Raj UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com> Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com> Varad Gupta +Vinit Pandit <106718914+MeastroZI@users.noreply.github.com> Xiaochuan Ye Yernar Yergaziyev naveen diff --git a/base/broadcast-shapes/README.md b/base/broadcast-shapes/README.md index 83103218..f47582cb 100644 --- a/base/broadcast-shapes/README.md +++ b/base/broadcast-shapes/README.md @@ -311,7 +311,7 @@ The function accepts the following arguments: - **out**: `[out] int64_t*` output shape array. ```c -int8_t stdlib_ndarray_broadcast_shapes( int64_t M, int64_t *shapes[], const int64_t ndims[], int64_t *out ); +int8_t stdlib_ndarray_broadcast_shapes( const int64_t M, const int64_t *shapes[], const int64_t ndims[], int64_t *out ); ``` If successful, the function returns `0`; otherwise, the function returns `-1` (e.g., due to incompatible shapes). diff --git a/base/broadcast-shapes/include/stdlib/ndarray/base/broadcast_shapes.h b/base/broadcast-shapes/include/stdlib/ndarray/base/broadcast_shapes.h index e23dce1d..33581cb7 100644 --- a/base/broadcast-shapes/include/stdlib/ndarray/base/broadcast_shapes.h +++ b/base/broadcast-shapes/include/stdlib/ndarray/base/broadcast_shapes.h @@ -31,7 +31,7 @@ extern "C" { /** * Broadcasts array shapes to a single shape. */ -int8_t stdlib_ndarray_broadcast_shapes( int64_t M, int64_t *shapes[], int64_t ndims[], int64_t *out ); +int8_t stdlib_ndarray_broadcast_shapes( const int64_t M, const int64_t *shapes[], const int64_t ndims[], int64_t *out ); #ifdef __cplusplus } diff --git a/base/broadcast-shapes/src/main.c b/base/broadcast-shapes/src/main.c index ca983c82..547d921e 100644 --- a/base/broadcast-shapes/src/main.c +++ b/base/broadcast-shapes/src/main.c @@ -55,9 +55,9 @@ * int64_t out[] = { 0, 0, 0, 0 }; * int8_t status = stdlib_ndarray_broadcast_shapes( 2, shapes, ndims, out ); */ -int8_t stdlib_ndarray_broadcast_shapes( int64_t M, int64_t *shapes[], const int64_t ndims[], int64_t *out ) { +int8_t stdlib_ndarray_broadcast_shapes( const int64_t M, const int64_t *shapes[], const int64_t ndims[], int64_t *out ) { int64_t dim; - int64_t *sh; + const int64_t *sh; int64_t n1; int64_t n2; int64_t d; diff --git a/base/fill/benchmark/benchmark.1d_rowmajor.js b/base/fill/benchmark/benchmark.1d_rowmajor.js index c57d25d0..de962ee3 100644 --- a/base/fill/benchmark/benchmark.1d_rowmajor.js +++ b/base/fill/benchmark/benchmark.1d_rowmajor.js @@ -25,8 +25,8 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' ); var pow = require( '@stdlib/math/base/special/pow' ); var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var shape2strides = require( './../../../base/shape2strides' ); -var pkg = require( './../../../base/fill/package.json' ).name; -var fill = require( './../../../base/fill/lib' ); +var pkg = require( './../package.json' ).name; +var fill = require( './../lib' ); // VARIABLES // diff --git a/base/fill/benchmark/benchmark.5d_columnmajor.js b/base/fill/benchmark/benchmark.5d_columnmajor.js index 930fbf04..4a761400 100644 --- a/base/fill/benchmark/benchmark.5d_columnmajor.js +++ b/base/fill/benchmark/benchmark.5d_columnmajor.js @@ -27,8 +27,8 @@ var pow = require( '@stdlib/math/base/special/pow' ); var floor = require( '@stdlib/math/base/special/floor' ); var filledarrayBy = require( '@stdlib/array/filled-by' ); var shape2strides = require( './../../../base/shape2strides' ); -var pkg = require( './../../../base/fill/package.json' ).name; -var fill = require( './../../../base/fill/lib' ); +var pkg = require( './../package.json' ).name; +var fill = require( './../lib' ); // VARIABLES //