Skip to content

Commit b5a9139

Browse files
committed
Auto-generated commit
1 parent 47bc727 commit b5a9139

File tree

8 files changed

+89
-32
lines changed

8 files changed

+89
-32
lines changed

.github/.keepalive

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

.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/math/base/special/fast/alpha-max-plus-beta-min) 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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
55
<section class="release" id="unreleased">
66

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

99
<section class="commits">
1010

1111
### Commits
1212

1313
<details>
1414

15+
- [`5982554`](https://github.com/stdlib-js/stdlib/commit/59825542a6f81a71eb16ce2007aac9c12f351938) - **docs:** replace manual `for` loop in examples [(#6644)](https://github.com/stdlib-js/stdlib/pull/6644) _(by Harsh)_
1516
- [`bd18248`](https://github.com/stdlib-js/stdlib/commit/bd1824843709cd0ba9de4351fceefd27069293c7) - **docs:** update related packages sections [(#4675)](https://github.com/stdlib-js/stdlib/pull/4675) _(by stdlib-bot, Philipp Burckhardt)_
1617

1718
</details>
@@ -24,8 +25,9 @@
2425

2526
### Contributors
2627

27-
A total of 1 person contributed to this release. Thank you to this contributor:
28+
A total of 2 people contributed to this release. Thank you to the following contributors:
2829

30+
- Harsh
2931
- Philipp Burckhardt
3032

3133
</section>

CONTRIBUTORS

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

55
Aadish Jain <jain.aadishj@gmail.com>
6+
Aarya Balwadkar <142713127+AaryaBalwadkar@users.noreply.github.com>
67
Aayush Khanna <aayushiitbhu23@gmail.com>
8+
Abdelrahman Samir <60700731+abdelrahman04@users.noreply.github.com>
9+
Abdul Kaium <97376242+impawstarlight@users.noreply.github.com>
10+
Abhay Punia <156515195+Hecker165@users.noreply.github.com>
711
Abhijit Raut <abhijitmraut8010@gmail.com>
12+
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
813
Adarsh Palaskar <adarshpalaskar99@gmail.com>
914
Aditya Sapra <adityaework@gmail.com>
1015
Ahmed Atwa <Ahmedatwa866@yahoo.com>
1116
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1217
Ahmed Khaled <kahmd1444@gmail.com>
18+
Aksshay Balasubramanian <119944779+Aksshay88@users.noreply.github.com>
1319
Aleksandr <112382387+alextes90@users.noreply.github.com>
1420
Ali Salesi <ali_sal1381@yahoo.com>
21+
AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
1522
Aman Bhansali <bhansali.1@iitj.ac.in>
23+
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
1624
Amit Jimiwal <amitjimiwal45@gmail.com>
25+
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
26+
Anshu Kumar <contact.anshukumar@protonmail.com>
1727
Anudeep Sanapala <anudeep0306@gmail.com>
1828
Athan Reines <kgryte@gmail.com>
1929
Ayaka <73595362+USERSATOSHI@users.noreply.github.com>
30+
Bhavishy Agrawal <90029607+bhavishy2801@users.noreply.github.com>
2031
Brendan Graetz <bguiz@users.noreply.github.com>
2132
Bruno Fenzl <brunofenzl@gmail.com>
2233
Bryan Elee <rxbryn@gmail.com>
@@ -26,23 +37,36 @@ Dan Rose <danoftheroses@gmail.com>
2637
Daniel Killenberger <daniel.killenberger@gmail.com>
2738
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
2839
Debashis Maharana <debashismaharana7854@gmail.com>
40+
Deep Trivedi <128926685+thedeeppp@users.noreply.github.com>
2941
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
3042
Dev Goel <135586571+corsairier@users.noreply.github.com>
43+
Dhanyabad behera <110620935+dhanyabad11@users.noreply.github.com>
3144
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
45+
Dhruvil Mehta <68022411+dhruvilmehta@users.noreply.github.com>
46+
Dipjyoti Das <126075231+dipexplorer@users.noreply.github.com>
3247
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
3348
Dominic Lim <46486515+domlimm@users.noreply.github.com>
3449
Dominik Moritz <domoritz@gmail.com>
3550
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
3651
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
3752
Frank Kovacs <fran70kk@gmail.com>
53+
GK Bishnoi <gkishan1kyt@gmail.com>
54+
Gaurav <gaurav70380@gmail.com>
55+
Gautam sharma <gautamkrishnasharma1@gmail.com>
3856
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
3957
Gunj Joshi <gunjjoshi8372@gmail.com>
40-
Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com>
58+
Gururaj Gurram <gururajgurram1512@gmail.com>
59+
Haroon Rasheed <51189276+haroon26@users.noreply.github.com>
60+
Harsh <149176984+hrshya@users.noreply.github.com>
4161
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
4262
Harshita Kalani <harshitakalani02@gmail.com>
63+
Hemant M Mehta <92446645+hemantmm@users.noreply.github.com>
4364
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
4465
Jaimin Godhani <112328542+Jai0401@users.noreply.github.com>
66+
Jaison D Souza <123267719+jsndz@users.noreply.github.com>
67+
Jalaj Kumar <142599224+jalajk3004@users.noreply.github.com>
4568
James Gelok <jdgelok@gmail.com>
69+
Jay Soni <jaygsoni14@gmail.com>
4670
Jaysukh Makvana <jaysukhmakvana2004@gmail.com>
4771
Jenish Thapa <141203631+jenish-thapa@users.noreply.github.com>
4872
Jithin KS <jithinks112@gmail.com>
@@ -51,55 +75,80 @@ Joey Reed <joeyrreed@gmail.com>
5175
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
5276
Joris Labie <joris.labie1@gmail.com>
5377
Justin Dennison <justin1dennison@gmail.com>
54-
Karan Anand <119553199+anandkaranubc@users.noreply.github.com>
78+
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
79+
Karan Anand <anandkarancompsci@gmail.com>
80+
Karan Yadav <77043443+karanBRAVO@users.noreply.github.com>
5581
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
82+
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
83+
Kavyansh-Bagdi <153486713+Kavyansh-Bagdi@users.noreply.github.com>
5684
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
85+
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
5786
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
5887
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
5988
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
89+
MANI <77221000+Eternity0207@users.noreply.github.com>
90+
Mahfuza Humayra Mohona <mhmohona@gmail.com>
6091
Manik Sharma <maniksharma.rke@gmail.com>
6192
Manvith M <148960168+manvith2003@users.noreply.github.com>
6293
Marcus Fantham <mfantham@users.noreply.github.com>
6394
Matt Cochrane <matthew.cochrane.eng@gmail.com>
6495
Mihir Pandit <129577900+MSP20086@users.noreply.github.com>
6596
Milan Raj <rajsite@users.noreply.github.com>
97+
Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
6698
Mohammad Kaif <mdkaifprofession@gmail.com>
6799
Momtchil Momtchev <momtchil@momtchev.com>
68100
Muhammad Haris <harriskhan047@outlook.com>
101+
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
102+
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
69103
Naresh Jagadeesan <naresh.naresh000@gmail.com>
70104
Naveen Kumar <stupiddint@gmail.com>
71105
Neeraj Pathak <neerajrpathak710@gmail.com>
106+
NirvedMishra <139633597+NirvedMishra@users.noreply.github.com>
72107
Nishant Shinde <97207366+nishant-s7@users.noreply.github.com>
108+
Nishchay Rajput <121144841+NishchayRajput@users.noreply.github.com>
73109
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
74110
Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
75111
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
76112
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
77113
Ori Miles <97595296+orimiles5@users.noreply.github.com>
78114
Philipp Burckhardt <pburckhardt@outlook.com>
115+
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
79116
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
80-
Pranav Goswami <goswami.4@iitj.ac.in>
117+
Pranav Goswami <pranavchiku11@gmail.com>
81118
Pranjal Jha <97080887+PraneGIT@users.noreply.github.com>
82119
Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
120+
PrathamBhamare <164445568+PrathamBhamare@users.noreply.github.com>
83121
Pratik Singh <97464067+Pratik772846@users.noreply.github.com>
84122
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
123+
Pravesh Kunwar <praveshkunwar04@gmail.com>
85124
Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
86125
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
126+
Pulkit Gupta <65711278+pulkitgupta2@users.noreply.github.com>
87127
Pushpendra Chandravanshi <pushpendrachandravanshi4@gmail.com>
128+
Rahul Kumar <132570066+rahulptl165@users.noreply.github.com>
88129
Raunak Kumar Gupta <raunakmodanwal321@gmail.com>
89130
Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
90131
Ricky Reusser <rsreusser@gmail.com>
91132
Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
92133
Rishav <115060907+rishav2404@users.noreply.github.com>
134+
Rishav Tarway <rishavtarway@gmail.com>
93135
Robert Gislason <gztown2216@yahoo.com>
94136
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
137+
Rupa <102663541+Rupa-Rd@users.noreply.github.com>
95138
Rutam Kathale <138517416+performant23@users.noreply.github.com>
96139
Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
97140
Ryan Seal <splrk@users.noreply.github.com>
98141
Rylan Yang <137365285+rylany27@users.noreply.github.com>
142+
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
143+
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
144+
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
145+
Sai Avinash <120403424+nasarobot@users.noreply.github.com>
99146
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
147+
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
100148
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
101149
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
102150
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
151+
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
103152
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
104153
Shivam Ahir <11shivam00@gmail.com>
105154
Shraddheya Shendre <shendreshraddheya@gmail.com>
@@ -110,7 +159,9 @@ Snehil Shah <snehilshah.989@gmail.com>
110159
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
111160
Spandan Barve <contact@marsian.dev>
112161
Stephannie Jiménez Gacha <steff456@hotmail.com>
162+
Suhaib Ilahi <suhaib.elahi87@gmail.com>
113163
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
164+
Tanishq Ahuja <68651083+TheGEN1U5@users.noreply.github.com>
114165
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
115166
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
116167
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
@@ -124,6 +175,14 @@ Vivek Maurya <vm8118134@gmail.com>
124175
Xiaochuan Ye <tap91624@gmail.com>
125176
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
126177
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
178+
Yugal Kaushik <yugalkaushik14@gmail.com>
179+
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
180+
ditsu <170345142+ditsus@users.noreply.github.com>
181+
ekambains <bainsinbusiness@gmail.com>
182+
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
183+
lohithganni <116790357+lohithganni@users.noreply.github.com>
127184
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
185+
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
186+
rahulrangers <127782777+rahulrangers@users.noreply.github.com>
128187
rainn <88160429+AmCodesLame@users.noreply.github.com>
129188
rei2hu <reimu@reimu.ws>

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,17 @@ var h = hypot( 5.0, 12.0 );
145145
<!-- eslint no-undef: "error" -->
146146

147147
```javascript
148-
var randu = require( '@stdlib/random-base-randu' );
149-
var round = require( '@stdlib/math-base-special-round' );
148+
var discreteUniform = require( '@stdlib/random-array-discrete-uniform' );
149+
var logEachMap = require( '@stdlib/console-log-each-map' );
150150
var ampbm = require( '@stdlib/math-base-special-fast-alpha-max-plus-beta-min' );
151151

152-
var x;
153-
var y;
154-
var h;
155-
var i;
152+
var opts = {
153+
'dtype': 'float64'
154+
};
155+
var x = discreteUniform( 100, -50, 50, opts );
156+
var y = discreteUniform( 100, -50, 50, opts );
156157

157-
for ( i = 0; i < 100; i++ ) {
158-
x = round( randu()*100.0 ) - 50.0;
159-
y = round( randu()*100.0 ) - 50.0;
160-
h = ampbm( x, y );
161-
console.log( 'hypot(%d,%d) = %d', x, y, h );
162-
}
158+
logEachMap( 'hypot(%d,%d) = %0.4f', x, y, ampbm );
163159
```
164160

165161
</section>

examples/index.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,14 @@
1818

1919
'use strict';
2020

21-
var randu = require( '@stdlib/random-base-randu' );
22-
var round = require( '@stdlib/math-base-special-round' );
21+
var discreteUniform = require( '@stdlib/random-array-discrete-uniform' );
22+
var logEachMap = require( '@stdlib/console-log-each-map' );
2323
var ampbm = require( './../lib' );
2424

25-
var x;
26-
var y;
27-
var h;
28-
var i;
25+
var opts = {
26+
'dtype': 'float64'
27+
};
28+
var x = discreteUniform( 100, -50, 50, opts );
29+
var y = discreteUniform( 100, -50, 50, opts );
2930

30-
for ( i = 0; i < 100; i++ ) {
31-
x = round( randu()*100.0 ) - 50.0;
32-
y = round( randu()*100.0 ) - 50.0;
33-
h = ampbm( x, y );
34-
console.log( 'hypot(%d,%d) = %d', x, y, h );
35-
}
31+
logEachMap( 'hypot(%d,%d) = %0.4f', x, y, ampbm );

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@
4747
"@stdlib/utils-library-manifest": "^0.2.2"
4848
},
4949
"devDependencies": {
50+
"@stdlib/console-log-each-map": "github:stdlib-js/console-log-each-map#main",
5051
"@stdlib/math-base-assert-is-nan": "^0.2.2",
5152
"@stdlib/math-base-special-abs": "^0.2.2",
5253
"@stdlib/math-base-special-ceil": "^0.2.2",
5354
"@stdlib/math-base-special-hypot": "^0.2.2",
54-
"@stdlib/math-base-special-round": "^0.3.0",
5555
"@stdlib/math-base-special-roundn": "^0.2.2",
56+
"@stdlib/random-array-discrete-uniform": "^0.2.1",
5657
"@stdlib/random-base-randu": "^0.2.1",
5758
"@stdlib/utils-try-require": "^0.2.2",
5859
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",

0 commit comments

Comments
 (0)