Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -149,5 +149,5 @@ float API_SUFFIX(stdlib_strided_snansumpw_ndarray)( const CBLAS_INT N, const flo
// Recurse by dividing by two, but avoiding non-multiples of unroll factor...
n = N / 2;
n -= n % 8;
return stdlib_strided_snansumpw_ndarray( n, X, strideX, ix ) + stdlib_strided_snansumpw_ndarray( N-n, X, strideX, ix+(n*strideX) );
return API_SUFFIX(stdlib_strided_snansumpw_ndarray)( n, X, strideX, ix ) + API_SUFFIX(stdlib_strided_snansumpw_ndarray)( N-n, X, strideX, ix+(n*strideX) );
}
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/blas/ext/base/ssumpw/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,5 @@ float API_SUFFIX(stdlib_strided_ssumpw_ndarray)( const CBLAS_INT N, const float
// Recurse by dividing by two, but avoiding non-multiples of unroll factor...
n = N / 2;
n -= n % 8;
return stdlib_strided_ssumpw_ndarray( n, X, strideX, ix ) + stdlib_strided_ssumpw_ndarray( N-n, X, strideX, ix+(n*strideX) );
return API_SUFFIX(stdlib_strided_ssumpw_ndarray)( n, X, strideX, ix ) + API_SUFFIX(stdlib_strided_ssumpw_ndarray)( N-n, X, strideX, ix+(n*strideX) );
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ tape( 'the function returns `false` if provided `NaN` as either real or imaginar
t.end();
});

