Skip to content

Commit 4fd330e

Browse files
committed
Auto-generated commit
1 parent d830f75 commit 4fd330e

7 files changed

Lines changed: 7 additions & 6 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ A total of 2 issues were closed in this release:
7676

7777
<details>
7878

79+
- [`58556f4`](https://github.com/stdlib-js/stdlib/commit/58556f408eedf1737bc4795fb2734ef4dd2a6b32) - **chore:** clean-up [(#13978)](https://github.com/stdlib-js/stdlib/pull/13978) _(by Philipp Burckhardt)_
7980
- [`ed2034b`](https://github.com/stdlib-js/stdlib/commit/ed2034b50d57287741f2492ce90c5a2fdd4434d2) - **chore:** fix C lint errors [(#13964)](https://github.com/stdlib-js/stdlib/pull/13964) _(by Ashutosh Choubey, Athan Reines)_
8081
- [`8ef56c4`](https://github.com/stdlib-js/stdlib/commit/8ef56c412bf46e234fdff7db65f6e489c406566b) - **refactor:** add `const` qualifiers _(by Athan Reines)_
8182
- [`7ae11bc`](https://github.com/stdlib-js/stdlib/commit/7ae11bca9e05607a14425d165dfed57584b880b8) - **chore:** clean-up [(#13834)](https://github.com/stdlib-js/stdlib/pull/13834) _(by Philipp Burckhardt)_

‎base/assert/is-buffer-length-compatible-shape/include/stdlib/ndarray/base/assert/is_buffer_length_compatible_shape.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extern "C" {
3131
/**
3232
* Determines if a buffer length is compatible with a provided shape array.
3333
*/
34-
int8_t stdlib_ndarray_is_buffer_length_compatible_shape( int64_t len, int64_t ndims, int64_t *shape );
34+
int8_t stdlib_ndarray_is_buffer_length_compatible_shape( const int64_t len, const int64_t ndims, const int64_t *shape );
3535

3636
#ifdef __cplusplus
3737
}

‎base/assert/is-buffer-length-compatible-shape/src/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* int8_t b = stdlib_ndarray_is_buffer_length_compatible_shape( 10, ndims, shape );
4545
* // returns 0
4646
*/
47-
int8_t stdlib_ndarray_is_buffer_length_compatible_shape( int64_t len, int64_t ndims, int64_t *shape ) {
47+
int8_t stdlib_ndarray_is_buffer_length_compatible_shape( const int64_t len, const int64_t ndims, const int64_t *shape ) {
4848
if ( len > stdlib_ndarray_numel( ndims, shape ) ) {
4949
return 1;
5050
}

‎base/assert/is-buffer-length-compatible/include/stdlib/ndarray/base/assert/is_buffer_length_compatible.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern "C" {
3232
/**
3333
* Determines if a buffer length is compatible with provided ndarray meta data.
3434
*/
35-
int8_t stdlib_ndarray_is_buffer_length_compatible( enum STDLIB_NDARRAY_DTYPE dtype, int64_t len, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset );
35+
int8_t stdlib_ndarray_is_buffer_length_compatible( const enum STDLIB_NDARRAY_DTYPE dtype, const int64_t len, const int64_t ndims, const int64_t *shape, const int64_t *strides, const int64_t offset );
3636

3737
#ifdef __cplusplus
3838
}

‎base/assert/is-buffer-length-compatible/src/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* int8_t b = stdlib_ndarray_is_buffer_length_compatible( STDLIB_NDARRAY_UINT8, 10, ndims, shape, strides, offset );
5353
* // returns 0
5454
*/
55-
int8_t stdlib_ndarray_is_buffer_length_compatible( enum STDLIB_NDARRAY_DTYPE dtype, int64_t len, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset ) {
55+
int8_t stdlib_ndarray_is_buffer_length_compatible( const enum STDLIB_NDARRAY_DTYPE dtype, const int64_t len, const int64_t ndims, const int64_t *shape, const int64_t *strides, const int64_t offset ) {
5656
int64_t tmp[ 2 ];
5757
int64_t nbytes;
5858

‎base/assert/is-column-major-contiguous/include/stdlib/ndarray/base/assert/is_column_major_contiguous.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern "C" {
3232
/**
3333
* Determines if an array is column-major contiguous.
3434
*/
35-
int8_t stdlib_ndarray_is_column_major_contiguous( enum STDLIB_NDARRAY_DTYPE dtype, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset );
35+
int8_t stdlib_ndarray_is_column_major_contiguous( const enum STDLIB_NDARRAY_DTYPE dtype, const int64_t ndims, const int64_t *shape, const int64_t *strides, const int64_t offset );
3636

3737
#ifdef __cplusplus
3838
}

‎base/assert/is-column-major-contiguous/src/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* int8_t b = stdlib_ndarray_is_column_major_contiguous( STDLIB_NDARRAY_UINT8, ndims, shape, strides, offset );
5050
* // returns 1
5151
*/
52-
int8_t stdlib_ndarray_is_column_major_contiguous( enum STDLIB_NDARRAY_DTYPE dtype, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset ) {
52+
int8_t stdlib_ndarray_is_column_major_contiguous( const enum STDLIB_NDARRAY_DTYPE dtype, const int64_t ndims, const int64_t *shape, const int64_t *strides, const int64_t offset ) {
5353
if (
5454
stdlib_ndarray_iteration_order( ndims, strides ) != 0 &&
5555
stdlib_ndarray_is_column_major( ndims, strides ) != 0 &&

0 commit comments

Comments
 (0)