Skip to content

Commit 0cc87a8

Browse files
committed
Auto-generated commit
1 parent dcd8638 commit 0cc87a8

8 files changed

Lines changed: 12 additions & 68 deletions

File tree

CHANGELOG.md

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

7-
## Unreleased (2025-06-02)
7+
## Unreleased (2025-06-04)
88

99
<section class="features">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`9bdeea6`](https://github.com/stdlib-js/stdlib/commit/9bdeea6f5229c13589cc191b2f83e89541c26199) - **docs:** update examples for `complex/float64/base/scale` [(#7196)](https://github.com/stdlib-js/stdlib/pull/7196) _(by Shabareesh Shetty)_
2526
- [`c705a94`](https://github.com/stdlib-js/stdlib/commit/c705a94eb25e0783437c29a1a9bdb6a41fb09207) - **style:** add missing space [(#7173)](https://github.com/stdlib-js/stdlib/pull/7173) _(by Shabareesh Shetty)_
2627
- [`5c8faed`](https://github.com/stdlib-js/stdlib/commit/5c8faed8016941ff5a337bb4d14b1bdb65748993) - **docs:** update example _(by Athan Reines)_
2728
- [`a1e230f`](https://github.com/stdlib-js/stdlib/commit/a1e230f29297caa89880e9c194c615a0400fb7bc) - **chore:** clean up cppcheck-suppress comments _(by Karan Anand)_

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,11 @@ Scales a double-precision complex floating-point number by a real-valued double-
7575

7676
```javascript
7777
var Complex128 = require( '@stdlib/complex-float64-ctor' );
78-
var real = require( '@stdlib/complex-float64-real' );
79-
var imag = require( '@stdlib/complex-float64-imag' );
8078

8179
var z = new Complex128( 5.0, 3.0 );
8280

8381
var v = scale( 5.0, z );
84-
// returns <Complex128>
85-
86-
var re = real( v );
87-
// returns 25.0
88-
89-
var im = imag( v );
90-
// returns 15.0
82+
// returns <Complex128>[ 25.0, 15.0 ]
9183
```
9284

9385
The function supports the following parameters:

dist/index.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/repl.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@
2121
> var z = new {{alias:@stdlib/complex/float64/ctor}}( 5.0, 3.0 )
2222
<Complex128>
2323
> var out = {{alias}}( 5.0, z )
24-
<Complex128>
25-
> var re = {{alias:@stdlib/complex/float64/real}}( out )
26-
25.0
27-
> var im = {{alias:@stdlib/complex/float64/imag}}( out )
28-
15.0
24+
<Complex128>[ 25.0, 15.0 ]
2925

3026

3127
{{alias}}.assign( alpha, re, im, out, strideOut, offsetOut )

docs/types/index.d.ts

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,11 @@ interface Scale {
3636
*
3737
* @example
3838
* var Complex128 = require( '@stdlib/complex-float64-ctor' );
39-
* var real = require( '@stdlib/complex-float64-real' );
40-
* var imag = require( '@stdlib/complex-float64-imag' );
4139
*
4240
* var z = new Complex128( 5.0, 3.0 );
43-
* // returns <Complex128>
4441
*
4542
* var out = scale( 5.0, z );
46-
* // returns <Complex128>
47-
*
48-
* var re = real( out );
49-
* // returns 25.0
50-
*
51-
* var im = imag( out );
52-
* // returns 15.0
43+
* // returns <Complex128>[ 25.0, 15.0 ]
5344
*/
5445
( alpha: number, z: Complex128 ): Complex128;
5546

@@ -108,20 +99,11 @@ interface Scale {
10899
*
109100
* @example
110101
* var Complex128 = require( '@stdlib/complex-float64-ctor' );
111-
* var real = require( '@stdlib/complex-float64-real' );
112-
* var imag = require( '@stdlib/complex-float64-imag' );
113102
*
114103
* var z = new Complex128( 5.0, 3.0 );
115-
* // returns <Complex128>
116104
*
117105
* var out = scale( 5.0, z );
118-
* // returns <Complex128>
119-
*
120-
* var re = real( out );
121-
* // returns 25.0
122-
*
123-
* var im = imag( out );
124-
* // returns 15.0
106+
* // returns <Complex128>[ 25.0, 15.0 ]
125107
*
126108
* @example
127109
* var Float64Array = require( '@stdlib/array-float64' );

lib/index.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,12 @@
2525
*
2626
* @example
2727
* var Complex128 = require( '@stdlib/complex-float64-ctor' );
28-
* var real = require( '@stdlib/complex-float64-real' );
29-
* var imag = require( '@stdlib/complex-float64-imag' );
3028
* var scale = require( '@stdlib/complex-float64-base-scale' );
3129
*
3230
* var z = new Complex128( 5.0, 3.0 );
33-
* // returns <Complex128>
3431
*
35-
* var out = scale( scalar, z );
36-
* // returns <Complex128>
37-
*
38-
* var re = real( out );
39-
* // returns 25.0
40-
*
41-
* var im = imag( out );
42-
* // returns 15.0
32+
* var out = scale( 5.0, z );
33+
* // returns <Complex128>[ 25.0, 15.0 ]
4334
*/
4435

4536
// MODULES //

lib/main.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,11 @@ var imag = require( '@stdlib/complex-float64-imag' );
3636
*
3737
* @example
3838
* var Complex128 = require( '@stdlib/complex-float64-ctor' );
39-
* var real = require( '@stdlib/complex-float64-real' );
40-
* var imag = require( '@stdlib/complex-float64-imag' );
4139
*
4240
* var z = new Complex128( 5.0, 3.0 );
43-
* // returns <Complex128>
4441
*
4542
* var out = scale( 5.0, z );
46-
* // returns <Complex128>
47-
*
48-
* var re = real( out );
49-
* // returns 25.0
50-
*
51-
* var im = imag( out );
52-
* // returns 15.0
43+
* // returns <Complex128>[ 25.0, 15.0 ]
5344
*/
5445
function scale( alpha, z ) {
5546
return new Complex128( real( z ) * alpha, imag( z ) * alpha );

lib/native.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,11 @@ var addon = require( './../src/addon.node' );
3636
*
3737
* @example
3838
* var Complex128 = require( '@stdlib/complex-float64-ctor' );
39-
* var real = require( '@stdlib/complex-float64-real' );
40-
* var imag = require( '@stdlib/complex-float64-imag' );
4139
*
4240
* var z = new Complex128( 5.0, 3.0 );
43-
* // returns <Complex128>
4441
*
4542
* var out = scale( 5.0, z );
46-
* // returns <Complex128>
47-
*
48-
* var re = real( out );
49-
* // returns 25.0
50-
*
51-
* var im = imag( out );
52-
* // returns 15.0
43+
* // returns <Complex128>[ 25.0, 15.0 ]
5344
*/
5445
function scale( alpha, z ) {
5546
var v = addon( alpha, z );

0 commit comments

Comments
 (0)