Skip to content

Commit b580872

Browse files
committed
Auto-generated commit
1 parent 4ecb253 commit b580872

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-10-02)
7+
## Unreleased (2025-10-03)
88

99
<section class="features">
1010

@@ -602,6 +602,7 @@ A total of 27 issues were closed in this release:
602602

603603
<details>
604604

605+
- [`157f4f4`](https://github.com/stdlib-js/stdlib/commit/157f4f4cd7cc3ce680dbfb538b3d8cbcfe5852dd) - **docs:** update comments _(by Athan Reines)_
605606
- [`17b3ee2`](https://github.com/stdlib-js/stdlib/commit/17b3ee291d0ff12089dcf3ff881771b41325ff28) - **chore:** fix C lint errors [(#8181)](https://github.com/stdlib-js/stdlib/pull/8181) _(by Piyush Goel, Athan Reines)_
606607
- [`cb7cf8c`](https://github.com/stdlib-js/stdlib/commit/cb7cf8ce407731354c5b2861ffa659c8adbc3149) - **feat:** add `ndarray/reverse-dimension` [(#8186)](https://github.com/stdlib-js/stdlib/pull/8186) _(by Muhammad Haris, Athan Reines)_
607608
- [`bc45275`](https://github.com/stdlib-js/stdlib/commit/bc4527566e313868d308532a06d9257156361e32) - **refactor:** simplify declarations by using generic _(by Athan Reines)_

CONTRIBUTORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ NEEKUorAAYUSH <aayush10072004@gmail.com>
128128
Nakul Krishnakumar <nakulkrishnakumar86@gmail.com>
129129
Naresh Jagadeesan <naresh.naresh000@gmail.com>
130130
Naveen Kumar <stupiddint@gmail.com>
131+
Navyansh Kesarwani <91735202+navyansh007@users.noreply.github.com>
131132
Neeraj Pathak <neerajrpathak710@gmail.com>
132133
NirvedMishra <139633597+NirvedMishra@users.noreply.github.com>
133134
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
@@ -141,6 +142,7 @@ Ori Miles <97595296+orimiles5@users.noreply.github.com>
141142
Payal Goswami <payalgoswami9711@gmail.com>
142143
Philipp Burckhardt <pburckhardt@outlook.com>
143144
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
145+
Piyush Goel <piyush.goel2704@gmail.com>
144146
Pradyumn Prasad <pradyumnprasad.567@gmail.com>
145147
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
146148
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>

flatten/docs/types/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ import flatten = require( './index' );
8484
flatten( zeros( 'generic', [ 2, 2, 2 ], 'row-major' ), ( x: number ): number => x ); // $ExpectError
8585
}
8686

87-
// The compiler throws an error if the function is provided a second argument with invalid `depth` option...
87+
// The compiler throws an error if the function is provided a second argument with an invalid `depth` option...
8888
{
8989
flatten( zeros( 'float64', [ 2, 2, 2 ], 'row-major' ), { 'depth': '5' } ); // $ExpectError
9090
flatten( zeros( 'float64', [ 2, 2, 2 ], 'row-major' ), { 'depth': true } ); // $ExpectError
@@ -108,7 +108,7 @@ import flatten = require( './index' );
108108
flatten( zeros( 'generic', [ 2, 2, 2 ], 'row-major' ), { 'depth': ( x: number ): number => x } ); // $ExpectError
109109
}
110110

111-
// The compiler throws an error if the function is provided a second argument with invalid `order` option...
111+
// The compiler throws an error if the function is provided a second argument with an invalid `order` option...
112112
{
113113
flatten( zeros( 'float64', [ 2, 2, 2 ], 'row-major' ), { 'order': '5' } ); // $ExpectError
114114
flatten( zeros( 'float64', [ 2, 2, 2 ], 'row-major' ), { 'order': true } ); // $ExpectError
@@ -132,7 +132,7 @@ import flatten = require( './index' );
132132
flatten( zeros( 'generic', [ 2, 2, 2 ], 'row-major' ), { 'order': ( x: number ): number => x } ); // $ExpectError
133133
}
134134

135-
// The compiler throws an error if the function is provided a second argument with invalid `dtype` option...
135+
// The compiler throws an error if the function is provided a second argument with an invalid `dtype` option...
136136
{
137137
flatten( zeros( 'float64', [ 2, 2, 2 ], 'row-major' ), { 'dtype': '5' } ); // $ExpectError
138138
flatten( zeros( 'float64', [ 2, 2, 2 ], 'row-major' ), { 'dtype': true } ); // $ExpectError

flatten/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ function flatten( x, options ) {
349349
'dtype': opts.dtype
350350
});
351351

352-
// Create a view on top of output ndarray having the same shape as the input ndarray:
352+
// Create a view on top of the output ndarray having the same shape as the input ndarray:
353353
st = ( xsh.length > 0 ) ? shape2strides( xsh, opts.order ) : [ 0 ];
354354
view = ndarray( opts.dtype, getData( y ), xsh, st, 0, opts.order );
355355

0 commit comments

Comments
 (0)