Skip to content

Commit 0b4f7ff

Browse files
committed
Auto-generated commit
1 parent 097f52b commit 0b4f7ff

File tree

3 files changed

+7
-21
lines changed

3 files changed

+7
-21
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
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+
- [`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)_
259260
- [`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)_
260261
- [`e7b7521`](https://github.com/stdlib-js/stdlib/commit/e7b75217911ae3e84967293e40893e9f4a36075b) - **bench:** refactor to use string interpolation in `array/base/accessor-getter` [(#8659)](https://github.com/stdlib-js/stdlib/pull/8659) _(by Rohit R Bhat)_
261262
- [`dc36299`](https://github.com/stdlib-js/stdlib/commit/dc36299e2dbbda5ab1482e5777334567529e5459) - **bench:** refactor to use string interpolation in `array/base/accessor-setter` [(#8662)](https://github.com/stdlib-js/stdlib/pull/8662) _(by Rohit R Bhat)_
@@ -629,14 +630,15 @@ A total of 33 issues were closed in this release:
629630

630631
### Contributors
631632

632-
A total of 22 people contributed to this release. Thank you to the following contributors:
633+
A total of 23 people contributed to this release. Thank you to the following contributors:
633634

634635
- Aayush Khanna
635636
- Abhijit Raut
636637
- Aditya Sapra
637638
- Ahmed Kashkoush
638639
- Aman Singh
639640
- Anshu Kumar
641+
- Aryan kumar
640642
- Athan Reines
641643
- Divyanshu
642644
- Geo Daoyu

base/last/README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,16 @@ var out = last( x );
7373

7474
```javascript
7575
var Complex64Array = require( '@stdlib/array/complex64' );
76-
var realf = require( '@stdlib/complex/float32/real' );
77-
var imagf = require( '@stdlib/complex/float32/imag' );
7876
var last = require( '@stdlib/array/base/last' );
7977

8078
// Create a complex number array:
8179
var arr = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
8280

8381
// Return the last element:
8482
var out = last( arr );
85-
// returns <Complex64>
83+
// returns <Complex64>[ 5.0, 6.0 ]
8684

87-
var re = realf( out );
88-
// returns 5.0
89-
90-
var im = imagf( out );
91-
// returns 6.0
92-
93-
console.log( '%d + %di', re, im );
85+
console.log( out.toString() );
9486
// => '5 + 6i'
9587
```
9688

base/last/examples/index.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,14 @@
1919
'use strict';
2020

2121
var Complex64Array = require( './../../../complex64' );
22-
var realf = require( '@stdlib/complex/float32/real' );
23-
var imagf = require( '@stdlib/complex/float32/imag' );
2422
var last = require( './../lib' );
2523

2624
// Create a complex number array:
2725
var arr = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
2826

2927
// Return the last element:
3028
var out = last( arr );
31-
// returns <Complex64>
29+
// returns <Complex64>[ 5.0, 6.0 ]
3230

33-
var re = realf( out );
34-
// returns 5.0
35-
36-
var im = imagf( out );
37-
// returns 6.0
38-
39-
console.log( '%d + %di', re, im );
31+
console.log( out.toString() );
4032
// => '5 + 6i'

0 commit comments

Comments
 (0)