Skip to content

Commit 32dc5c3

Browse files
committed
Auto-generated commit
1 parent b8caa80 commit 32dc5c3

4 files changed

Lines changed: 13 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333

3434
<details>
3535

36+
- [`d01cc15`](https://github.com/stdlib-js/stdlib/commit/d01cc150c5d271c5132af9706f86fd15160e5f39) - **docs:** update `ndarray` TypeScript declarations [(#12662)](https://github.com/stdlib-js/stdlib/pull/12662) _(by stdlib-bot)_
37+
- [`69a4924`](https://github.com/stdlib-js/stdlib/commit/69a49243032c5e1a845cba2f895c835a49368b77) - **docs:** update `ndarray/iter` TypeScript declarations [(#12661)](https://github.com/stdlib-js/stdlib/pull/12661) _(by stdlib-bot)_
38+
- [`02ceb9e`](https://github.com/stdlib-js/stdlib/commit/02ceb9ef7c4b0b987a79f07daa750ea9c18f3159) - **docs:** update `ndarray/base` TypeScript declarations [(#12660)](https://github.com/stdlib-js/stdlib/pull/12660) _(by stdlib-bot)_
3639
- [`cd863cf`](https://github.com/stdlib-js/stdlib/commit/cd863cfcc93259fc77714263c6c8b532c84563a3) - **docs:** propagate recent develop fixes to sibling packages [(#12642)](https://github.com/stdlib-js/stdlib/pull/12642) _(by Philipp Burckhardt)_
3740
- [`4e89875`](https://github.com/stdlib-js/stdlib/commit/4e898755cf98f6e3b8d8c24079fb9ea7730f2d9c) - **fix:** preserve input ndarray type in `ndarray/base/maybe-broadcast-array-except-dimensions` [(#12629)](https://github.com/stdlib-js/stdlib/pull/12629) _(by Philipp Burckhardt, Athan Reines)_
3841
- [`95016b8`](https://github.com/stdlib-js/stdlib/commit/95016b8c7179f978fb8ef5b272cff36b523e06e6) - **fix:** add missing import in `ndarray/base/unflatten` declarations [(#12625)](https://github.com/stdlib-js/stdlib/pull/12625) _(by Philipp Burckhardt, Athan Reines)_

base/docs/types/index.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ interface Namespace {
11541154
/**
11551155
* Returns the data type enumeration constant for a provided ndarray data buffer.
11561156
*
1157-
* @param arr - strided array
1157+
* @param arr - ndarray data buffer
11581158
* @returns data type enumeration constant or null
11591159
*
11601160
* @example
@@ -1645,7 +1645,7 @@ interface Namespace {
16451645
dtypeResolveStr: typeof dtypeResolveStr;
16461646

16471647
/**
1648-
* Returns the enumeration constant associated with a ndarray data type string.
1648+
* Returns the enumeration constant associated with an ndarray data type string.
16491649
*
16501650
* ## Notes
16511651
*
@@ -2373,7 +2373,7 @@ interface Namespace {
23732373
* var dt = String( getDType( y ) );
23742374
* // returns 'complex128'
23752375
*
2376-
* var v = y.get();
2376+
* var z = y.get();
23772377
* // returns <Complex128>[ 1.0, 2.0 ]
23782378
*/
23792379
scalar2ndarrayLike: typeof scalar2ndarrayLike;
@@ -2818,7 +2818,7 @@ interface Namespace {
28182818
maybeBroadcastArray: typeof maybeBroadcastArray;
28192819

28202820
/**
2821-
* Broadcasts an ndarray to a specified shape if and only if the specified shape differs from the provided ndarray's shape.
2821+
* Broadcasts an ndarray to a specified shape while keeping a list of specified dimensions unchanged if and only if the specified shape differs from the provided ndarray's shape.
28222822
*
28232823
* ## Notes
28242824
*
@@ -2854,7 +2854,7 @@ interface Namespace {
28542854
*
28552855
* ## Notes
28562856
*
2857-
* - The function throws an error if a provided broadcast-incompatible ndarrays.
2857+
* - The function throws an error if provided broadcast-incompatible ndarrays.
28582858
* - If a provided ndarray has a shape matching the common shape, the function returns the provided ndarray.
28592859
* - If a provided ndarray has a different (broadcast compatible) shape than the common shape, the function returns a new (base) ndarray view of the provided ndarray's data. The view is typically **not** contiguous. As more than one element of a returned view may refer to the same memory location, writing to a view may affect multiple elements. If you need to write to a returned array, copy the array before performing operations which may mutate elements.
28602860
* - A returned array view is a "base" ndarray, and, thus, a returned array view does not perform bounds checking or afford any of the guarantees of the non-base ndarray constructor. The primary intent of this function is to broadcast ndarray-like objects within internal implementations and to do so with minimal overhead.
@@ -4246,7 +4246,7 @@ interface Namespace {
42464246
* @param x - input array
42474247
* @param k - number of times to rotate by 90 degrees
42484248
* @param writable - boolean indicating whether the returned ndarray should be writable
4249-
* @returns output array
4249+
* @returns ndarray view
42504250
*
42514251
* @example
42524252
* var array = require( './../../../array' );
@@ -4285,7 +4285,7 @@ interface Namespace {
42854285
* <order>[int8],
42864286
* <mode>[int8],
42874287
* <nsubmodes>[int64],
4288-
* <submodes>[nsubmodes*int8]
4288+
* <submodes>[nsubmodes*int8],
42894289
* <flags>[int32]
42904290
* ]
42914291
* ```

docs/types/index.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ interface Namespace {
310310
* @param options.flatten - boolean indicating whether to automatically flatten generic array data sources (default: true)
311311
* @param options.ndmin - minimum number of dimensions (default: 0)
312312
* @param options.casting - casting rule used to determine what constitutes an acceptable cast (default: 'safe')
313-
* @param options.readonly - boolean indicating whether an array should be read-only
313+
* @param options.readonly - boolean indicating whether an array should be read-only (default: false)
314314
* @throws must provide valid options
315315
* @throws must provide either an array shape, data source, or both
316316
* @throws invalid cast
@@ -680,7 +680,6 @@ interface Namespace {
680680
*
681681
* @example
682682
* var array = require( './../../array' );
683-
* var ndarray2array = require( './../../to-array' );
684683
*
685684
* var x = array( [ -1.0, 2.0, 3.0, 4.0 ] );
686685
* var y = array( [ -5.0, 6.0, -7.0, -8.0, 9.0, -10.0 ] );
@@ -691,7 +690,6 @@ interface Namespace {
691690
* @example
692691
* var array = require( './../../array' );
693692
* var empty = require( './../../empty' );
694-
* var ndarray2array = require( './../../to-array' );
695693
*
696694
* var x = array( [ -1.0, 2.0, 3.0, 4.0 ] );
697695
* var y = array( [ -5.0, 6.0, -7.0, -8.0, 9.0, -10.0 ] );
@@ -2413,7 +2411,7 @@ interface Namespace {
24132411
*
24142412
* ## Notes
24152413
*
2416-
* - The function throws an error if a provided broadcast-incompatible ndarrays.
2414+
* - The function throws an error if provided broadcast-incompatible ndarrays.
24172415
* - If a provided ndarray has a shape matching the common shape, the function returns the provided ndarray.
24182416
* - If a provided ndarray has a different (broadcast compatible) shape than the common shape, the function returns a new **read-only** ndarray view of the provided ndarray's data. The view is typically **not** contiguous. As more than one element of a returned view may refer to the same memory location, writing to a view may affect multiple elements. If you need to write to an input array, copy the array before broadcasting.
24192417
*

iter/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ interface Namespace {
188188
*
189189
* ## Notes
190190
*
191-
* - The function throws an error if a provided broadcast-incompatible ndarrays.
191+
* - The function throws an error if provided broadcast-incompatible ndarrays.
192192
* - For input ndarrays supporting read-only views, the function returns *read-only* views of interleaved subarrays. As input ndarrays may be broadcasted, a view is typically *not* contiguous. As more than one element of a returned view may refer to the same memory location, writing to a view may affect multiple elements. If you need to write to a subarray, copy the subarray before attempting mutation.
193193
*
194194
* @param arr - input ndarrays

0 commit comments

Comments
 (0)