Skip to content

Commit 81277d4

Browse files
committed
Auto-generated commit
1 parent ac17b1b commit 81277d4

File tree

6 files changed

+72
-4
lines changed

6 files changed

+72
-4
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

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-03-24)
7+
## Unreleased (2025-05-25)
88

99
<section class="features">
1010

@@ -23,6 +23,7 @@
2323

2424
<details>
2525

26+
- [`78a7aa3`](https://github.com/stdlib-js/stdlib/commit/78a7aa3deea6a0101776c4bdd902fdab949f5bfa) - **test:** add signed zero tests _(by Athan Reines)_
2627
- [`7a04093`](https://github.com/stdlib-js/stdlib/commit/7a040939ecb95a686cf2b66d7a912fcc39e5aa3d) - **docs:** update `blas/ext/base/dcusum` to follow current project conventions [(#5166)](https://github.com/stdlib-js/stdlib/pull/5166) _(by Muhammad Haris)_
2728
- [`62364f6`](https://github.com/stdlib-js/stdlib/commit/62364f62ea823a3b52c2ad25660ecd80c71f8f36) - **style:** fix C comment alignment _(by Philipp Burckhardt)_
2829
- [`5774557`](https://github.com/stdlib-js/stdlib/commit/5774557e951cb1ae566fc0587cbf03d47b067620) - **feat:** add C `ndarray` API and refactor `blas/ext/base/dcusumors` _(by Muhammad Haris, Athan Reines)_

CONTRIBUTORS

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,26 @@ Dev Goel <135586571+corsairier@users.noreply.github.com>
4343
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
4444
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
4545
Dhruvil Mehta <68022411+dhruvilmehta@users.noreply.github.com>
46+
Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com>
4647
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
4748
Dominic Lim <46486515+domlimm@users.noreply.github.com>
4849
Dominik Moritz <domoritz@gmail.com>
4950
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
5051
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
5152
Frank Kovacs <fran70kk@gmail.com>
5253
GK Bishnoi <gkishan1kyt@gmail.com>
54+
GURU PRASAD SHARMA <168292003+GURUPRASADSHARMA@users.noreply.github.com>
5355
Gaurav <gaurav70380@gmail.com>
5456
Gautam sharma <gautamkrishnasharma1@gmail.com>
57+
Girish Garg <garggirish2020@gmail.com>
5558
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
5659
Gunj Joshi <gunjjoshi8372@gmail.com>
5760
Gururaj Gurram <gururajgurram1512@gmail.com>
5861
Haroon Rasheed <51189276+haroon26@users.noreply.github.com>
59-
Harsh <149176984+hrshya@users.noreply.github.com>
62+
Harsh <harshyadav6078@gmail.com>
6063
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
6164
Harshita Kalani <harshitakalani02@gmail.com>
65+
Hemang Choudhary <coehemang@gmail.com>
6266
Hemant M Mehta <92446645+hemantmm@users.noreply.github.com>
6367
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
6468
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
@@ -75,15 +79,19 @@ Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
7579
Joris Labie <joris.labie1@gmail.com>
7680
Justin Dennison <justin1dennison@gmail.com>
7781
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
78-
Karan Anand <119553199+anandkaranubc@users.noreply.github.com>
82+
Karan Anand <anandkarancompsci@gmail.com>
83+
Karan Yadav <77043443+karanBRAVO@users.noreply.github.com>
7984
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
8085
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
86+
Kavyansh-Bagdi <153486713+Kavyansh-Bagdi@users.noreply.github.com>
8187
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
8288
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
8389
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
8490
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
91+
Lalit Narayan Yadav <162928571+LalitNarayanYadav@users.noreply.github.com>
8592
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
8693
MANI <77221000+Eternity0207@users.noreply.github.com>
94+
Mahfuza Humayra Mohona <mhmohona@gmail.com>
8795
Manik Sharma <maniksharma.rke@gmail.com>
8896
Manvith M <148960168+manvith2003@users.noreply.github.com>
8997
Marcus Fantham <mfantham@users.noreply.github.com>
@@ -94,10 +102,14 @@ Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
94102
Mohammad Kaif <mdkaifprofession@gmail.com>
95103
Momtchil Momtchev <momtchil@momtchev.com>
96104
Muhammad Haris <harriskhan047@outlook.com>
105+
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
106+
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
97107
Naresh Jagadeesan <naresh.naresh000@gmail.com>
98108
Naveen Kumar <stupiddint@gmail.com>
99109
Neeraj Pathak <neerajrpathak710@gmail.com>
110+
NirvedMishra <139633597+NirvedMishra@users.noreply.github.com>
100111
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
112+
Nishant singh <38534128+Nishantsingh11@users.noreply.github.com>
101113
Nishchay Rajput <121144841+NishchayRajput@users.noreply.github.com>
102114
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
103115
Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
@@ -110,8 +122,10 @@ Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
110122
Pranav Goswami <pranavchiku11@gmail.com>
111123
Pranjal Jha <97080887+PraneGIT@users.noreply.github.com>
112124
Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
125+
PrathamBhamare <164445568+PrathamBhamare@users.noreply.github.com>
113126
Pratik Singh <97464067+Pratik772846@users.noreply.github.com>
114127
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
128+
Pravesh Kunwar <praveshkunwar04@gmail.com>
115129
Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
116130
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
117131
Pulkit Gupta <65711278+pulkitgupta2@users.noreply.github.com>
@@ -125,11 +139,16 @@ Rishav <115060907+rishav2404@users.noreply.github.com>
125139
Rishav Tarway <rishavtarway@gmail.com>
126140
Robert Gislason <gztown2216@yahoo.com>
127141
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
142+
Rupa <102663541+Rupa-Rd@users.noreply.github.com>
128143
Rutam Kathale <138517416+performant23@users.noreply.github.com>
129144
Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
130145
Ryan Seal <splrk@users.noreply.github.com>
131146
Rylan Yang <137365285+rylany27@users.noreply.github.com>
147+
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
132148
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
149+
Sachin Raj <120590207+schnrj@users.noreply.github.com>
150+
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
151+
Sai Avinash <120403424+nasarobot@users.noreply.github.com>
133152
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
134153
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
135154
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
@@ -152,10 +171,12 @@ Tanishq Ahuja <68651083+TheGEN1U5@users.noreply.github.com>
152171
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
153172
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
154173
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
174+
Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
155175
Utkarsh <http://utkarsh11105@gmail.com>
156176
Utkarsh Raj <rajutkarsh2505@gmail.com>
157177
UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
158178
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
179+
Vara Rahul Rajana <123227543+rajanarahul93@users.noreply.github.com>
159180
Varad Gupta <varadgupta21@gmail.com>
160181
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
161182
Vivek Maurya <vm8118134@gmail.com>
@@ -164,11 +185,15 @@ Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
164185
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
165186
Yugal Kaushik <yugalkaushik14@gmail.com>
166187
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
188+
devshree-bhati <147095250+devshree-bhati@users.noreply.github.com>
167189
ditsu <170345142+ditsus@users.noreply.github.com>
168190
ekambains <bainsinbusiness@gmail.com>
169191
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
192+
iraandrushko <71790513+iraandrushko@users.noreply.github.com>
193+
lohithganni <116790357+lohithganni@users.noreply.github.com>
170194
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
171195
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
172196
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
173197
rainn <88160429+AmCodesLame@users.noreply.github.com>
174198
rei2hu <reimu@reimu.ws>
199+
zhanggy <geodaoyu@foxmail.com>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"devDependencies": {
5858
"@stdlib/array-float64": "^0.2.2",
5959
"@stdlib/assert-is-browser": "^0.2.2",
60+
"@stdlib/assert-is-same-float64array": "^0.2.2",
6061
"@stdlib/math-base-assert-is-nan": "^0.2.2",
6162
"@stdlib/math-base-special-pow": "^0.3.0",
6263
"@stdlib/random-array-discrete-uniform": "^0.2.1",

test/test.ndarray.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
var tape = require( 'tape' );
2424
var isnan = require( '@stdlib/math-base-assert-is-nan' );
2525
var Float64Array = require( '@stdlib/array-float64' );
26+
var isSameFloat64Array = require( '@stdlib/assert-is-same-float64array' );
2627
var dcusum = require( './../lib/ndarray.js' );
2728

2829

@@ -126,6 +127,26 @@ tape( 'the function calculates the cumulative sum', function test( t ) {
126127
t.end();
127128
});
128129

130+
tape( 'the function preserves the sign of zero', function test( t ) {
131+
var expected;
132+
var x;
133+
var y;
134+
135+
x = new Float64Array( [ -0.0, -0.0, -0.0, 0.0, 1.0 ] );
136+
y = new Float64Array( x.length );
137+
138+
dcusum( x.length, -0.0, x, 1, 0, y, 1, 0 );
139+
expected = new Float64Array([
140+
-0.0,
141+
-0.0,
142+
-0.0,
143+
0.0,
144+
1.0
145+
]);
146+
t.strictEqual( isSameFloat64Array( y, expected ), true, 'returns expected value' );
147+
t.end();
148+
});
149+
129150
tape( 'the function returns a reference to the output array', function test( t ) {
130151
var out;
131152
var x;

test/test.ndarray.native.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var resolve = require( 'path' ).resolve;
2424
var tape = require( 'tape' );
2525
var isnan = require( '@stdlib/math-base-assert-is-nan' );
2626
var Float64Array = require( '@stdlib/array-float64' );
27+
var isSameFloat64Array = require( '@stdlib/assert-is-same-float64array' );
2728
var tryRequire = require( '@stdlib/utils-try-require' );
2829

2930

@@ -135,6 +136,26 @@ tape( 'the function calculates the cumulative sum', opts, function test( t ) {
135136
t.end();
136137
});
137138

139+
tape( 'the function preserves the sign of zero', opts, function test( t ) {
140+
var expected;
141+
var x;
142+
var y;
143+
144+
x = new Float64Array( [ -0.0, -0.0, -0.0, 0.0, 1.0 ] );
145+
y = new Float64Array( x.length );
146+
147+
dcusum( x.length, -0.0, x, 1, 0, y, 1, 0 );
148+
expected = new Float64Array([
149+
-0.0,
150+
-0.0,
151+
-0.0,
152+
0.0,
153+
1.0
154+
]);
155+
t.strictEqual( isSameFloat64Array( y, expected ), true, 'returns expected value' );
156+
t.end();
157+
});
158+
138159
tape( 'the function returns a reference to the output array', opts, function test( t ) {
139160
var out;
140161
var x;

0 commit comments

Comments
 (0)