Skip to content

Commit 119271f

Browse files
committed
Auto-generated commit
1 parent 440c6c4 commit 119271f

4 files changed

Lines changed: 15 additions & 9 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ package.json.copy
2525
###############
2626
build/
2727
downloads/
28+
plans/
2829
reports/
2930
tmp/
3031

@@ -175,6 +176,10 @@ acs-*.bib
175176
*.ind
176177
*.ist
177178

179+
# Git #
180+
#######
181+
.worktrees
182+
178183
# Visual Studio #
179184
#################
180185
.vscode/

CHANGELOG.md

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

7-
## Unreleased (2026-04-17)
7+
## Unreleased (2026-05-10)
88

99
<section class="commits">
1010

1111
### Commits
1212

1313
<details>
1414

15+
- [`1674c38`](https://github.com/stdlib-js/stdlib/commit/1674c3865eca607df401b7ccebea4873fba422c0) - **docs:** improve doctests for complex number typed arrays in `ndarray/filter-map` [(#12042)](https://github.com/stdlib-js/stdlib/pull/12042) _(by Karan Anand)_
1516
- [`6d6b9d4`](https://github.com/stdlib-js/stdlib/commit/6d6b9d42d8904ca49fb55e2ca464780573886aa0) - **bench:** refactor to use string interpolation in `@stdlib/ndarray` [(#11446)](https:-/github.com/stdlib-js/stdlib/pull/11446) _(by Karan Anand)_
1617

1718
</details>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ The callback function is provided the following arguments:
216216
'dtype': 'complex128'
217217
};
218218
var y = filterMap( x, opts, fcn );
219-
// returns <ndarray>
219+
// returns <ndarray>[ <Complex128>[ 8.0, 0.0 ], <Complex128>[ 9.0, 0.0 ], <Complex128>[ 10.0, 0.0 ] ]
220220
```
221221

222222
- If a provided callback function returns `undefined`, the function skips the respective [ndarray][@stdlib/ndarray/ctor] element. If the callback function returns a value other than `undefined`, the function stores the callback's return value in the output [ndarray][@stdlib/ndarray/ctor].

docs/types/index.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ declare function filterMap<V = unknown>( x: float32ndarray, fcn: Callback<number
382382
* // returns <ndarray>
383383
*
384384
* var y = filterMap( x, fcn );
385-
* // returns <ndarray>
385+
* // returns <ndarray>[ <Complex64>[ 7.0, 8.0 ], <Complex64>[ 9.0, 10.0 ], <Complex64>[ 11.0, 12.0 ] ]
386386
*/
387387
declare function filterMap<V = unknown>( x: complex64ndarray, fcn: Callback<Complex64, ComplexLike, V>, thisArg?: ThisParameterType<Callback<Complex64, ComplexLike, V>> ): complex64ndarray;
388388

@@ -413,7 +413,7 @@ declare function filterMap<V = unknown>( x: complex64ndarray, fcn: Callback<Comp
413413
* // returns <ndarray>
414414
*
415415
* var y = filterMap( x, fcn );
416-
* // returns <ndarray>
416+
* // returns <ndarray>[ <Complex128>[ 7.0, 8.0 ], <Complex128>[ 9.0, 10.0 ], <Complex128>[ 11.0, 12.0 ] ]
417417
*/
418418
declare function filterMap<V = unknown>( x: complex128ndarray, fcn: Callback<Complex128, ComplexLike, V>, thisArg?: ThisParameterType<Callback<Complex128, ComplexLike, V>> ): complex128ndarray;
419419

@@ -799,7 +799,7 @@ declare function filterMap<V = unknown>( x: float32ndarray, options: OrderOption
799799
* 'order': 'row-major'
800800
* };
801801
* var y = filterMap( x, opts, fcn );
802-
* // returns <ndarray>
802+
* // returns <ndarray>[ <Complex64>[ 7.0, 8.0 ], <Complex64>[ 9.0, 10.0 ], <Complex64>[ 11.0, 12.0 ] ]
803803
*/
804804
declare function filterMap<V = unknown>( x: complex64ndarray, options: OrderOptions, fcn: Callback<Complex64, ComplexLike, V>, thisArg?: ThisParameterType<Callback<Complex64, ComplexLike, V>> ): complex64ndarray;
805805

@@ -835,7 +835,7 @@ declare function filterMap<V = unknown>( x: complex64ndarray, options: OrderOpti
835835
* 'order': 'row-major'
836836
* };
837837
* var y = filterMap( x, opts, fcn );
838-
* // returns <ndarray>
838+
* // returns <ndarray>[ <Complex128>[ 7.0, 8.0 ], <Complex128>[ 9.0, 10.0 ], <Complex128>[ 11.0, 12.0 ] ]
839839
*/
840840
declare function filterMap<V = unknown>( x: complex128ndarray, options: OrderOptions, fcn: Callback<Complex128, ComplexLike, V>, thisArg?: ThisParameterType<Callback<Complex128, ComplexLike, V>> ): complex128ndarray;
841841

@@ -1270,7 +1270,7 @@ declare function filterMap<T = unknown, U = unknown, V = unknown>( x: typedndarr
12701270
* 'dtype': 'complex128'
12711271
* };
12721272
* var y = filterMap( x, opts, fcn );
1273-
* // returns <ndarray>
1273+
* // returns <ndarray>[ <Complex128>[ 8.0, 0.0 ], <Complex128>[ 9.0, 0.0 ], <Complex128>[ 10.0, 0.0 ] ]
12741274
*/
12751275
declare function filterMap<T = unknown, U = unknown, V = unknown>( x: typedndarray<T>, options: Complex128Options, fcn: Callback<T, U, V>, thisArg?: ThisParameterType<Callback<T, U, V>> ): complex128ndarray;
12761276

@@ -1288,7 +1288,7 @@ declare function filterMap<T = unknown, U = unknown, V = unknown>( x: typedndarr
12881288
* @example
12891289
* var Float64Array = require( '@stdlib/array-float64' );
12901290
* var ndarray = require( '@stdlib/ndarray-ctor' );
1291-
* var Complex64 = require( '@stdlib/complex-float64-ctor' );
1291+
* var Complex64 = require( '@stdlib/complex-float32-ctor' );
12921292
*
12931293
* function fcn( z, idx ) {
12941294
* if ( idx[ 0 ] > 0 ) {
@@ -1308,7 +1308,7 @@ declare function filterMap<T = unknown, U = unknown, V = unknown>( x: typedndarr
13081308
* 'dtype': 'complex64'
13091309
* };
13101310
* var y = filterMap( x, opts, fcn );
1311-
* // returns <ndarray>
1311+
* // returns <ndarray>[ <Complex64>[ 8.0, 0.0 ], <Complex64>[ 9.0, 0.0 ], <Complex64>[ 10.0, 0.0 ] ]
13121312
*/
13131313
declare function filterMap<T = unknown, U = unknown, V = unknown>( x: typedndarray<T>, options: Complex64Options, fcn: Callback<T, U, V>, thisArg?: ThisParameterType<Callback<T, U, V>> ): complex64ndarray;
13141314

0 commit comments

Comments
 (0)