Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
c3b9506
feat: add C implementation for studentized-range-cdf
nirmaljb Feb 5, 2026
729c0d3
fix: changed the dates to 2026
nirmaljb Feb 5, 2026
13fb59d
style: fix indentation and add missing final newlines
nirmaljb Feb 5, 2026
6dc3ece
style: added missing final newlines
nirmaljb Feb 5, 2026
208bcbf
bench: refactor to use dynamic memory allocation in `blas/base/ext/dc…
AyushiJain18270 Feb 5, 2026
fc0a12b
bench: refactor to use string interpolation in `stats/base/dists/arcs…
Lokeshranjan8 Feb 5, 2026
ed5ceb2
feat: add C implementation for `stats/base/ndarray/dminabs`
Erennn7 Feb 5, 2026
07faa8e
bench: refactor to use dynamic memory allocation in `blas/ext/base/dc…
LoayAhmed304 Feb 5, 2026
4e483b8
bench: refactor to use string interpolation in `stats/base/dists/bern…
Lokeshranjan8 Feb 5, 2026
cd31bd6
bench: refractor to use string interpolation in `stats/base/dists/kum…
shubham220420 Feb 5, 2026
1f1208a
bench: use string interpolation in `stats/base/dists/cauchy/pdf`
Om-A-osc Feb 5, 2026
1d06cfa
refactor: reduce FLOPs
kgryte Feb 5, 2026
b87d5a8
chore: fix EditorConfig lint errors
SuYaSh-PaThAk04 Feb 5, 2026
b653b0b
feat: add C implementation of `stats/base/ndarray/dmaxabs`
bhargava-d16 Feb 5, 2026
280c4a4
bench: refractor to use string interpolation in `stats/base/dists/tri…
shubham220420 Feb 5, 2026
976f966
fix: changed the variable datatype from var to double in example code…
nirmaljb Feb 7, 2026
1e3bd36
fix: changed the variable datatype from var to double in example code…
nirmaljb Feb 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ static double rand_double( void ) {
*/
static double benchmark1( int iterations, int len ) {
double elapsed;
double x[ len ];
double y[ len ];
double *x;
double *y;
double t;
int i;

x = (double *) malloc( len * sizeof( double ) );
y = (double *) malloc( len * sizeof( double ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_double() * 20000.0 ) - 10000.0;
y[ i ] = 0.0;
Expand All @@ -118,6 +120,8 @@ static double benchmark1( int iterations, int len ) {
if ( y[ len-1 ] != y[ len-1 ] ) {
printf( "should not return NaN\n" );
}
free( x );
free( y );
return elapsed;
}

Expand All @@ -130,11 +134,13 @@ static double benchmark1( int iterations, int len ) {
*/
static double benchmark2( int iterations, int len ) {
double elapsed;
double x[ len ];
double y[ len ];
double *x;
double *y;
double t;
int i;

x = (double *) malloc( len * sizeof( double ) );
y = (double *) malloc( len * sizeof( double ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_double() * 20000.0 ) - 10000.0;
y[ i ] = 0.0;
Expand All @@ -152,6 +158,8 @@ static double benchmark2( int iterations, int len ) {
if ( y[ len-1 ] != y[ len-1 ] ) {
printf( "should not return NaN\n" );
}
free( x );
free( y );
return elapsed;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ static double rand_double( void ) {
*/
static double benchmark1( int iterations, int len ) {
double elapsed;
double x[ len ];
double y[ len ];
double *x;
double *y;
double t;
int i;

x = (double *) malloc( len * sizeof( double ) );
y = (double *) malloc( len * sizeof( double ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_double() * 20000.0 ) - 10000.0;
y[ i ] = 0.0;
Expand All @@ -118,6 +120,8 @@ static double benchmark1( int iterations, int len ) {
if ( y[ len-1 ] != y[ len-1 ] ) {
printf( "should not return NaN\n" );
}
free( x );
free( y );
return elapsed;
}

Expand All @@ -130,11 +134,13 @@ static double benchmark1( int iterations, int len ) {
*/
static double benchmark2( int iterations, int len ) {
double elapsed;
double x[ len ];
double y[ len ];
double *x;
double *y;
double t;
int i;

x = (double *) malloc( len * sizeof( double ) );
y = (double *) malloc( len * sizeof( double ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_double() * 20000.0 ) - 10000.0;
y[ i ] = 0.0;
Expand All @@ -152,6 +158,8 @@ static double benchmark2( int iterations, int len ) {
if ( y[ len-1 ] != y[ len-1 ] ) {
printf( "should not return NaN\n" );
}
free( x );
free( y );
return elapsed;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
"-",
"--",
":",
"-.",
"none"
"-",
"--",
":",
"-.",
"none"
]
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ var Float64Array = require( '@stdlib/array/float64' );
var uniform = require( '@stdlib/random/base/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var Arcsine = require( './../lib' );


// MAIN //

bench( pkg+'::instantiation', function benchmark( bm ) {
bench( format( '%s::instantiation', pkg ), function benchmark( bm ) {
var dist;
var len;
var a;
Expand Down Expand Up @@ -61,7 +62,7 @@ bench( pkg+'::instantiation', function benchmark( bm ) {
bm.end();
});

bench( pkg+'::get:a', function benchmark( bm ) {
bench( format( '%s::get:a', pkg ), function benchmark( bm ) {
var dist;
var a;
var b;
Expand All @@ -87,7 +88,7 @@ bench( pkg+'::get:a', function benchmark( bm ) {
bm.end();
});

bench( pkg+'::set:a', function benchmark( bm ) {
bench( format( '%s::set:a', pkg ), function benchmark( bm ) {
var dist;
var len;
var a;
Expand Down Expand Up @@ -119,7 +120,7 @@ bench( pkg+'::set:a', function benchmark( bm ) {
bm.end();
});

bench( pkg+'::get:b', function benchmark( bm ) {
bench( format( '%s::get:b', pkg ), function benchmark( bm ) {
var dist;
var a;
var b;
Expand All @@ -145,7 +146,7 @@ bench( pkg+'::get:b', function benchmark( bm ) {
bm.end();
});

bench( pkg+'::set:b', function benchmark( bm ) {
bench( format( '%s::set:b', pkg ), function benchmark( bm ) {
var dist;
var len;
var a;
Expand Down Expand Up @@ -177,7 +178,7 @@ bench( pkg+'::set:b', function benchmark( bm ) {
bm.end();
});

bench( pkg+':entropy', function benchmark( bm ) {
bench( format( '%s:entropy', pkg ), function benchmark( bm ) {
var dist;
var len;
var x;
Expand Down Expand Up @@ -211,7 +212,7 @@ bench( pkg+':entropy', function benchmark( bm ) {
bm.end();
});

bench( pkg+':kurtosis', function benchmark( bm ) {
bench( format( '%s:kurtosis', pkg ), function benchmark( bm ) {
var dist;
var len;
var x;
Expand Down Expand Up @@ -245,7 +246,7 @@ bench( pkg+':kurtosis', function benchmark( bm ) {
bm.end();
});

bench( pkg+':mean', function benchmark( bm ) {
bench( format( '%s:mean', pkg ), function benchmark( bm ) {
var dist;
var len;
var x;
Expand Down Expand Up @@ -279,7 +280,7 @@ bench( pkg+':mean', function benchmark( bm ) {
bm.end();
});

bench( pkg+':median', function benchmark( bm ) {
bench( format( '%s:median', pkg ), function benchmark( bm ) {
var dist;
var len;
var x;
Expand Down Expand Up @@ -313,7 +314,7 @@ bench( pkg+':median', function benchmark( bm ) {
bm.end();
});

bench( pkg+':mode', function benchmark( bm ) {
bench( format( '%s:mode', pkg ), function benchmark( bm ) {
var dist;
var len;
var x;
Expand Down Expand Up @@ -347,7 +348,7 @@ bench( pkg+':mode', function benchmark( bm ) {
bm.end();
});

bench( pkg+':skewness', function benchmark( bm ) {
bench( format( '%s:skewness', pkg ), function benchmark( bm ) {
var dist;
var len;
var x;
Expand Down Expand Up @@ -381,7 +382,7 @@ bench( pkg+':skewness', function benchmark( bm ) {
bm.end();
});

bench( pkg+':stdev', function benchmark( bm ) {
bench( format( '%s:stdev', pkg ), function benchmark( bm ) {
var dist;
var len;
var x;
Expand Down Expand Up @@ -415,7 +416,7 @@ bench( pkg+':stdev', function benchmark( bm ) {
bm.end();
});

bench( pkg+':variance', function benchmark( bm ) {
bench( format( '%s:variance', pkg ), function benchmark( bm ) {
var dist;
var len;
var x;
Expand Down Expand Up @@ -449,7 +450,7 @@ bench( pkg+':variance', function benchmark( bm ) {
bm.end();
});

bench( pkg+':cdf', function benchmark( bm ) {
bench( format( '%s:cdf', pkg ), function benchmark( bm ) {
var dist;
var len;
var a;
Expand Down Expand Up @@ -482,7 +483,7 @@ bench( pkg+':cdf', function benchmark( bm ) {
bm.end();
});

bench( pkg+':logpdf', function benchmark( bm ) {
bench( format( '%s:logpdf', pkg ), function benchmark( bm ) {
var dist;
var len;
var a;
Expand Down Expand Up @@ -515,7 +516,7 @@ bench( pkg+':logpdf', function benchmark( bm ) {
bm.end();
});

bench( pkg+':pdf', function benchmark( bm ) {
bench( format( '%s:pdf', pkg ), function benchmark( bm ) {
var dist;
var len;
var a;
Expand Down Expand Up @@ -548,7 +549,7 @@ bench( pkg+':pdf', function benchmark( bm ) {
bm.end();
});

bench( pkg+':quantile', function benchmark( bm ) {
bench( format( '%s:quantile', pkg ), function benchmark( bm ) {
var dist;
var len;
var a;
Expand Down
Loading
Loading