Skip to content

Commit acc1bcd

Browse files
committed
Auto-generated commit
1 parent b5b4d90 commit acc1bcd

File tree

10 files changed

+90
-32
lines changed

10 files changed

+90
-32
lines changed

.editorconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ indent_style = tab
8686
[*.{f,f.txt}]
8787
indent_style = space
8888
indent_size = 2
89-
insert_final_newline = false
9089

9190
# Set properties for shell files:
9291
[*.{sh,sh.txt}]
@@ -121,7 +120,7 @@ indent_style = tab
121120
[*.{md,md.txt}]
122121
indent_style = space
123122
indent_size = 4
124-
trim_trailing_whitespace = false
123+
trim_trailing_whitespace = true # Note: this disables using two spaces to force a hard line break, which is permitted in Markdown. As we don't typically follow that practice (TMK), we should be safe to automatically trim.
125124
126125
# Set properties for `usage.txt` files:
127126
[usage.txt]

.github/.keepalive

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

.github/workflows/test_install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
env:
5151
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
5252

53-
# Run workflow job if `publish` workflow run is successful or when the workflow is manually run:
54-
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
53+
# Run workflow job if `publish` workflow run is successful or when the workflow is manually triggered or on a schedule:
54+
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
5555

5656
# Define the sequence of job steps...
5757
steps:

.github/workflows/test_published_package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
env:
4848
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
4949

50-
# Run workflow job if `publish` workflow run is successful or when the workflow is manually run:
51-
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
50+
# Run workflow job if `publish` workflow run is successful or when the workflow is manually triggered or on a schedule:
51+
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
5252

