Skip to content

Commit 7a54ef0

Browse files
committed
Auto-generated commit
1 parent 4657567 commit 7a54ef0

File tree

8 files changed

+14
-62
lines changed

8 files changed

+14
-62
lines changed

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-01)
7+
## Unreleased (2025-06-09)
88

99
<section class="features">
1010

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

2323
<details>
2424

25+
- [`30c471f`](https://github.com/stdlib-js/stdlib/commit/30c471f4887835a6ca2827fa9ef3cb2abb1756af) - **docs:** update examples for `complex/float32/base/scale` [(#7292)](https://github.com/stdlib-js/stdlib/pull/7292) _(by Shabareesh Shetty)_
2526
- [`7475c9d`](https://github.com/stdlib-js/stdlib/commit/7475c9dfd5461211d8071b7073b8958300dd5838) - **feat:** add `complex/float32/base/scale` [(#7156)](https://github.com/stdlib-js/stdlib/pull/7156) _(by Shabareesh Shetty, Athan Reines)_
2627

2728
</details>

CONTRIBUTORS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
2222
Aman Bhansali <bhansali.1@iitj.ac.in>
2323
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
2424
Amit Jimiwal <amitjimiwal45@gmail.com>
25+
Annamalai Prabu <apfossdev@gmail.com>
2526
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
2627
Anshu Kumar <contact.anshukumar@protonmail.com>
2728
Anudeep Sanapala <anudeep0306@gmail.com>
@@ -38,6 +39,7 @@ Daniel Killenberger <daniel.killenberger@gmail.com>
3839
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
3940
Debashis Maharana <debashismaharana7854@gmail.com>
4041
Deep Trivedi <128926685+thedeeppp@users.noreply.github.com>
42+
Deepak Singh <78257493+Deepak91168@users.noreply.github.com>
4143
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
4244
Dev Goel <135586571+corsairier@users.noreply.github.com>
4345
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
@@ -53,6 +55,7 @@ Frank Kovacs <fran70kk@gmail.com>
5355
GK Bishnoi <gkishan1kyt@gmail.com>
5456
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
5557
Gaurav <gaurav70380@gmail.com>
58+
Gautam Kaushik <162317291+Kaushikgtm@users.noreply.github.com>
5659
Gautam sharma <gautamkrishnasharma1@gmail.com>
5760
Girish Garg <garggirish2020@gmail.com>
5861
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
@@ -118,6 +121,7 @@ Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
118121
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
119122
Ori Miles <97595296+orimiles5@users.noreply.github.com>
120123
Philipp Burckhardt <pburckhardt@outlook.com>
124+
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
121125
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
122126
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
123127
Pranav Goswami <pranavchiku11@gmail.com>

README.md

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

7676
```javascript
7777
var Complex64 = require( '@stdlib/complex-float32-ctor' );
78-
var realf = require( '@stdlib/complex-float32-real' );
79-
var imagf = require( '@stdlib/complex-float32-imag' );
8078

8179
var c = new Complex64( 5.0, 3.0 );
8280

8381
var v = scale( 5.0, c );
84-
// returns <Complex64>
85-
86-
var re = realf( v );
87-
// returns 25.0
88-
89-
var im = imagf( v );
90-
// returns 15.0
82+
// returns <Complex64>[ 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/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 Complex64 = require( '@stdlib/complex-float32-ctor' );
39-
* var realf = require( '@stdlib/complex-float32-real' );
40-
* var imagf = require( '@stdlib/complex-float32-imag' );
4139
*
4240
* var z = new Complex64( 5.0, 3.0 );
43-
* // returns <Complex64>
4441
*
4542
* var out = scale( 5.0, z );
46-
* // returns <Complex64>
47-
*
48-
* var re = realf( out );
49-
* // returns 25.0
50-
*
51-
* var im = imagf( out );
52-
* // returns 15.0
43+
* // returns <Complex64>[ 25.0, 15.0 ]
5344
*/
5445
( alpha: number, z: Complex64 ): Complex64;
5546

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

lib/index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,12 @@
2525
*
2626
* @example
2727
* var Complex64 = require( '@stdlib/complex-float32-ctor' );
28-
* var realf = require( '@stdlib/complex-float32-real' );
29-
* var imagf = require( '@stdlib/complex-float32-imag' );
3028
* var scale = require( '@stdlib/complex-float32-base-scale' );
3129
*
3230
* var z = new Complex64( 5.0, 3.0 );
33-
* // returns <Complex64>
3431
*
3532
* var out = scale( scalar, z );
36-
* // returns <Complex64>
37-
*
38-
* var re = realf( out );
39-
* // returns 25.0
40-
*
41-
* var im = imagf( out );
42-
* // returns 15.0
33+
* // returns <Complex64>[ 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
@@ -37,20 +37,11 @@ var imagf = require( '@stdlib/complex-float32-imag' );
3737
*
3838
* @example
3939
* var Complex64 = require( '@stdlib/complex-float32-ctor' );
40-
* var realf = require( '@stdlib/complex-float32-real' );
41-
* var imagf = require( '@stdlib/complex-float32-imag' );
4240
*
4341
* var z = new Complex64( 5.0, 3.0 );
44-
* // returns <Complex64>
4542
*
4643
* var out = scale( 5.0, z );
47-
* // returns <Complex64>
48-
*
49-
* var re = realf( out );
50-
* // returns 25.0
51-
*
52-
* var im = imagf( out );
53-
* // returns 15.0
44+
* // returns <Complex64>[ 25.0, 15.0 ]
5445
*/
5546
function scale( alpha, z ) {
5647
return new Complex64( f32( realf(z)*alpha ), f32( imagf(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 Complex64 = require( '@stdlib/complex-float32-ctor' );
39-
* var realf = require( '@stdlib/complex-float32-real' );
40-
* var imagf = require( '@stdlib/complex-float32-imag' );
4139
*
4240
* var z = new Complex64( 5.0, 3.0 );
43-
* // returns <Complex64>
4441
*
4542
* var out = scale( 5.0, z );
46-
* // returns <Complex64>
47-
*
48-
* var re = realf( out );
49-
* // returns 25.0
50-
*
51-
* var im = imagf( out );
52-
* // returns 15.0
43+
* // returns <Complex64>[ 25.0, 15.0 ]
5344
*/
5445
function scale( alpha, z ) {
5546
var v = addon( alpha, z );

0 commit comments

Comments
 (0)