Skip to content

Commit 01a2546

Browse files
committed
Auto-generated commit
1 parent f20a7d6 commit 01a2546

File tree

6 files changed

+10
-21
lines changed

6 files changed

+10
-21
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<section class="release" id="unreleased">
66

7-
## Unreleased (2026-04-14)
7+
## Unreleased (2026-04-16)
88

99
<section class="features">
1010

@@ -842,6 +842,7 @@ A total of 49 issues were closed in this release:
842842

843843
<details>
844844

845+
- [`3609aed`](https://github.com/stdlib-js/stdlib/commit/3609aedbb47d90fa656da6e159f8dba6c3333cf7) - **docs:** improve doctests for ndarray instances in `ndarray/with` [(#11476)](https://github.com/stdlib-js/stdlib/pull/11476) _(by Uday Kakade)_
845846
- [`36e8e4b`](https://github.com/stdlib-js/stdlib/commit/36e8e4be9c05de181d5e69f7a0f4b689d27c3f35) - **docs:** update namespace table of contents [(#11448)](https://github.com/stdlib-js/stdlib/pull/11448) _(by stdlib-bot)_
846847
- [`4f9ef0a`](https://github.com/stdlib-js/stdlib/commit/4f9ef0a54ec0f9e065ea8ab3b514128d3c3adef1) - **bench:** refactor to use string interpolation in `@stdlib/ndarray/base` [(#11429)](https://github.com/stdlib-js/stdlib/pull/11429) _(by Karan Anand)_
847848
- [`886ad4c`](https://github.com/stdlib-js/stdlib/commit/886ad4c592bb63614a1aedc2f6db0895eb737a01) - **feat:** add `fullBy` to namespace _(by Athan Reines)_
@@ -2445,7 +2446,7 @@ A total of 49 issues were closed in this release:
24452446

24462447
### Contributors
24472448

2448-
A total of 44 people contributed to this release. Thank you to the following contributors:
2449+
A total of 45 people contributed to this release. Thank you to the following contributors:
24492450

24502451
- Aryan kumar
24512452
- Athan Reines
@@ -2486,6 +2487,7 @@ A total of 44 people contributed to this release. Thank you to the following con
24862487
- Suyash Pathak
24872488
- Tejasvini Ramaswamy
24882489
- Tushar Bhardwaj
2490+
- Uday Kakade
24892491
- anee3
24902492
- ashutoshsao
24912493
- kaushal-kumar-it

with/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ var x = zeros( [ 2, 2 ], {
5353
// returns <ndarray>
5454

5555
var out = ndarrayWith( x, [ 0, 0 ], 1.0 );
56-
// returns <ndarray>
57-
58-
var v = out.get( 0, 0 );
59-
// returns 1.0
56+
// returns <ndarray>[ [ 1, 0 ], [ 0, 0 ] ]
6057
```
6158

6259
The function accepts the following arguments:

with/docs/repl.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@
2222
Examples
2323
--------
2424
> var x = {{alias:@stdlib/ndarray/array}}( [ [ 1, 2 ], [ 3, 4 ] ] );
25-
> var out = {{alias}}( x, [ 0, 0 ], 5 );
26-
> var v = out.get( 0, 0 )
27-
5
25+
> var out = {{alias}}( x, [ 0, 0 ], 5 )
26+
<ndarray>[ [ 5, 2 ], [ 3, 4 ] ]
2827

2928
See Also
3029
--------

with/docs/types/index.d.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ import { typedndarray } from '@stdlib/types/ndarray';
4242
* var x = ndarray( 'generic', buffer, shape, strides, offset, order );
4343
*
4444
* var out = ndarrayWith( x, [ 0, 0 ], 5 );
45-
* // returns <ndarray>
46-
*
47-
* var v = out.get( 0, 0 );
48-
* // returns 5
45+
* // returns <ndarray>[ [ 5, 2 ], [ 3, 4 ] ]
4946
*/
5047
declare function ndarrayWith<T = unknown, U extends typedndarray<T> = typedndarray<T>>( x: typedndarray<T>, indices: Array<number>, value: T ): U;
5148

with/lib/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@
3737
* // returns <ndarray>
3838
*
3939
* var out = ndarrayWith( x, [ 0, 0 ], 5 );
40-
* // returns <ndarray>
41-
*
42-
* var v = out.get( 0, 0 );
43-
* // returns 5
40+
* // returns <ndarray>[ [ 5, 2 ], [ 3, 4 ] ]
4441
*/
4542

4643
// MODULES //

with/lib/main.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ var format = require( '@stdlib/string/format' );
5858
* var x = ndarray( 'generic', buffer, shape, strides, offset, order );
5959
*
6060
* var out = ndarrayWith( x, [ 0, 0 ], 5 );
61-
* // returns <ndarray>
62-
*
63-
* var v = out.get( 0, 0 );
64-
* // returns 5
61+
* // returns <ndarray>[ [ 5, 2 ], [ 3, 4 ] ]
6562
*/
6663
function ndarrayWith( x, indices, value ) {
6764
var args;

0 commit comments

Comments
 (0)