5353
# Define the job's steps:
5454
steps:

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2025-01-21)
8+
9+
<section class="commits">
10+
11+
### Commits
12+
13+
<details>
14+
15+
- [`68894a1`](https://github.com/stdlib-js/stdlib/commit/68894a16cc999587091fdc3b014d21b64d3dde79) - **bench:** refactor random number generation in `stats/base/dists/betaprime` [(#4840)](https://github.com/stdlib-js/stdlib/pull/4840) _(by Karan Anand)_
16+
17+
</details>
18+
19+
</section>
20+
21+
<!-- /.commits -->
22+
23+
<section class="contributors">
24+
25+
### Contributors
26+
27+
A total of 1 person contributed to this release. Thank you to this contributor:
28+
29+
- Karan Anand
30+
31+
</section>
32+
33+
<!-- /.contributors -->
34+
35+
</section>
36+
37+
<!-- /.release -->
38+
539
<section class="release" id="v0.2.2">
640

741
## 0.2.2 (2024-07-28)

CONTRIBUTORS

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
#
33
# Contributors listed in alphabetical order.
44

5+
Aadish Jain <[email protected]>
56
Aayush Khanna <[email protected]>
67
Abhijit Raut <[email protected]>
78
Adarsh Palaskar <[email protected]>
89
Aditya Sapra <[email protected]>
9-
AgPriyanshu18 <[email protected]>
10+
Ahmed Atwa <[email protected]>
11+
Ahmed Kashkoush <[email protected]>
12+
Ahmed Khaled <[email protected]>
1013
Aleksandr <[email protected]>
1114
Ali Salesi <[email protected]>
1215
Aman Bhansali <[email protected]>
@@ -23,6 +26,10 @@ Dan Rose <[email protected]>
2326
Daniel Killenberger <[email protected]>
2427
Daniel Yu <[email protected]>
2528
Debashis Maharana <[email protected]>
29+
Desh Deepak Kant <[email protected]>
30+
31+
Dhruv Arvind Singh <[email protected]>
32+
Divyansh Seth <[email protected]>
2633
Dominic Lim <[email protected]>
2734
Dominik Moritz <[email protected]>
2835
Dorrin Sotoudeh <[email protected]>
@@ -44,13 +51,14 @@ Joey Reed <[email protected]>
4451
Jordan Gallivan <[email protected]>
4552
Joris Labie <[email protected]>
4653
Justin Dennison <[email protected]>
54+
Karan Anand <[email protected]>
4755
Karthik Prakash <[email protected]>
48-
4956
Kohantika Nath <[email protected]>
5057
Krishnendu Das <[email protected]>
5158
Kshitij-Dale <[email protected]>
52-
59+
Lovelin Dhoni J B <[email protected]>
5360
Manik Sharma <[email protected]>
61+
Manvith M <[email protected]>
5462
Marcus Fantham <[email protected]>
5563
Matt Cochrane <[email protected]>
5664
Mihir Pandit <[email protected]>
@@ -59,37 +67,41 @@ Mohammad Kaif <[email protected]>
5967
Momtchil Momtchev <[email protected]>
6068
Muhammad Haris <[email protected]>
6169
Naresh Jagadeesan <[email protected]>
70+
Naveen Kumar <[email protected]>
6271
Neeraj Pathak <[email protected]>
63-
NightKnight <Ahmedatwa866@yahoo.com>
72+
Nishant Shinde <[email protected].com>
6473
Nithin Katta <[email protected]>
6574
Nourhan Hasan <[email protected]>
6675
Ognjen Jevremović <[email protected]>
6776
Oneday12323 <[email protected]>
77+
Ori Miles <[email protected]>
6878
Philipp Burckhardt <[email protected]>
6979
Prajwal Kulkarni <[email protected]>
7080
Pranav Goswami <[email protected]>
71-
72-
81+
Pranjal Jha <[email protected]>
82+
Prashant Kumar Yadav <[email protected]>
83+
Pratik Singh <[email protected]>
7384
Pratyush Kumar Chouhan <[email protected]>
74-
85+
Priyansh Prajapati <[email protected]>
86+
Priyanshu Agarwal <[email protected]>
7587
Pushpendra Chandravanshi <[email protected]>
76-
7788
Raunak Kumar Gupta <[email protected]>
7889
Rejoan Sardar <[email protected]>
7990
Ricky Reusser <[email protected]>
8091
Ridam Garg <[email protected]>
92+
8193
Robert Gislason <[email protected]>
8294
Roman Stetsyk <[email protected]>
83-
95+
Rutam Kathale <[email protected]>
8496
Ruthwik Chikoti <[email protected]>
8597
Ryan Seal <[email protected]>
8698
Rylan Yang <[email protected]>
8799
Sai Srikar Dumpeti <[email protected]>
88-
SarthakPaandey <[email protected]>
100+
Sarthak Paandey <[email protected]>
89101
Saurabh Singh <[email protected]>
90102
Seyyed Parsa Neshaei <[email protected]>
91103
Shashank Shekhar Singh <[email protected]>
92-
104+
Shivam Ahir <[email protected]>
93105
Shraddheya Shendre <[email protected]>
94106
Shubh Mehta <[email protected]>
95107
Shubham Mishra <[email protected]>
@@ -98,7 +110,7 @@ Snehil Shah <[email protected]>
98110
Soumajit Chatterjee <[email protected]>
99111
Spandan Barve <[email protected]>
100112
Stephannie Jiménez Gacha <[email protected]>
101-
Suraj kumar <[email protected]>
113+
Suraj Kumar <[email protected]>
102114
Tirtadwipa Manunggal <[email protected]>
103115
Tudor Pagu <[email protected]>
104116
Tufailahmed Bargir <[email protected]>
@@ -108,12 +120,10 @@ UtkershBasnet <[email protected]>
108120
Vaibhav Patel <[email protected]>
109121
Varad Gupta <[email protected]>
110122
Vinit Pandit <[email protected]>
123+
Vivek Maurya <[email protected]>
111124
Xiaochuan Ye <[email protected]>
125+
Yaswanth Kosuru <[email protected]>
112126
Yernar Yergaziyev <[email protected]>
113-
114-
nishant-s7 <[email protected]>
115127
olenkabilonizhka <[email protected]>
116-
orimiles5 <[email protected]>
117128
118129
119-

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Copyright (c) 2016-2024 The Stdlib Authors.
1+
Copyright (c) 2016-2025 The Stdlib Authors.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ See [LICENSE][stdlib-license].
233233

234234
## Copyright
235235

236-
Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
236+
Copyright &copy; 2016-2025. The Stdlib [Authors][stdlib-authors].
237237

238238
</section>
239239

benchmark/benchmark.js

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
// MODULES //
2222

2323
var bench = require( '@stdlib/bench-harness' );
24-
var randu = require( '@stdlib/random-base-randu' );
24+
var Float64Array = require( '@stdlib/array-float64' );
25+
var uniform = require( '@stdlib/random-base-uniform' );
2526
var isnan = require( '@stdlib/math-base-assert-is-nan' );
2627
var EPS = require( '@stdlib/constants-float64-eps' );
2728
var pkg = require( './../package.json' ).name;
@@ -33,16 +34,24 @@ var logpdf = require( './../lib' );
3334
bench( pkg, function benchmark( b ) {
3435
var alpha;
3536
var beta;
37+
var len;
3638
var x;
3739
var y;
3840
var i;
3941

42+
len = 100;
43+
x = new Float64Array( len );
44+
alpha = new Float64Array( len );
45+
beta = new Float64Array( len );
46+
for ( i = 0; i < len; i++ ) {
47+
x[ i ] = uniform( EPS, 2.0 );
48+
alpha[ i ] = uniform( EPS, 100.0 );
49+
beta[ i ] = uniform( EPS, 100.0 );
50+
}
51+
4052
b.tic();
4153
for ( i = 0; i < b.iterations; i++ ) {
42-
x = ( randu()*2.0 ) + EPS;
43-
alpha = ( randu()*100.0 ) + EPS;
44-
beta = ( randu()*100.0 ) + EPS;
45-
y = logpdf( x, alpha, beta );
54+
y = logpdf( x[ i % len ], alpha[ i % len ], beta[ i % len ] );
4655
if ( isnan( y ) ) {
4756
b.fail( 'should not return NaN' );
4857
}
@@ -59,18 +68,23 @@ bench( pkg+':factory', function benchmark( b ) {
5968
var mylogpdf;
6069
var alpha;
6170
var beta;
71+
var len;
6272
var x;
6373
var y;
6474
var i;
6575

6676
alpha = 100.56789;
6777
beta = 55.54321;
6878
mylogpdf = logpdf.factory( alpha, beta );
79+
len = 100;
80+
x = new Float64Array( len );
81+
for ( i = 0; i < len; i++ ) {
82+
x[ i ] = uniform( EPS, 2.0 );
83+
}
6984

7085
b.tic();
7186
for ( i = 0; i < b.iterations; i++ ) {
72-
x = ( randu()*2.0 ) + EPS;
73-
y = mylogpdf( x );
87+
y = mylogpdf( x[ i % len ] );
7488
if ( isnan( y ) ) {
7589
b.fail( 'should not return NaN' );
7690
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@
4646
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.2"
4747
},
4848
"devDependencies": {
49+
"@stdlib/array-float64": "^0.2.2",
4950
"@stdlib/constants-float64-eps": "^0.2.2",
5051
"@stdlib/constants-float64-pinf": "^0.2.2",
5152
"@stdlib/math-base-special-abs": "^0.2.2",
5253
"@stdlib/random-base-randu": "^0.2.1",
54+
"@stdlib/random-base-uniform": "^0.2.1",
5355
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5456
"istanbul": "^0.4.1",
5557
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",

0 commit comments

Comments
 (0)