Skip to content

Commit 00b16cb

Browse files
committed
Auto-generated commit
1 parent cef24be commit 00b16cb

File tree

7 files changed

+117
-8
lines changed

7 files changed

+117
-8
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/gsum) of the main repository where we’ll review and provide feedback.
44

5-
If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib.
5+
If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib.
66

77
We look forward to receiving your contribution! :smiley:

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,7 @@ jsconfig.json
188188
# Other editor files #
189189
######################
190190
.idea/
191+
192+
# Cursor #
193+
##########
194+
.cursorignore

CHANGELOG.md

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

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

99
<section class="features">
1010

@@ -22,6 +22,10 @@
2222

2323
<details>
2424

25+
- [`3565318`](https://github.com/stdlib-js/stdlib/commit/3565318e3639b3e44890ed15ccd73560d3cac14c) - **refactor:** update paths _(by Gururaj Gurram)_
26+
- [`3e9f3a0`](https://github.com/stdlib-js/stdlib/commit/3e9f3a0bdc4c231521f39148dbff889815bae6d7) - **docs:** fix missing period _(by Athan Reines)_
27+
- [`81c8221`](https://github.com/stdlib-js/stdlib/commit/81c8221abcaf41ef614344d9c4bd3f287ed443d0) - **test:** add signed zero tests _(by Athan Reines)_
28+
- [`f47e96c`](https://github.com/stdlib-js/stdlib/commit/f47e96cebf8b44bc5f2fe353d4f85550ceb0c65d) - **test:** add signed zero tests _(by Athan Reines)_
2529
- [`152dfd2`](https://github.com/stdlib-js/stdlib/commit/152dfd2a9f6f420dee659694435c9e44f3095601) - **feat:** add accessor arrays support to `blas/ext/base/gsum` [(#5134)](https://github.com/stdlib-js/stdlib/pull/5134) _(by Muhammad Haris)_
2630
- [`7456e9f`](https://github.com/stdlib-js/stdlib/commit/7456e9f877610353d1d91969bd7cd30e3ef211c8) - **refactor:** update `blas/base/gsum` to follow current project conventions [(#4924)](https://github.com/stdlib-js/stdlib/pull/4924) _(by Aayush Khanna)_
2731

@@ -35,9 +39,11 @@
3539

3640
### Contributors
3741

38-
A total of 2 people contributed to this release. Thank you to the following contributors:
42+
A total of 4 people contributed to this release. Thank you to the following contributors:
3943

4044
- Aayush Khanna
45+
- Athan Reines
46+
- Gururaj Gurram
4147
- Muhammad Haris
4248

4349
</section>

CONTRIBUTORS

Lines changed: 77 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,32 @@
33
# Contributors listed in alphabetical order.
44

55
Aadish Jain <[email protected]>
6+
Aarya Balwadkar <[email protected]>
67
Aayush Khanna <[email protected]>
8+
Abdelrahman Samir <[email protected]>
9+
Abdul Kaium <[email protected]>
10+
Abhay Punia <[email protected]>
711
Abhijit Raut <[email protected]>
12+
Abhishek Jain <[email protected]>
813
Adarsh Palaskar <[email protected]>
914
Aditya Sapra <[email protected]>
1015
Ahmed Atwa <[email protected]>
1116
Ahmed Kashkoush <[email protected]>
1217
Ahmed Khaled <[email protected]>
18+
Aksshay Balasubramanian <[email protected]>
1319
Aleksandr <[email protected]>
1420
Ali Salesi <[email protected]>
21+
AlyAbdelmoneim <[email protected]>
1522
Aman Bhansali <[email protected]>
23+
AmanBhadkariya <[email protected]>
1624
Amit Jimiwal <[email protected]>
25+
Annamalai Prabu <[email protected]>
26+
Anshu Kumar <[email protected]>
27+
Anshu Kumar <[email protected]>
1728
Anudeep Sanapala <[email protected]>
1829
Athan Reines <[email protected]>
1930
31+
Bhavishy Agrawal <[email protected]>
2032
Brendan Graetz <[email protected]>
2133
Bruno Fenzl <[email protected]>
2234
Bryan Elee <[email protected]>
@@ -26,23 +38,41 @@ Dan Rose <[email protected]>
2638
Daniel Killenberger <[email protected]>
2739
Daniel Yu <[email protected]>
2840
Debashis Maharana <[email protected]>
41+
Deep Trivedi <[email protected]>
42+
Deepak Singh <[email protected]>
2943
Desh Deepak Kant <[email protected]>
3044
45+
Dhanyabad behera <[email protected]>
3146
Dhruv Arvind Singh <[email protected]>
47+
Dhruvil Mehta <[email protected]>
48+
Dipjyoti Das <[email protected]>
3249
Divyansh Seth <[email protected]>
3350
Dominic Lim <[email protected]>
3451
Dominik Moritz <[email protected]>
3552
Dorrin Sotoudeh <[email protected]>
3653
EuniceSim142 <[email protected]>
3754
Frank Kovacs <[email protected]>
55+
GK Bishnoi <[email protected]>
56+
GURU PRASAD SHARMA <[email protected]>
57+
58+
Gautam Kaushik <[email protected]>
59+
Gautam sharma <[email protected]>
60+
Girish Garg <[email protected]>
3861
Golden Kumar <[email protected]>
3962
Gunj Joshi <[email protected]>
4063
Gururaj Gurram <[email protected]>
64+
Haroon Rasheed <[email protected]>
65+
4166
4267
Harshita Kalani <[email protected]>
68+
Hemang Choudhary <[email protected]>
69+
Hemant M Mehta <[email protected]>
4370
Hridyanshu <[email protected]>
4471
Jaimin Godhani <[email protected]>
72+
Jaison D Souza <[email protected]>
73+
Jalaj Kumar <[email protected]>
4574
James Gelok <[email protected]>
75+
4676
Jaysukh Makvana <[email protected]>
4777
Jenish Thapa <[email protected]>
4878
Jithin KS <[email protected]>
@@ -51,12 +81,21 @@ Joey Reed <[email protected]>
5181
Jordan Gallivan <[email protected]>
5282
Joris Labie <[email protected]>
5383
Justin Dennison <[email protected]>
54-
Karan Anand <[email protected]>
84+
Justyn Shelby <[email protected]>
85+
Karan Anand <[email protected]>
86+
Karan Vasudevamurthy <[email protected]>
87+
Karan Yadav <[email protected]>
5588
Karthik Prakash <[email protected]>
89+
Kaushikgtm <[email protected]>
90+
Kavyansh-Bagdi <[email protected]>
5691
Kohantika Nath <[email protected]>
92+
Krishnam Agarwal <[email protected]>
5793
Krishnendu Das <[email protected]>
5894
Kshitij-Dale <[email protected]>
95+
Lalit Narayan Yadav <[email protected]>
5996
Lovelin Dhoni J B <[email protected]>
97+
98+
Mahfuza Humayra Mohona <[email protected]>
6099
Manik Sharma <[email protected]>
61100
Manvith M <[email protected]>
62101
Marcus Fantham <[email protected]>
@@ -67,40 +106,60 @@ Mohammad Bin Aftab <[email protected]>
67106
Mohammad Kaif <[email protected]>
68107
Momtchil Momtchev <[email protected]>
69108
Muhammad Haris <[email protected]>
109+
Muhammad Taaha Tariq <[email protected]>
110+
Muhmmad Saad <[email protected]>
70111
Naresh Jagadeesan <[email protected]>
71112
Naveen Kumar <[email protected]>
72113
Neeraj Pathak <[email protected]>
114+
NirvedMishra <[email protected]>
73115
Nishant Shinde <[email protected]>
116+
Nishant singh <[email protected]>
117+
Nishchay Rajput <[email protected]>
74118
Nithin Katta <[email protected]>
75119
Nourhan Hasan <[email protected]>
76120
Ognjen Jevremović <[email protected]>
77121
Oneday12323 <[email protected]>
78122
Ori Miles <[email protected]>
79123
Philipp Burckhardt <[email protected]>
124+
Pierre Forstmann <[email protected]>
125+
Prajjwal Bajpai <[email protected]>
80126
Prajwal Kulkarni <[email protected]>
81-
Pranav Goswami <[email protected]>
127+
Pranav Goswami <[email protected]>
82128
Pranjal Jha <[email protected]>
83129
Prashant Kumar Yadav <[email protected]>
130+
PrathamBhamare <[email protected]>
84131
Pratik Singh <[email protected]>
85132
Pratyush Kumar Chouhan <[email protected]>
133+
Pravesh Kunwar <[email protected]>
86134
Priyansh Prajapati <[email protected]>
87135
Priyanshu Agarwal <[email protected]>
136+
Pulkit Gupta <[email protected]>
88137
Pushpendra Chandravanshi <[email protected]>
138+
Rahul Kumar <[email protected]>
89139
Raunak Kumar Gupta <[email protected]>
90140
Rejoan Sardar <[email protected]>
91141
Ricky Reusser <[email protected]>
92142
Ridam Garg <[email protected]>
93143
144+
Rishav Tarway <[email protected]>
94145
Robert Gislason <[email protected]>
95146
Roman Stetsyk <[email protected]>
147+
96148
Rutam Kathale <[email protected]>
97149
Ruthwik Chikoti <[email protected]>
98150
Ryan Seal <[email protected]>
99151
Rylan Yang <[email protected]>
152+
SAHIL KUMAR <[email protected]>
153+
SHIVAM YADAV <[email protected]>
154+
Sachin Raj <[email protected]>
155+
Sahil Goyal <[email protected]>
156+
Sai Avinash <[email protected]>
100157
Sai Srikar Dumpeti <[email protected]>
158+
Sanchay Ketan Sinha <[email protected]>
101159
Sarthak Paandey <[email protected]>
102160
Saurabh Singh <[email protected]>
103161
Seyyed Parsa Neshaei <[email protected]>
162+
Shabareesh Shetty <[email protected]>
104163
Shashank Shekhar Singh <[email protected]>
105164
Shivam Ahir <[email protected]>
106165
Shraddheya Shendre <[email protected]>
@@ -111,22 +170,38 @@ Snehil Shah <[email protected]>
111170
Soumajit Chatterjee <[email protected]>
112171
Spandan Barve <[email protected]>
113172
Stephannie Jiménez Gacha <[email protected]>
173+
Suhaib Ilahi <[email protected]>
114174
Suraj Kumar <[email protected]>
175+
Swapnil Hajare <[email protected]>
176+
Tanishq Ahuja <[email protected]>
115177
Tirtadwipa Manunggal <[email protected]>
116178
Tudor Pagu <[email protected]>
117179
Tufailahmed Bargir <[email protected]>
180+
Tushar Bhardwaj <[email protected]>
181+
Uday Kakade <[email protected]>
182+
Ujjwal Kirti <[email protected]>
118183
Utkarsh <http://[email protected]>
119184
Utkarsh Raj <[email protected]>
120185
UtkershBasnet <[email protected]>
121186
Vaibhav Patel <[email protected]>
187+
Vara Rahul Rajana <[email protected]>
122188
Varad Gupta <[email protected]>
123189
Vinit Pandit <[email protected]>
124190
Vivek Maurya <[email protected]>
125191
Xiaochuan Ye <[email protected]>
126192
Yaswanth Kosuru <[email protected]>
127193
Yernar Yergaziyev <[email protected]>
194+
Yugal Kaushik <[email protected]>
195+
Yuvi Mittal <[email protected]>
196+
devshree-bhati <[email protected]>
197+
128198
ekambains <[email protected]>
199+
fadiothman22 <[email protected]>
200+
iraandrushko <[email protected]>
201+
lohithganni <[email protected]>
129202
olenkabilonizhka <[email protected]>
130203
pranav-1720 <[email protected]>
204+
rahulrangers <[email protected]>
131205
132206
207+

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ var v = gsum.ndarray( 4, x, 2, 1 );
142142
## Notes
143143

144144
- If `N <= 0`, both functions return `0.0`.
145-
- Both functions support array-like objects having getter and setter accessors for array element access (e.g., [`@stdlib/array-base/accessor`][@stdlib/array/base/accessor])
145+
- Both functions support array-like objects having getter and setter accessors for array element access (e.g., [`@stdlib/array-base/accessor`][@stdlib/array/base/accessor]).
146146
- Depending on the environment, the typed versions ([`dsum`][@stdlib/blas/ext/base/dsum], [`ssum`][@stdlib/blas/ext/base/ssum], etc.) are likely to be significantly more performant.
147147

148148
</section>
@@ -189,7 +189,7 @@ console.log( v );
189189
- <span class="package-name">[`@stdlib/blas-ext/base/dsum`][@stdlib/blas/ext/base/dsum]</span><span class="delimiter">: </span><span class="description">calculate the sum of double-precision floating-point strided array elements.</span>
190190
- <span class="package-name">[`@stdlib/blas-ext/base/gnansum`][@stdlib/blas/ext/base/gnansum]</span><span class="delimiter">: </span><span class="description">calculate the sum of strided array elements, ignoring NaN values.</span>
191191
- <span class="package-name">[`@stdlib/blas-ext/base/ssum`][@stdlib/blas/ext/base/ssum]</span><span class="delimiter">: </span><span class="description">calculate the sum of single-precision floating-point strided array elements.</span>
192-
- <span class="package-name">[`@stdlib/stats-base/mean`][@stdlib/stats/base/mean]</span><span class="delimiter">: </span><span class="description">calculate the arithmetic mean of a strided array.</span>
192+
- <span class="package-name">[`@stdlib/stats-strided/mean`][@stdlib/stats/strided/mean]</span><span class="delimiter">: </span><span class="description">calculate the arithmetic mean of a strided array.</span>
193193

194194
</section>
195195

@@ -281,7 +281,7 @@ Copyright &copy; 2016-2025. The Stdlib [Authors][stdlib-authors].
281281

282282
[@stdlib/blas/ext/base/ssum]: https://github.com/stdlib-js/blas-ext-base-ssum
283283

284-
[@stdlib/stats/base/mean]: https://github.com/stdlib-js/stats-base-mean
284+
[@stdlib/stats/strided/mean]: https://github.com/stdlib-js/stats-strided-mean
285285

286286
<!-- </related-links> -->
287287

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@stdlib/array-base-to-accessor-array": "^0.2.2",
4747
"@stdlib/array-float64": "^0.2.2",
4848
"@stdlib/math-base-assert-is-nan": "^0.2.2",
49+
"@stdlib/math-base-assert-is-negative-zero": "^0.2.2",
4950
"@stdlib/math-base-special-pow": "^0.3.0",
5051
"@stdlib/random-array-discrete-uniform": "^0.2.1",
5152
"@stdlib/random-array-uniform": "^0.2.1",

test/test.ndarray.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
var tape = require( 'tape' );
2424
var isnan = require( '@stdlib/math-base-assert-is-nan' );
25+
var isNegativeZero = require( '@stdlib/math-base-assert-is-negative-zero' );
2526
var toAccessorArray = require( '@stdlib/array-base-to-accessor-array' );
2627
var gsum = require( './../lib/ndarray.js' );
2728

@@ -93,6 +94,28 @@ tape( 'the function calculates the sum of all strided array elements', function
9394
t.end();
9495
});
9596

97+
tape( 'the function preserves the sign of zero', function test( t ) {
98+
var x;
99+
var v;
100+
101+
x = [ -0.0, -0.0, -0.0, -0.0, -0.0 ];
102+
v = gsum( x.length, x, 1, 0 );
103+
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
104+
105+
t.end();
106+
});
107+
108+
tape( 'the function preserves the sign of zero (accessors)', function test( t ) {
109+
var x;
110+
var v;
111+
112+
x = [ -0.0, -0.0, -0.0, -0.0, -0.0 ];
113+
v = gsum( x.length, toAccessorArray( x ), 1, 0 );
114+
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
115+
116+
t.end();
117+
});
118+
96119
tape( 'if provided an `N` parameter less than or equal to `0`, the function returns `0.0`', function test( t ) {
97120
var x;
98121
var v;

0 commit comments

Comments
 (0)