Skip to content

Commit 57f2e4f

Browse files
committed
Auto-generated commit
1 parent 96ac6b9 commit 57f2e4f

File tree

2 files changed

+7
-22
lines changed

2 files changed

+7
-22
lines changed

CHANGELOG.md

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

7-
## Unreleased (2025-12-30)
7+
## Unreleased (2025-12-31)
88

99
<section class="features">
1010

1111
### Features
1212

13+
- [`34a837f`](https://github.com/stdlib-js/stdlib/commit/34a837fc5f24b1b2d91a63e655d52203112d605b) - update `ndarray/base` TypeScript declarations [(#9447)](https://github.com/stdlib-js/stdlib/pull/9447)
1314
- [`7473138`](https://github.com/stdlib-js/stdlib/commit/7473138141acc4be120535f84160d49f836b86be) - add writable parameter to `ndarray/base/prepend-singleton-dimensions` [(#9426)](https://github.com/stdlib-js/stdlib/pull/9426)
1415
- [`b1623fe`](https://github.com/stdlib-js/stdlib/commit/b1623fe2c183124b2eb55736b4314329aea2856a) - update `ndarray/base` TypeScript declarations [(#9420)](https://github.com/stdlib-js/stdlib/pull/9420)
1516
- [`50367fe`](https://github.com/stdlib-js/stdlib/commit/50367fe8a498ac1e3e80fe688eb5c3df2d57a82d) - add `toFlippedud` to namespace
@@ -676,6 +677,7 @@ A total of 37 issues were closed in this release:
676677

677678
<details>
678679

680+
- [`34a837f`](https://github.com/stdlib-js/stdlib/commit/34a837fc5f24b1b2d91a63e655d52203112d605b) - **feat:** update `ndarray/base` TypeScript declarations [(#9447)](https://github.com/stdlib-js/stdlib/pull/9447) _(by stdlib-bot)_
679681
- [`7473138`](https://github.com/stdlib-js/stdlib/commit/7473138141acc4be120535f84160d49f836b86be) - **feat:** add writable parameter to `ndarray/base/prepend-singleton-dimensions` [(#9426)](https://github.com/stdlib-js/stdlib/pull/9426) _(by Muhammad Haris)_
680682
- [`7bc4a28`](https://github.com/stdlib-js/stdlib/commit/7bc4a28d0414765b9eeb23e52fb763fc99d7c658) - **docs:** update examples [(#9431)](https://github.com/stdlib-js/stdlib/pull/9431) _(by stdlib-bot)_
681683
- [`72be5b1`](https://github.com/stdlib-js/stdlib/commit/72be5b1a80bbbbb72c79f85e034e0cafc989f1c7) - **test:** use function accessors _(by Athan Reines)_

base/docs/types/index.d.ts

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3158,34 +3158,17 @@ interface Namespace {
31583158
*
31593159
* @param x - input array
31603160
* @param n - number of singleton dimensions to prepend
3161+
* @param writable - boolean indicating whether a returned array should be writable
31613162
* @returns output array
31623163
*
31633164
* @example
31643165
* var array = require( './../../../array' );
31653166
*
31663167
* var x = array( [ [ 1, 2 ], [ 3, 4 ] ] );
3167-
* // returns <ndarray>
3168-
*
3169-
* var shx = x.shape;
3170-
* // returns [ 2, 2 ]
3171-
*
3172-
* var y = ns.prependSingletonDimensions( x, 3 );
3173-
* // returns <ndarray>
3174-
*
3175-
* var shy = y.shape;
3176-
* // returns [ 1, 1, 1, 2, 2 ]
3177-
*
3178-
* var v = y.get( 0, 0, 0, 0, 0 );
3179-
* // returns 1
3180-
*
3181-
* v = y.get( 0, 0, 0, 0, 1 );
3182-
* // returns 2
3183-
*
3184-
* v = y.get( 0, 0, 0, 1, 0 );
3185-
* // returns 3
3168+
* // returns <ndarray>[ [ 1, 2 ], [ 3, 4 ] ]
31863169
*
3187-
* v = y.get( 0, 0, 0, 1, 1 );
3188-
* // returns 4
3170+
* var y = ns.prependSingletonDimensions( x, 3, false );
3171+
* // returns <ndarray>[ [ [ [ [ 1, 2 ], [ 3, 4 ] ] ] ] ]
31893172
*/
31903173
prependSingletonDimensions: typeof prependSingletonDimensions;
31913174

0 commit comments

Comments
 (0)