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

-1
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

+1-1
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

+4
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

+4-2
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

+62-3
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,31 @@
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+
Anshu Kumar <[email protected]>
26+
Anshu Kumar <[email protected]>
1727
Anudeep Sanapala <[email protected]>
1828
Athan Reines <[email protected]>
1929
30+
Bhavishy Agrawal <[email protected]>
2031
Brendan Graetz <[email protected]>
2132
Bruno Fenzl <[email protected]>
2233
Bryan Elee <[email protected]>
@@ -26,23 +37,36 @@ Dan Rose <[email protected]>
2637
Daniel Killenberger <[email protected]>
2738
Daniel Yu <[email protected]>
2839
Debashis Maharana <[email protected]>
40+
Deep Trivedi <[email protected]>
2941
Desh Deepak Kant <[email protected]>
3042
43+
Dhanyabad behera <[email protected]>
3144
Dhruv Arvind Singh <[email protected]>
45+
Dhruvil Mehta <[email protected]>
46+
Dipjyoti Das <[email protected]>
3247
Divyansh Seth <[email protected]>
3348
Dominic Lim <[email protected]>
3449
Dominik Moritz <[email protected]>
3550
Dorrin Sotoudeh <[email protected]>
3651
EuniceSim142 <[email protected]>
3752
Frank Kovacs <[email protected]>
53+
GK Bishnoi <[email protected]>
54+
55+
Gautam sharma <[email protected]>
3856
Golden Kumar <[email protected]>
3957
Gunj Joshi <[email protected]>
40-
Gururaj Gurram <[email protected]>
58+
Gururaj Gurram <[email protected]>
59+
Haroon Rasheed <[email protected]>
60+
4161
4262
Harshita Kalani <[email protected]>
63+
Hemant M Mehta <[email protected]>
4364
Hridyanshu <[email protected]>
4465
Jaimin Godhani <[email protected]>
66+
Jaison D Souza <[email protected]>
67+
Jalaj Kumar <[email protected]>
4568
James Gelok <[email protected]>
69+
4670
Jaysukh Makvana <[email protected]>
4771
Jenish Thapa <[email protected]>
4872
Jithin KS <[email protected]>
@@ -51,55 +75,80 @@ Joey Reed <[email protected]>
5175
Jordan Gallivan <[email protected]>
5276
Joris Labie <[email protected]>
5377
Justin Dennison <[email protected]>
54-
Karan Anand <[email protected]>
78+
Justyn Shelby <[email protected]>
79+
Karan Anand <[email protected]>
80+
Karan Yadav <[email protected]>
5581
Karthik Prakash <[email protected]>
82+
Kaushikgtm <[email protected]>
83+
Kavyansh-Bagdi <[email protected]>
5684
Kohantika Nath <[email protected]>
85+
Krishnam Agarwal <[email protected]>
5786
Krishnendu Das <[email protected]>
5887
Kshitij-Dale <[email protected]>
5988
Lovelin Dhoni J B <[email protected]>
89+
90+
Mahfuza Humayra Mohona <[email protected]>
6091
Manik Sharma <[email protected]>
6192
Manvith M <[email protected]>
6293
Marcus Fantham <[email protected]>
6394
Matt Cochrane <[email protected]>
6495
Mihir Pandit <[email protected]>
6596
Milan Raj <[email protected]>
97+
Mohammad Bin Aftab <[email protected]>
6698
Mohammad Kaif <[email protected]>
6799
Momtchil Momtchev <[email protected]>
68100
Muhammad Haris <[email protected]>
101+
Muhammad Taaha Tariq <[email protected]>
102+
Muhmmad Saad <[email protected]>
69103
Naresh Jagadeesan <[email protected]>
70104
Naveen Kumar <[email protected]>
71105
Neeraj Pathak <[email protected]>
106+
NirvedMishra <[email protected]>
72107
Nishant Shinde <[email protected]>
108+
Nishchay Rajput <[email protected]>
73109
Nithin Katta <[email protected]>
74110
Nourhan Hasan <[email protected]>
75111
Ognjen Jevremović <[email protected]>
76112
Oneday12323 <[email protected]>
77113
Ori Miles <[email protected]>
78114
Philipp Burckhardt <[email protected]>
115+
Prajjwal Bajpai <[email protected]>
79116
Prajwal Kulkarni <[email protected]>
80-
Pranav Goswami <[email protected]>
117+
Pranav Goswami <[email protected]>
81118
Pranjal Jha <[email protected]>
82119
Prashant Kumar Yadav <[email protected]>
120+
PrathamBhamare <[email protected]>
83121
Pratik Singh <[email protected]>
84122
Pratyush Kumar Chouhan <[email protected]>
123+
Pravesh Kunwar <[email protected]>
85124
Priyansh Prajapati <[email protected]>
86125
Priyanshu Agarwal <[email protected]>
126+
Pulkit Gupta <[email protected]>
87127
Pushpendra Chandravanshi <[email protected]>
128+
Rahul Kumar <[email protected]>
88129
Raunak Kumar Gupta <[email protected]>
89130
Rejoan Sardar <[email protected]>
90131
Ricky Reusser <[email protected]>
91132
Ridam Garg <[email protected]>
92133
134+
Rishav Tarway <[email protected]>
93135
Robert Gislason <[email protected]>
94136
Roman Stetsyk <[email protected]>
137+
95138
Rutam Kathale <[email protected]>
96139
Ruthwik Chikoti <[email protected]>
97140
Ryan Seal <[email protected]>
98141
Rylan Yang <[email protected]>
142+
SAHIL KUMAR <[email protected]>
143+
SHIVAM YADAV <[email protected]>
144+
Sahil Goyal <[email protected]>
145+
Sai Avinash <[email protected]>
99146
Sai Srikar Dumpeti <[email protected]>
147+
Sanchay Ketan Sinha <[email protected]>
100148
Sarthak Paandey <[email protected]>
101149
Saurabh Singh <[email protected]>
102150
Seyyed Parsa Neshaei <[email protected]>
151+
Shabareesh Shetty <[email protected]>
103152
Shashank Shekhar Singh <[email protected]>
104153
Shivam Ahir <[email protected]>
105154
Shraddheya Shendre <[email protected]>
@@ -110,7 +159,9 @@ Snehil Shah <[email protected]>
110159
Soumajit Chatterjee <[email protected]>
111160
Spandan Barve <[email protected]>
112161
Stephannie Jiménez Gacha <[email protected]>
162+
Suhaib Ilahi <[email protected]>
113163
Suraj Kumar <[email protected]>
164+
Tanishq Ahuja <[email protected]>
114165
Tirtadwipa Manunggal <[email protected]>
115166
Tudor Pagu <[email protected]>
116167
Tufailahmed Bargir <[email protected]>
@@ -124,6 +175,14 @@ Vivek Maurya <[email protected]>
124175
Xiaochuan Ye <[email protected]>
125176
Yaswanth Kosuru <[email protected]>
126177
Yernar Yergaziyev <[email protected]>
178+
Yugal Kaushik <[email protected]>
179+
Yuvi Mittal <[email protected]>
180+
181+
ekambains <[email protected]>
182+
fadiothman22 <[email protected]>
183+
lohithganni <[email protected]>
127184
olenkabilonizhka <[email protected]>
185+
pranav-1720 <[email protected]>
186+
rahulrangers <[email protected]>
128187
129188

README.md

+8-12
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

+8-12
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

+2-1
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)