Skip to content

Commit fa218d1

Browse files
committed
Auto-generated commit
1 parent db8a103 commit fa218d1

20 files changed

+3977
-1080
lines changed

CHANGELOG.md

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

7-
## Unreleased (2025-07-05)
7+
## Unreleased (2025-08-13)
88

99
<section class="features">
1010

1111
### Features
1212

13+
- [`dfbf338`](https://github.com/stdlib-js/stdlib/commit/dfbf3388bb499ec7ec5f453758acec3e6d18ee0b) - add `assign` and `strided` methods to `complex/float64/base/div` [(#7771)](https://github.com/stdlib-js/stdlib/pull/7771)
1314
- [`afa2318`](https://github.com/stdlib-js/stdlib/commit/afa231834cb55bc1f0fb01d16b4cb81e7d435a35) - add `complex/float64/base/div`
1415

1516
</section>
@@ -22,6 +23,7 @@
2223

2324
<details>
2425

26+
- [`dfbf338`](https://github.com/stdlib-js/stdlib/commit/dfbf3388bb499ec7ec5f453758acec3e6d18ee0b) - **feat:** add `assign` and `strided` methods to `complex/float64/base/div` [(#7771)](https://github.com/stdlib-js/stdlib/pull/7771) _(by Aayush Khanna, stdlib-bot)_
2527
- [`7cfd30f`](https://github.com/stdlib-js/stdlib/commit/7cfd30f9518e86adde577c3ebaacfd874e2cc651) - **test:** add appropriate values in test cases [(#7557)](https://github.com/stdlib-js/stdlib/pull/7557) _(by Shabareesh Shetty, Athan Reines)_
2628
- [`6aeced9`](https://github.com/stdlib-js/stdlib/commit/6aeced9c39c38399d41e0da9a63ba3729452470b) - **docs:** update examples for `complex/float64/base/div` [(#7266)](https://github.com/stdlib-js/stdlib/pull/7266) _(by Shabareesh Shetty)_
2729
- [`4821a02`](https://github.com/stdlib-js/stdlib/commit/4821a020f23d86279b8a487509afb4aca176dd57) - **chore:** change examples for `complex/float64/base/div` [(#7180)](https://github.com/stdlib-js/stdlib/pull/7180) _(by Shabareesh Shetty)_
@@ -40,8 +42,9 @@
4042

4143
### Contributors
4244

43-
A total of 4 people contributed to this release. Thank you to the following contributors:
45+
A total of 5 people contributed to this release. Thank you to the following contributors:
4446

47+
- Aayush Khanna
4548
- Athan Reines
4649
- Gururaj Gurram
4750
- Karan Anand

CONTRIBUTORS

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ Abdelrahman Samir <60700731+abdelrahman04@users.noreply.github.com>
99
Abdul Kaium <97376242+impawstarlight@users.noreply.github.com>
1010
Abhay Punia <156515195+Hecker165@users.noreply.github.com>
1111
Abhijit Raut <abhijitmraut8010@gmail.com>
12+
Abhishek G <166795493+AbhishekG-Codes@users.noreply.github.com>
1213
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
1314
Adarsh Palaskar <adarshpalaskar99@gmail.com>
1415
Aditya Sapra <adityaework@gmail.com>
16+
Aditya Singh <adityasinghk099@gmail.com>
1517
Ahmed Atwa <Ahmedatwa866@yahoo.com>
1618
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1719
Ahmed Khaled <kahmd1444@gmail.com>
@@ -23,12 +25,16 @@ Aman Bhansali <bhansali.1@iitj.ac.in>
2325
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
2426
Amisha Chhajed <136238836+amishhaa@users.noreply.github.com>
2527
Amit Jimiwal <amitjimiwal45@gmail.com>
28+
Anmol Sah <113588714+anmolsah@users.noreply.github.com>
2629
Annamalai Prabu <apfossdev@gmail.com>
2730
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
2831
Anshu Kumar <contact.anshukumar@protonmail.com>
2932
Anudeep Sanapala <anudeep0306@gmail.com>
33+
Arihant Pal <arihant0pal@gmail.com>
3034
Aryan Bhirud <112156883+AryanBhirud@users.noreply.github.com>
35+
AryanJ18 <18aryanj2006@gmail.com>
3136
Athan Reines <kgryte@gmail.com>
37+
Atharva Patil <124063987+atharva-patil-23@users.noreply.github.com>
3238
Ayaka <73595362+USERSATOSHI@users.noreply.github.com>
3339
Bhavishy Agrawal <90029607+bhavishy2801@users.noreply.github.com>
3440
Brendan Graetz <bguiz@users.noreply.github.com>
@@ -43,6 +49,7 @@ Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
4349
Debashis Maharana <debashismaharana7854@gmail.com>
4450
Deep Trivedi <128926685+thedeeppp@users.noreply.github.com>
4551
Deepak Singh <78257493+Deepak91168@users.noreply.github.com>
52+
Deepak Singh <negid0253@gmail.com>
4653
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
4754
Dev Goel <135586571+corsairier@users.noreply.github.com>
4855
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
@@ -60,6 +67,7 @@ GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
6067
Gaurav <gaurav70380@gmail.com>
6168
Gautam Kaushik <162317291+Kaushikgtm@users.noreply.github.com>
6269
Gautam sharma <gautamkrishnasharma1@gmail.com>
70+
GeoDaoyu <geodaoyu@foxmail.com>
6371
Girish Garg <garggirish2020@gmail.com>
6472
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
6573
Gunj Joshi <gunjjoshi8372@gmail.com>
@@ -113,6 +121,8 @@ Momtchil Momtchev <momtchil@momtchev.com>
113121
Muhammad Haris <harriskhan047@outlook.com>
114122
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
115123
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
124+
NEEKUorAAYUSH <aayush10072004@gmail.com>
125+
Nakul Krishnakumar <nakulkrishnakumar86@gmail.com>
116126
Naresh Jagadeesan <naresh.naresh000@gmail.com>
117127
Naveen Kumar <stupiddint@gmail.com>
118128
Neeraj Pathak <neerajrpathak710@gmail.com>
@@ -127,6 +137,7 @@ Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
127137
Ori Miles <97595296+orimiles5@users.noreply.github.com>
128138
Philipp Burckhardt <pburckhardt@outlook.com>
129139
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
140+
Pradyumn Prasad <pradyumnprasad.567@gmail.com>
130141
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
131142
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
132143
Pranav Goswami <pranavchiku11@gmail.com>
@@ -162,14 +173,17 @@ Sai Avinash <120403424+nasarobot@users.noreply.github.com>
162173
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
163174
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
164175
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
176+
Satyajeet Chavan <chavansatyajeet2004@gmail.com>
165177
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
166178
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
167179
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
168180
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
169181
Shivam Ahir <11shivam00@gmail.com>
182+
Shivansh <114570926+shiv343@users.noreply.github.com>
170183
Shraddheya Shendre <shendreshraddheya@gmail.com>
171184
Shubh Mehta <93862397+Shubh942@users.noreply.github.com>
172185
Shubham Mishra <shubh622005@gmail.com>
186+
Siddhesh waje <117733253+siddhesh434@users.noreply.github.com>
173187
Sivam Das <100067002+Sivam2313@users.noreply.github.com>
174188
Snehil Shah <snehilshah.989@gmail.com>
175189
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
@@ -189,10 +203,12 @@ Utkarsh <http://utkarsh11105@gmail.com>
189203
Utkarsh Raj <rajutkarsh2505@gmail.com>
190204
UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
191205
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
206+
Vansh Choudhary <iamvanshchaudhary7@gmail.com>
192207
Vara Rahul Rajana <123227543+rajanarahul93@users.noreply.github.com>
193208
Varad Gupta <varadgupta21@gmail.com>
194209
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
195210
Vivek Maurya <vm8118134@gmail.com>
211+
Wendy Yuchen Sun <wendyyuchensun@gmail.com>
196212
Xiaochuan Ye <tap91624@gmail.com>
197213
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
198214
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,61 @@ var v = cdiv( z1, z2 );
8383
// returns <Complex128>[ 5.0, 3.0 ]
8484
```
8585

86+
#### cdiv.assign( re1, im1, re2, im2, out, strideOut, offsetOut )
87+
88+
Divides two double-precision complex floating-point numbers and assigns results to a provided output array.
89+
90+
```javascript
91+
var Float64Array = require( '@stdlib/array-float64' );
92+
93+
var out = new Float64Array( 2 );
94+
var v = cdiv.assign( -13.0, -1.0, -2.0, 1.0, out, 1, 0 );
95+
// returns <Float64Array>[ 5.0, 3.0 ]
96+
97+
var bool = ( out === v );
98+
// returns true
99+
```
100+
101+
The function supports the following parameters:
102+
103+
- **re1**: real component of the first complex number.
104+
- **im1**: imaginary component of the first complex number.
105+
- **re2**: real component of the second complex number.
106+
- **im2**: imaginary component of the second complex number.
107+
- **out**: output array.
108+
- **strideOut**: stride length for `out`.
109+
- **offsetOut**: starting index for `out`.
110+
111+
#### cdiv.strided( z1, sz1, oz1, z2, sz2, oz2, out, so, oo )
112+
113+
Divides two double-precision complex floating-point numbers stored in real-valued strided array views and assigns results to a provided strided output array.
114+
115+
```javascript
116+
var Float64Array = require( '@stdlib/array-float64' );
117+
118+
var z1 = new Float64Array( [ -13.0, -1.0 ] );
119+
var z2 = new Float64Array( [ -2.0, 1.0 ] );
120+
var out = new Float64Array( 2 );
121+
122+
var v = cdiv.strided( z1, 1, 0, z2, 1, 0, out, 1, 0 );
123+
// returns <Float64Array>[ 5.0, 3.0 ]
124+
125+
var bool = ( out === v );
126+
// returns true
127+
```
128+
129+
The function supports the following parameters:
130+
131+
- **z1**: first complex number strided array view.
132+
- **sz1**: stride length for `z1`.
133+
- **oz1**: starting index for `z1`.
134+
- **z2**: second complex number strided array view.
135+
- **sz2**: stride length for `z2`.
136+
- **oz2**: starting index for `z2`.
137+
- **out**: output array.
138+
- **so**: stride length for `out`.
139+
- **oo**: starting index for `out`.
140+
86141
</section>
87142

88143
<!-- /.usage -->

benchmark/benchmark.assign.js

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
// MODULES //
22+
23+
var bench = require( '@stdlib/bench-harness' );
24+
var uniform = require( '@stdlib/random-array-uniform' );
25+
var isnan = require( '@stdlib/math-base-assert-is-nan' );
26+
var Float64Array = require( '@stdlib/array-float64' );
27+
var pkg = require( './../package.json' ).name;
28+
var cdiv = require( './../lib' );
29+
30+
31+
// VARIABLES //
32+
33+
var options = {
34+
'dtype': 'float64'
35+
};
36+
37+
38+
// MAIN //
39+
40+
bench( pkg+':assign', function benchmark( b ) {
41+
var out;
42+
var re;
43+
var im;
44+
var N;
45+
var i;
46+
var j;
47+
var k;
48+
49+
N = 100;
50+
re = uniform( N, -500.0, 500.0, options );
51+
im = uniform( N, -500.0, 500.0, options );
52+
53+
out = new Float64Array( 2 );
54+
55+
b.tic();
56+
for ( i = 0; i < b.iterations; i++ ) {
57+
j = i % N;
58+
k = ( i+1 ) % N;
59+
out = cdiv.assign( re[ j ], im[ j ], re[ k ], im[ k ], out, 1, 0 );
60+
if ( typeof out !== 'object' ) {
61+
b.fail( 'should return an object' );
62+
}
63+
}
64+
b.toc();
65+
if ( isnan( out[ 0 ] ) || isnan( out[ 1 ] ) ) {
66+
b.fail( 'should not return NaN' );
67+
}
68+
b.pass( 'benchmark finished' );
69+
b.end();
70+
});

benchmark/benchmark.strided.js

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
// MODULES //
22+
23+
var bench = require( '@stdlib/bench-harness' );
24+
var uniform = require( '@stdlib/random-array-uniform' );
25+
var isnan = require( '@stdlib/math-base-assert-is-nan' );
26+
var Float64Array = require( '@stdlib/array-float64' );
27+
var pkg = require( './../package.json' ).name;
28+
var cdiv = require( './../lib' );
29+
30+
31+
// VARIABLES //
32+
33+
var options = {
34+
'dtype': 'float64'
35+
};
36+
37+
38+
// MAIN //
39+
40+
bench( pkg+':strided', function benchmark( b ) {
41+
var out;
42+
var z1;
43+
var z2;
44+
var N;
45+
var i;
46+
var j;
47+
48+
N = 50;
49+
z1 = uniform( N*2, -500.0, 500.0, options );
50+
z2 = uniform( N*2, -500.0, 500.0, options );
51+
52+
out = new Float64Array( 2 );
53+
54+
b.tic();
55+
for ( i = 0; i < b.iterations; i++ ) {
56+
j = ( i % N ) * 2;
57+
out = cdiv.strided( z1, 1, j, z2, 1, j, out, 1, 0 );
58+
if ( typeof out !== 'object' ) {
59+
b.fail( 'should return an object' );
60+
}
61+
}
62+
b.toc();
63+
if ( isnan( out[ 0 ] ) || isnan( out[ 1 ] ) ) {
64+
b.fail( 'should not return NaN' );
65+
}
66+
b.pass( 'benchmark finished' );
67+
b.end();
68+
});

dist/index.js

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

0 commit comments

Comments
 (0)