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
2 changes: 0 additions & 2 deletions lib/node_modules/@stdlib/blas/base/dger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ void c_dger( const CBLAS_LAYOUT layout, const CBLAS_INT M, const CBLAS_INT N, co
Performs the rank 1 operation `A = alpha*x*y^T + A`, using alternative indexing semantics and where `alpha` is a scalar, `X` is an `M` element vector, `Y` is an `N` element vector, and `A` is an `M`-by-`N` matrix.

```c
#include "stdlib/blas/base/shared.h"

double A[ 3*4 ] = {
0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0,
Expand Down
2 changes: 0 additions & 2 deletions lib/node_modules/@stdlib/blas/base/sger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ void c_sger( const CBLAS_LAYOUT layout, const CBLAS_INT M, const CBLAS_INT N, co
Performs the rank 1 operation `A = alpha*x*y^T + A`, using alternative indexing semantics and where `alpha` is a scalar, `X` is an `M` element vector, `Y` is an `N` element vector, and `A` is an `M`-by-`N` matrix.

```c
#include "stdlib/blas/base/shared.h"

float A[ 3*4 ] = {
0.0f, 0.0f, 0.0f, 0.0f,
0.0f, 0.0f, 0.0f, 0.0f,
Expand Down
2 changes: 0 additions & 2 deletions lib/node_modules/@stdlib/blas/ext/base/dvander/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ void API_SUFFIX(stdlib_strided_dvander)( const CBLAS_LAYOUT order, const double
Generates a double-precision floating-point Vandermonde matrix using alternative indexing semantics.

```c
#include "stdlib/blas/base/shared.h"

const double x[ 3 ] = { 1.0, 2.0, 3.0 };
double Out[ 3*3 ] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

Expand Down
2 changes: 0 additions & 2 deletions lib/node_modules/@stdlib/blas/ext/base/svander/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ void API_SUFFIX(stdlib_strided_svander)( const CBLAS_LAYOUT order, const float m
Generates a single-precision floating-point Vandermonde matrix using alternative indexing semantics.

```c
#include "stdlib/blas/base/shared.h"

const float x[ 3 ] = { 1.0f, 2.0f, 3.0f };
float Out[ 3*3 ] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ tape( 'the function evaluates the natural logarithm of the gamma function for x
var x;
var v;

x = f32( powf( 2.0, 27 ) );
x = powf( 2.0, 27 );
v = absgammalnf( x );
expected = f32( x * f32( lnf( x ) - f32( 1.0 ) ) );
t.strictEqual( v, expected, 'returns expected value' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ tape( 'the function evaluates the natural logarithm of the absolute value of the
var x;
var v;

x = f32( powf( 2.0, 27 ) );
x = powf( 2.0, 27 );
v = absgammalnf( x );
expected = f32( x * f32( lnf( x ) - f32( 1.0 ) ) );
t.strictEqual( v, expected, 'returns expected value' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Determines if an array is contiguous.
*/
int8_t stdlib_ndarray_is_contiguous( enum STDLIB_NDARRAY_DTYPE dtype, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset );
int8_t stdlib_ndarray_is_contiguous( const enum STDLIB_NDARRAY_DTYPE dtype, const int64_t ndims, const int64_t *shape, const int64_t *strides, const int64_t offset );

#ifdef __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* int8_t b = stdlib_ndarray_is_contiguous( STDLIB_NDARRAY_UINT8, ndims, shape, strides, offset );
* // returns 1
*/
int8_t stdlib_ndarray_is_contiguous( enum STDLIB_NDARRAY_DTYPE dtype, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset ) {
int8_t stdlib_ndarray_is_contiguous( const enum STDLIB_NDARRAY_DTYPE dtype, const int64_t ndims, const int64_t *shape, const int64_t *strides, const int64_t offset ) {
if (
stdlib_ndarray_iteration_order( ndims, strides ) != 0 &&
stdlib_ndarray_is_single_segment_compatible( dtype, ndims, shape, strides, offset ) != 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ static double rand_double( void ) {
*/
static double benchmark1( int iterations, int len ) {
double elapsed;
double x[ len ];
double *x;
double v;
double t;
int i;

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

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

x = (float *)malloc( len * sizeof( float ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
}
Expand All @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) {
if ( v != v ) {
printf( "should not return NaN\n" );
}
free( x );
return elapsed;
}

Expand All @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) {
*/
static double benchmark2( int iterations, int len ) {
double elapsed;
float x[ len ];
float *x;
double t;
float v;
int i;

x = (float *)malloc( len * sizeof( float ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
}
Expand All @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) {
if ( v != v ) {
printf( "should not return NaN\n" );
}
free( x );
return elapsed;
}

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

x = (float *)malloc( len * sizeof( float ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
}
Expand All @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) {
if ( v != v ) {
printf( "should not return NaN\n" );
}
free( x );
return elapsed;
}

Expand All @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) {
*/
static double benchmark2( int iterations, int len ) {
double elapsed;
float x[ len ];
float *x;
float v;
double t;
int i;

x = (float *)malloc( len * sizeof( float ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
}
Expand All @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) {
if ( v != v ) {
printf( "should not return NaN\n" );
}
free( x );
return elapsed;
}

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

x = (float *)malloc( len * sizeof( float ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
}
Expand All @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) {
if ( v != v ) {
printf( "should not return NaN\n" );
}
free( x );
return elapsed;
}

Expand All @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) {
*/
static double benchmark2( int iterations, int len ) {
double elapsed;
float x[ len ];
float *x;
float v;
double t;
int i;

x = (float *)malloc( len * sizeof( float ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
}
Expand All @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) {
if ( v != v ) {
printf( "should not return NaN\n" );
}
free( x );
return elapsed;
}

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

x = (float *)malloc( len * sizeof( float ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
}
Expand All @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) {
if ( v != v ) {
printf( "should not return NaN\n" );
}
free( x );
return elapsed;
}

Expand All @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) {
*/
static double benchmark2( int iterations, int len ) {
double elapsed;
float x[ len ];
float *x;
float v;
double t;
int i;

x = (float *)malloc( len * sizeof( float ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
}
Expand All @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) {
if ( v != v ) {
printf( "should not return NaN\n" );
}
free( x );
return elapsed;
}

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

x = (float *)malloc( len * sizeof( float ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
}
Expand All @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) {
if ( v != v ) {
printf( "should not return NaN\n" );
}
free( x );
return elapsed;
}

Expand All @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) {
*/
static double benchmark2( int iterations, int len ) {
double elapsed;
float x[ len ];
float *x;
float v;
double t;
int i;

x = (float *)malloc( len * sizeof( float ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
}
Expand All @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) {
if ( v != v ) {
printf( "should not return NaN\n" );
}
free( x );
return elapsed;
}

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

x = (float *)malloc( len * sizeof( float ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
}
Expand All @@ -118,6 +119,7 @@ static double benchmark1( int iterations, int len ) {
if ( v != v ) {
printf( "should not return NaN\n" );
}
free( x );
return elapsed;
}

Expand All @@ -130,11 +132,12 @@ static double benchmark1( int iterations, int len ) {
*/
static double benchmark2( int iterations, int len ) {
double elapsed;
float x[ len ];
float *x;
float v;
double t;
int i;

x = (float *)malloc( len * sizeof( float ) );
for ( i = 0; i < len; i++ ) {
x[ i ] = ( rand_float()*20000.0f ) - 10000.0f;
}
Expand All @@ -152,6 +155,7 @@ static double benchmark2( int iterations, int len ) {
if ( v != v ) {
printf( "should not return NaN\n" );
}
free( x );
return elapsed;
}

Expand Down
Loading
Loading