tape( 'the function returns `true` if provided two complex single-precision floating-point numbers which are the same value irrespective of the specified number of ULPs', function test( t ) {
tape( 'the function returns `true` if provided two single-precision complex floating-point numbers which are the same value irrespective of the specified number of ULPs', function test( t ) {
var z1;
var z2;

Expand All @@ -77,7 +77,7 @@ tape( 'the function returns `true` if provided two complex single-precision floa
t.end();
});

tape( 'the function returns `true` if provided two complex single-precision floating-point numbers which are approximately equal within a specified number of ULPs', function test( t ) {
tape( 'the function returns `true` if provided two single-precision complex floating-point numbers which are approximately equal within a specified number of ULPs', function test( t ) {
var z1;
var z2;

Expand All @@ -93,7 +93,7 @@ tape( 'the function returns `true` if provided two complex single-precision floa
t.end();
});

tape( 'the function returns `false` if provided two complex single-precision floating-point numbers which are not approximately equal within a specified number of ULPs', function test( t ) {
tape( 'the function returns `false` if provided two single-precision complex floating-point numbers which are not approximately equal within a specified number of ULPs', function test( t ) {
var z1;
var z2;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ tape( 'the function treats `NaNs` as the same value', function test( t ) {
t.end();
});

tape( 'the function returns `true` if provided two complex single-precision floating-point numbers which are the same value irrespective of the specified number of ULPs', function test( t ) {
tape( 'the function returns `true` if provided two single-precision complex floating-point numbers which are the same value irrespective of the specified number of ULPs', function test( t ) {
var z1;
var z2;

Expand All @@ -77,7 +77,7 @@ tape( 'the function returns `true` if provided two complex single-precision floa
t.end();
});

tape( 'the function returns `true` if provided two complex single-precision floating-point numbers which are approximately the same value within a specified number of ULPs', function test( t ) {
tape( 'the function returns `true` if provided two single-precision complex floating-point numbers which are approximately the same value within a specified number of ULPs', function test( t ) {
var z1;
var z2;

Expand All @@ -93,7 +93,7 @@ tape( 'the function returns `true` if provided two complex single-precision floa
t.end();
});

tape( 'the function returns `false` if provided two complex single-precision floating-point numbers which are not approximately the same value within a specified number of ULPs', function test( t ) {
tape( 'the function returns `false` if provided two single-precision complex floating-point numbers which are not approximately the same value within a specified number of ULPs', function test( t ) {
var z1;
var z2;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ tape( 'the function returns `false` if provided `NaN` as either real or imaginar
t.end();
});

tape( 'the function returns `true` if provided two complex double-precision floating-point numbers which are the same value irrespective of the specified number of ULPs', function test( t ) {
tape( 'the function returns `true` if provided two double-precision complex floating-point numbers which are the same value irrespective of the specified number of ULPs', function test( t ) {
var z1;
var z2;

Expand All @@ -77,7 +77,7 @@ tape( 'the function returns `true` if provided two complex double-precision floa
t.end();
});

tape( 'the function returns `true` if provided two complex double-precision floating-point numbers which are approximately equal within a specified number of ULPs', function test( t ) {
tape( 'the function returns `true` if provided two double-precision complex floating-point numbers which are approximately equal within a specified number of ULPs', function test( t ) {
var z1;
var z2;

Expand All @@ -93,7 +93,7 @@ tape( 'the function returns `true` if provided two complex double-precision floa
t.end();
});

tape( 'the function returns `false` if provided two complex double-precision floating-point numbers which are not approximately equal within a specified number of ULPs', function test( t ) {
tape( 'the function returns `false` if provided two double-precision complex floating-point numbers which are not approximately equal within a specified number of ULPs', function test( t ) {
var z1;
var z2;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ tape( 'the function treats `NaNs` as the same value', function test( t ) {
t.end();
});

tape( 'the function returns `true` if provided two complex double-precision floating-point numbers which are the same value irrespective of the specified number of ULPs', function test( t ) {
tape( 'the function returns `true` if provided two double-precision complex floating-point numbers which are the same value irrespective of the specified number of ULPs', function test( t ) {
var z1;
var z2;

Expand All @@ -77,7 +77,7 @@ tape( 'the function returns `true` if provided two complex double-precision floa
t.end();
});

tape( 'the function returns `true` if provided two complex double-precision floating-point numbers which are approximately the same value within a specified number of ULPs', function test( t ) {
tape( 'the function returns `true` if provided two double-precision complex floating-point numbers which are approximately the same value within a specified number of ULPs', function test( t ) {
var z1;
var z2;

Expand All @@ -93,7 +93,7 @@ tape( 'the function returns `true` if provided two complex double-precision floa
t.end();
});

tape( 'the function returns `false` if provided two complex double-precision floating-point numbers which are not approximately the same value within a specified number of ULPs', function test( t ) {
tape( 'the function returns `false` if provided two double-precision complex floating-point numbers which are not approximately the same value within a specified number of ULPs', function test( t ) {
var z1;
var z2;

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/strided/dsempn/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ double API_SUFFIX(stdlib_strided_dsempn)( const CBLAS_INT N, const double correc
* @return output value
*/
double API_SUFFIX(stdlib_strided_dsempn_ndarray)( const CBLAS_INT N, const double correction, const double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
return stdlib_base_sqrt( stdlib_strided_dvariancepn_ndarray( N, correction, X, strideX, offsetX ) / (double)N );
return stdlib_base_sqrt( API_SUFFIX(stdlib_strided_dvariancepn_ndarray)( N, correction, X, strideX, offsetX ) / (double)N );
}
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/stats/strided/dsmeanpn/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ double API_SUFFIX(stdlib_strided_dsmeanpn_ndarray)( const CBLAS_INT N, const flo
dN = (double)N;

// Compute an estimate for the mean:
mu = stdlib_strided_dssum_ndarray( N, X, strideX, offsetX );
mu = API_SUFFIX(stdlib_strided_dssum_ndarray)( N, X, strideX, offsetX );
mu /= dN;

// Compute an error term:
c = stdlib_strided_dsapxsum_ndarray( N, -mu, X, strideX, offsetX );
c = API_SUFFIX(stdlib_strided_dsapxsum_ndarray)( N, -mu, X, strideX, offsetX );
c /= dN;

return mu + c;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ double API_SUFFIX(stdlib_strided_dsvariancepn_ndarray)( const CBLAS_INT N, const
return 0.0;
}
// Compute an estimate for the mean:
mu = stdlib_strided_dssum_ndarray( N, X, strideX, offsetX ) / dN;
mu = API_SUFFIX(stdlib_strided_dssum_ndarray)( N, X, strideX, offsetX ) / dN;

// Compute the variance...
ix = offsetX;
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/strided/dztest/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void API_SUFFIX(stdlib_strided_dztest_ndarray)( const CBLAS_INT N, const enum ST
stderr = sigma / stdlib_base_sqrt( (double)N );

// Compute the arithmetic mean of the input array:
xmean = stdlib_strided_dmean_ndarray( N, X, strideX, offsetX );
xmean = API_SUFFIX(stdlib_strided_dmean_ndarray)( N, X, strideX, offsetX );

// Compute the test statistic (i.e., the z-score, which is the distance of the sample mean from the population mean in units of standard error):
stat = ( xmean - mu ) / stderr;
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/stats/strided/dztest2/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ void API_SUFFIX(stdlib_strided_dztest2_ndarray)( const CBLAS_INT NX, const CBLAS
stderr = stdlib_base_sqrt( ( xvar / (double)NX ) + ( yvar / (double)NY ) );

// Compute the arithmetic means of the input arrays:
xmean = stdlib_strided_dmean_ndarray( NX, X, strideX, offsetX );
ymean = stdlib_strided_dmean_ndarray( NY, Y, strideY, offsetY );
xmean = API_SUFFIX(stdlib_strided_dmean_ndarray)( NX, X, strideX, offsetX );
ymean = API_SUFFIX(stdlib_strided_dmean_ndarray)( NY, Y, strideY, offsetY );

// Compute the test statistic (i.e., the z-score, which is the standardized difference between the sample means of x and y, adjusted by the hypothesized difference, in units of the standard error):
stat = ( xmean - ymean - diff ) / stderr;
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/strided/sztest/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void API_SUFFIX(stdlib_strided_sztest_ndarray)( const CBLAS_INT N, const enum ST
stderr = sigma / stdlib_base_sqrt( (double)N ); // note: intentionally evaluated in double-precision to avoid `N` exceeding max safe float32 integer

// Compute the arithmetic mean of the input array:
xmean = stdlib_strided_smean_ndarray( N, X, strideX, offsetX );
xmean = API_SUFFIX(stdlib_strided_smean_ndarray)( N, X, strideX, offsetX );

// Compute the test statistic (i.e., the z-score, which is the distance of the sample mean from the population mean in units of standard error):
stat = ( (double)xmean - (double)mu ) / stderr;
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/stats/strided/sztest2/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ void API_SUFFIX(stdlib_strided_sztest2_ndarray)( const CBLAS_INT NX, const CBLAS
stderr = stdlib_base_sqrt( ( xvar / (double)NX ) + ( yvar / (double)NY ) ); // note: intentionally evaluated in double-precision to avoid `NX` and `NY` exceeding max safe float32 integer

// Compute the arithmetic means of the input arrays:
xmean = stdlib_strided_smean_ndarray( NX, X, strideX, offsetX );
ymean = stdlib_strided_smean_ndarray( NY, Y, strideY, offsetY );
xmean = API_SUFFIX(stdlib_strided_smean_ndarray)( NX, X, strideX, offsetX );
ymean = API_SUFFIX(stdlib_strided_smean_ndarray)( NY, Y, strideY, offsetY );

// Compute the test statistic (i.e., the z-score, which is the standardized difference between the sample means of x and y, adjusted by the hypothesized difference, in units of the standard error):
stat = ( (double)xmean - (double)ymean - (double)diff ) / stderr;
Expand Down