Skip to content

Commit 6434c47

Browse files
committed
Auto-generated commit
1 parent 622ca2b commit 6434c47

File tree

13 files changed

+77
-65
lines changed

13 files changed

+77
-65
lines changed

CHANGELOG.md

Lines changed: 4 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-12-02)
7+
## Unreleased (2025-12-04)
88

99
<section class="features">
1010

@@ -644,6 +644,9 @@ A total of 35 issues were closed in this release:
644644

645645
<details>
646646

647+
- [`4d90d1a`](https://github.com/stdlib-js/stdlib/commit/4d90d1a8908b2328735f43fccaca8e9a1daffb35) - **docs:** fix example code in TSDoc declarations _(by Philipp Burckhardt)_
648+
- [`0eda9b1`](https://github.com/stdlib-js/stdlib/commit/0eda9b1af1d384b1a6be6fe1e80b36a32f69d55c) - **chore:** specify ESLint doctest alias _(by Philipp Burckhardt)_
649+
- [`2ffc422`](https://github.com/stdlib-js/stdlib/commit/2ffc422e0a5e583d45776ea7efc359186379bb0c) - **docs:** fix TSDoc return annotation values and example code _(by Philipp Burckhardt)_
647650
- [`e24d1a7`](https://github.com/stdlib-js/stdlib/commit/e24d1a701a3cb60714f3d44c0ff87341dd0d870a) - **feat:** update `ndarray/base/assert` TypeScript declarations _(by Philipp Burckhardt)_
648651
- [`41bc320`](https://github.com/stdlib-js/stdlib/commit/41bc320db9372557b8eb3341169981c96450b3bf) - **chore:** add alias for doctest lint rule _(by Philipp Burckhardt)_
649652
- [`5b98eea`](https://github.com/stdlib-js/stdlib/commit/5b98eeaa83f9762c4082b97ba7706fc682685b7c) - **docs:** regenerate TS declarations for `ndarray/vector` namespace _(by Philipp Burckhardt)_

base/broadcast-arrays/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import { ndarray } from '@stdlib/types/ndarray';
5454
* // returns [ 3, 2, 2 ]
5555
*
5656
* var out = broadcastArrays( [ x1, y1 ] );
57-
* // returns <ndarray>
57+
* // returns [ <ndarray>, <ndarray> ]
5858
*
5959
* var x2 = out[ 0 ];
6060
* // returns <ndarray>

base/ctor/docs/types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,5 @@ declare var ctor: Constructor;
135135
// EXPORTS //
136136

137137
export = ctor;
138+
139+
// eslint-doctest-alias: ndarray

base/ind/docs/types/index.d.ts

Lines changed: 21 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -92,51 +92,51 @@ interface Routine {
9292
* @returns {Function} function for returning an index
9393
*
9494
* @example
95-
* var ind = ind.factory( 'clamp' );
95+
* var fcn = ind.factory( 'clamp' );
9696
*
97-
* var idx = ind( 2, 9 );
97+
* var idx = fcn( 2, 9 );
9898
* // returns 2
9999
*
100-
* idx = ind( 10, 9 );
100+
* idx = fcn( 10, 9 );
101101
* // returns 9
102102
*
103-
* idx = ind( -1, 9 );
103+
* idx = fcn( -1, 9 );
104104
* // returns 0
105105
*
106106
* @example
107-
* var ind = ind.factory( 'wrap' );
107+
* var fcn = ind.factory( 'wrap' );
108108
*
109-
* var idx = ind( 2, 9 );
109+
* var idx = fcn( 2, 9 );
110110
* // returns 2
111111
*
112-
* idx = ind( 10, 9 );
112+
* idx = fcn( 10, 9 );
113113
* // returns 0
114114
*
115-
* idx = ind( -1, 9 );
115+
* idx = fcn( -1, 9 );
116116
* // returns 9
117117
*
118118
* @example
119-
* var ind = ind.factory( 'throw' );
119+
* var fcn = ind.factory( 'throw' );
120120
*
121-
* var idx = ind( 2, 9 );
121+
* var idx = fcn( 2, 9 );
122122
* // returns 2
123123
*
124-
* idx = ind( 10, 9 );
124+
* idx = fcn( 10, 9 );
125125
* // throws <RangeError>
126126
*
127-
* idx = ind( -1, 9 );
127+
* idx = fcn( -1, 9 );
128128
* // throws <RangeError>
129129
*
130130
* @example
131-
* var ind = ind.factory( 'normalize' );
131+
* var fcn = ind.factory( 'normalize' );
132132
*
133-
* var idx = ind( 1, 10 );
133+
* var idx = fcn( 1, 10 );
134134
* // returns 1
135135
*
136-
* idx = ind( -4, 10 );
136+
* idx = fcn( -4, 10 );
137137
* // returns 7
138138
*
139-
* idx = ind( -100, 10 );
139+
* idx = fcn( -100, 10 );
140140
* // throws <RangeError>
141141
*/
142142
factory( mode: Mode ): IndexFcn;
@@ -181,26 +181,14 @@ interface Routine {
181181
* // throws <RangeError>
182182
*
183183
* @example
184-
* var idx = ind( 2, 9, 'normalize' );
185-
* // returns 2
184+
* var idx = ind( 1, 10, 'normalize' );
185+
* // returns 1
186186
*
187-
* idx = ind( -5, 9, 'normalize' );
188-
* // returns 5
187+
* idx = ind( -4, 10, 'normalize' );
188+
* // returns 7
189189
*
190-
* idx = ind( -20, 9, 'normalize' );
190+
* idx = ind( -100, 10, 'normalize' );
191191
* // throws <RangeError>
192-
*
193-
* @example
194-
* var fcn = ind.factory( 'clamp' );
195-
*
196-
* var idx = fcn( 2, 9 );
197-
* // returns 2
198-
*
199-
* idx = fcn( 10, 9 );
200-
* // returns 9
201-
*
202-
* idx = fcn( -1, 9 );
203-
* // returns 0
204192
*/
205193
declare var ind: Routine;
206194

base/nullary-strided1d-dispatch/docs/types/index.d.ts

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ declare class NullaryStrided1dDispatch<T, U> {
112112
* @example
113113
* var base = require( '@stdlib/blas/ext/base/ndarray/gsorthp' );
114114
* var dtypes = require( './../../../../dtypes' );
115+
* var scalar2ndarray = require( './../../../../from-scalar' );
115116
* var ndarray2array = require( './../../../../to-array' );
116117
* var ndarray = require( './../../../../base/ctor' );
117118
*
@@ -149,7 +150,7 @@ declare class NullaryStrided1dDispatch<T, U> {
149150
* @returns output ndarray
150151
*
151152
* @example
152-
* var base = require( '@stdlib/blas/ext/base/ndarray/sorthp' );
153+
* var base = require( '@stdlib/blas/ext/base/ndarray/gsorthp' );
153154
* var dtypes = require( './../../../../dtypes' );
154155
* var scalar2ndarray = require( './../../../../from-scalar' );
155156
* var ndarray2array = require( './../../../../to-array' );
@@ -190,7 +191,7 @@ declare class NullaryStrided1dDispatch<T, U> {
190191
* @returns output ndarray
191192
*
192193
* @example
193-
* var base = require( '@stdlib/blas/ext/base/ndarray/sorthp' );
194+
* var base = require( '@stdlib/blas/ext/base/ndarray/gsorthp' );
194195
* var dtypes = require( './../../../../dtypes' );
195196
* var scalar2ndarray = require( './../../../../from-scalar' );
196197
* var ndarray2array = require( './../../../../to-array' );
@@ -237,8 +238,9 @@ interface NullaryStrided1dDispatchConstructor {
237238
* @returns instance
238239
*
239240
* @example
240-
* var base = require( '@stdlib/blas/ext/base/ndarray/sorthp' );
241+
* var base = require( '@stdlib/blas/ext/base/ndarray/gsorthp' );
241242
* var dtypes = require( './../../../../dtypes' );
243+
* var scalar2ndarray = require( './../../../../from-scalar' );
242244
* var ndarray2array = require( './../../../../to-array' );
243245
* var ndarray = require( './../../../../base/ctor' );
244246
*
@@ -254,7 +256,7 @@ interface NullaryStrided1dDispatchConstructor {
254256
* var x = new ndarray( 'generic', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
255257
*
256258
* var order = scalar2ndarray( 1.0, {
257-
* 'dtype': 'generic'
259+
* 'dtype': 'generic'
258260
* });
259261
*
260262
* var out = sorthp.assign( x, order );
@@ -278,8 +280,9 @@ interface NullaryStrided1dDispatchConstructor {
278280
* @returns instance
279281
*
280282
* @example
281-
* var base = require( '@stdlib/blas/ext/base/ndarray/sorthp' );
283+
* var base = require( '@stdlib/blas/ext/base/ndarray/gsorthp' );
282284
* var dtypes = require( './../../../../dtypes' );
285+
* var scalar2ndarray = require( './../../../../from-scalar' );
283286
* var ndarray2array = require( './../../../../to-array' );
284287
* var ndarray = require( './../../../../base/ctor' );
285288
*
@@ -295,7 +298,7 @@ interface NullaryStrided1dDispatchConstructor {
295298
* var x = new ndarray( 'generic', xbuf, [ xbuf.length ], [ 1 ], 0, 'row-major' );
296299
*
297300
* var order = scalar2ndarray( 1.0, {
298-
* 'dtype': 'generic'
301+
* 'dtype': 'generic'
299302
* });
300303
*
301304
* var out = sorthp.assign( x, order );
@@ -320,7 +323,7 @@ interface NullaryStrided1dDispatchConstructor {
320323
* @returns instance
321324
*
322325
* @example
323-
* var base = require( '@stdlib/blas/ext/base/ndarray/sorthp' );
326+
* var base = require( '@stdlib/blas/ext/base/ndarray/gsorthp' );
324327
* var dtypes = require( '@stdlib/ndarray/dtypes' );
325328
* var scalar2ndarray = require( '@stdlib/ndarray/from-scalar' );
326329
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
@@ -341,15 +344,20 @@ interface NullaryStrided1dDispatchConstructor {
341344
* 'dtype': 'generic'
342345
* });
343346
*
344-
* var y = sorthp.assign( x, order );
347+
* var out = sorthp.assign( x, order );
345348
* // returns <ndarray>
346349
*
347-
* var arr = ndarray2array( y );
348-
* // returns [ -1.0, 2.0, 2.0 ]
350+
* var arr = ndarray2array( x );
351+
* // returns [ -3.0, -1.0, 2.0 ]
352+
*
353+
* var bool = ( out === x );
354+
* // returns true
349355
*/
350356
declare var ctor: NullaryStrided1dDispatchConstructor;
351357

352358

353359
// EXPORTS //
354360

355361
export = ctor;
362+
363+
// eslint-doctest-alias: NullaryStrided1dDispatch

base/transpose/docs/types/index.d.ts

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ import { ndarray, float64ndarray, float32ndarray, int32ndarray, int16ndarray, in
3232
* var array = require( '@stdlib/ndarray/array' );
3333
*
3434
* var x = array( [ [ 1, 2, 3 ], [ 4, 5, 6 ] ], {
35-
* 'dtype': 'float64'
35+
* 'dtype': 'float64',
36+
* 'casting': 'unsafe'
3637
* });
3738
* // returns <ndarray>
3839
*
@@ -63,7 +64,8 @@ declare function transpose( x: float64ndarray ): float64ndarray;
6364
* var array = require( '@stdlib/ndarray/array' );
6465
*
6566
* var x = array( [ [ 1, 2, 3 ], [ 4, 5, 6 ] ], {
66-
* 'dtype': 'float32'
67+
* 'dtype': 'float32',
68+
* 'casting': 'unsafe'
6769
* });
6870
* // returns <ndarray>
6971
*
@@ -150,7 +152,8 @@ declare function transpose( x: complex64ndarray ): complex64ndarray;
150152
* var array = require( '@stdlib/ndarray/array' );
151153
*
152154
* var x = array( [ [ 1, 2, 3 ], [ 4, 5, 6 ] ], {
153-
* 'dtype': 'int32'
155+
* 'dtype': 'int32',
156+
* 'casting': 'unsafe'
154157
* });
155158
* // returns <ndarray>
156159
*
@@ -181,8 +184,9 @@ declare function transpose( x: int32ndarray ): int32ndarray;
181184
* var array = require( '@stdlib/ndarray/array' );
182185
*
183186
* var x = array( [ [ 1, 2, 3 ], [ 4, 5, 6 ] ], {
184-
* 'dtype': 'int16'
185-
* });
187+
* 'dtype': 'int16',
188+
* 'casting': 'unsafe'
189+
* });
186190
* // returns <ndarray>
187191
*
188192
* var sh = x.shape;
@@ -212,7 +216,8 @@ declare function transpose( x: int16ndarray ): int16ndarray;
212216
* var array = require( '@stdlib/ndarray/array' );
213217
*
214218
* var x = array( [ [ 1, 2, 3 ], [ 4, 5, 6 ] ], {
215-
* 'dtype': 'int8'
219+
* 'dtype': 'int8',
220+
* 'casting': 'unsafe'
216221
* });
217222
* // returns <ndarray>
218223
*
@@ -243,7 +248,8 @@ declare function transpose( x: int8ndarray ): int8ndarray;
243248
* var array = require( '@stdlib/ndarray/array' );
244249
*
245250
* var x = array( [ [ 1, 2, 3 ], [ 4, 5, 6 ] ], {
246-
* 'dtype': 'uint32'
251+
* 'dtype': 'uint32',
252+
* 'casting': 'unsafe'
247253
* });
248254
* // returns <ndarray>
249255
*
@@ -274,7 +280,8 @@ declare function transpose( x: uint32ndarray ): uint32ndarray;
274280
* var array = require( '@stdlib/ndarray/array' );
275281
*
276282
* var x = array( [ [ 1, 2, 3 ], [ 4, 5, 6 ] ], {
277-
* 'dtype': 'uint16'
283+
* 'dtype': 'uint16',
284+
* 'casting': 'unsafe'
278285
* });
279286
* // returns <ndarray>
280287
*
@@ -305,7 +312,8 @@ declare function transpose( x: uint16ndarray ): uint16ndarray;
305312
* var array = require( '@stdlib/ndarray/array' );
306313
*
307314
* var x = array( [ [ 1, 2, 3 ], [ 4, 5, 6 ] ], {
308-
* 'dtype': 'uint8'
315+
* 'dtype': 'uint8',
316+
* 'casting': 'unsafe'
309317
* });
310318
* // returns <ndarray>
311319
*
@@ -336,7 +344,8 @@ declare function transpose( x: uint8ndarray ): uint8ndarray;
336344
* var array = require( '@stdlib/ndarray/array' );
337345
*
338346
* var x = array( [ [ 1, 2, 3 ], [ 4, 5, 6 ] ], {
339-
* 'dtype': 'uint8c'
347+
* 'dtype': 'uint8c',
348+
* 'casting': 'unsafe'
340349
* });
341350
* // returns <ndarray>
342351
*

base/unary-reduce-subarray-by/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ declare function unaryReduceSubarrayBy<T = unknown, U = unknown, V = unknown, W
260260
* };
261261
*
262262
* // Perform a reduction:
263-
* unaryReduceSubarrayBy( everyBy, [ x, y ], [ 2, 3 ], {}, clbk );
263+
* unaryReduceSubarrayBy( everyBy, [ x, y ], [ 2, 3 ], clbk );
264264
*
265265
* var arr = ndarray2array( y.data, y.shape, y.strides, y.offset, y.order );
266266
* // returns [ [ true, false, true ] ]

ctor/docs/types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,5 @@ declare var ctor: Constructor;
158158
// EXPORTS //
159159

160160
export = ctor;
161+
162+
// eslint-doctest-alias: ndarray

from-scalar/docs/types/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ declare function scalar2ndarray( value: boolean, options: BoolOptions ): boolnda
330330
* @example
331331
* var x = scalar2ndarray( 1, {
332332
* 'dtype': 'int32'
333-
* };
333+
* });
334334
* // returns <ndarray>
335335
*
336336
* var sh = x.shape;
@@ -353,8 +353,8 @@ declare function scalar2ndarray( value: number, options: Int32Options ): int32nd
353353
*
354354
* @example
355355
* var x = scalar2ndarray( 1, {
356-
* 'dtype': int16'
357-
* };
356+
* 'dtype': 'int16'
357+
* });
358358
* // returns <ndarray>
359359
*
360360
* var sh = x.shape;
@@ -450,7 +450,7 @@ declare function scalar2ndarray( value: number, options: Uint16Options ): uint16
450450
* @example
451451
* var x = scalar2ndarray( 1, {
452452
* 'dtype': 'uint8'
453-
* };
453+
* });
454454
* // returns <ndarray>
455455
*
456456
* var sh = x.shape;
@@ -473,7 +473,7 @@ declare function scalar2ndarray( value: number, options: Uint8Options ): uint8nd
473473
*
474474
* @example
475475
* var x = scalar2ndarray( 1, {
476-
* 'dtype': uint8c'
476+
* 'dtype': 'uint8c'
477477
* });
478478
* // returns <ndarray>
479479
*

index/docs/types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,3 +716,5 @@ declare var ctor: Constructor;
716716
// EXPORTS //
717717

718718
export = ctor;
719+
720+
// eslint-doctest-alias: ndindex

0 commit comments

Comments
 (0)