Skip to content

Commit 21add19

Browse files
committed
Auto-generated commit
1 parent 4a85f8a commit 21add19

2 files changed

Lines changed: 3 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ A total of 38 issues were closed in this release:
270270

271271
<details>
272272

273+
- [`50ffb8e`](https://github.com/stdlib-js/stdlib/commit/50ffb8e96b19a07cc4de32920e94b2863d1ff5ed) - **docs:** improve doctests for complex number instances in `array/to-fancy` [(#11974)](https://github.com/stdlib-js/stdlib/pull/11974) _(by Karan Anand)_
273274
- [`ccec3e4`](https://github.com/stdlib-js/stdlib/commit/ccec3e43076042d67dbaa814e5140c10f1b85b58) - **docs:** improve doctests for complex number instances in `array/complex128` [(#11973)](https://github.com/stdlib-js/stdlib/pull/11973) _(by Karan Anand)_
274275
- [`a67c356`](https://github.com/stdlib-js/stdlib/commit/a67c35688a0009092f281d79378c4c53cb226bd5) - **docs:** improve doctests for complex number instances in `array/complex64` [(#11972)](https://github.com/stdlib-js/stdlib/pull/11972) _(by Karan Anand)_
275276
- [`923db7f`](https://github.com/stdlib-js/stdlib/commit/923db7f63656e408cf390029bd7985b4e736b518) - **docs:** improve doctests for complex number instances in `array/base/accessors` [(#11970)](https://github.com/stdlib-js/stdlib/pull/11970) _(by Karan Anand)_

to-fancy/README.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -428,33 +428,19 @@ When assigning a real-valued scalar to a complex number array (e.g., [`Complex12
428428

429429
```javascript
430430
var Complex128Array = require( '@stdlib/array/complex128' );
431-
var real = require( '@stdlib/complex/float64/real' );
432-
var imag = require( '@stdlib/complex/float64/imag' );
433431

434432
var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
435433
var y = array2fancy( x );
436434

437435
// Retrieve the first element:
438436
var v = y[ 0 ];
439-
// returns <Complex128>
440-
441-
var re = real( v );
442-
// returns 1.0
443-
444-
var im = imag( v );
445-
// returns 2.0
437+
// returns <Complex128>[ 1.0, 2.0 ]
446438

447439
// Assign a real-valued scalar to the first element:
448440
y[ 0 ] = 9.0;
449441

450442
v = y[ 0 ];
451-
// returns <Complex128>
452-
453-
re = real( v );
454-
// returns 9.0
455-
456-
im = imag( v );
457-
// returns 0.0
443+
// returns <Complex128>[ 9.0, 0.0 ]
458444
```
459445

460446
</section>

0 commit comments

Comments
 (0)