Skip to content

Commit c66c1f3

Browse files
committed
Auto-generated commit
1 parent f9ee65e commit c66c1f3

File tree

2 files changed

+8
-23
lines changed

2 files changed

+8
-23
lines changed

CHANGELOG.md

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

257257
<details>
258258

259+
- [`db85f69`](https://github.com/stdlib-js/stdlib/commit/db85f697acea61131500a6dc823835b19d76bdc7) - **docs:** improve doctests for complex number instances in `array/base/at` [(#8654)](https://github.com/stdlib-js/stdlib/pull/8654) _(by Aryan kumar, Athan Reines)_
259260
- [`d07452d`](https://github.com/stdlib-js/stdlib/commit/d07452d17c9e97ff292fb8882044000aeed0fe1c) - **docs:** improve doctests for complex number instances in `array/base/resolve-getter` [(#8669)](https://github.com/stdlib-js/stdlib/pull/8669) _(by Aryan kumar, Athan Reines, stdlib-bot)_
260261
- [`95d33f1`](https://github.com/stdlib-js/stdlib/commit/95d33f1571a6bc992d1ef8d222477cb8d211fe06) - **docs:** improve doctests for complex number instances in `array/base/last` [(#8668)](https://github.com/stdlib-js/stdlib/pull/8668) _(by Aryan kumar)_
261262
- [`f774fb9`](https://github.com/stdlib-js/stdlib/commit/f774fb91d2d1704ee91588613a0ac0d68c766c6c) - **bench:** refactor to use string interpolation in `array/base/accessors` [(#8665)](https://github.com/stdlib-js/stdlib/pull/8665) _(by Rohit R Bhat)_

base/at/docs/types/index.d.ts

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,17 @@ import { Collection, AccessorArrayLike, Complex128Array, Complex64Array } from '
3232
*
3333
* @example
3434
* var Complex128Array = require( '@stdlib/array/complex128' );
35-
* var real = require( '@stdlib/complex/float64/real' );
36-
* var imag = require( '@stdlib/complex/float64/imag' );
3735
*
3836
* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
3937
*
4038
* var v = at( x, 0 );
41-
* // returns <Complex128>
39+
* // returns <Complex128>[ 1.0, 2.0 ]
4240
*
4341
* v = at( x, 1 );
44-
* // returns <Complex128>
42+
* // returns <Complex128>[ 3.0, 4.0 ]
4543
*
4644
* v = at( x, -2 );
47-
* // returns <Complex128>
48-
*
49-
* var re = real( v );
50-
* // returns 5.0
51-
*
52-
* var im = imag( v );
53-
* // returns 6.0
45+
* // returns <Complex128>[ 5.0, 6.0 ]
5446
*/
5547
declare function at( x: Complex128Array, index: number ): Complex128 | void;
5648

@@ -62,26 +54,18 @@ declare function at( x: Complex128Array, index: number ): Complex128 | void;
6254
* @returns array element
6355
*
6456
* @example
65-
* var Complex128Array = require( '@stdlib/array/complex64' );
66-
* var realf = require( '@stdlib/complex/float32/real' );
67-
* var imagf = require( '@stdlib/complex/float32/imag' );
57+
* var Complex64Array = require( '@stdlib/array/complex64' );
6858
*
6959
* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
7060
*
7161
* var v = at( x, 0 );
72-
* // returns <Complex64>
62+
* // returns <Complex64>[ 1.0, 2.0 ]
7363
*
7464
* v = at( x, 1 );
75-
* // returns <Complex64>
65+
* // returns <Complex64>[ 3.0, 4.0 ]
7666
*
7767
* v = at( x, -2 );
78-
* // returns <Complex64>
79-
*
80-
* var re = realf( v );
81-
* // returns 5.0
82-
*
83-
* var im = imagf( v );
84-
* // returns 6.0
68+
* // returns <Complex64>[ 5.0, 6.0 ]
8569
*/
8670
declare function at( x: Complex64Array, index: number ): Complex64 | void;
8771

0 commit comments

Comments
 (0)