Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Apr 27, 2024
1 parent 46fab87 commit c649450
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion include/stdlib/blas/base/ddot.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extern "C" {
/**
* Computes the dot product of two double-precision floating-point vectors.
*/
double c_ddot( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const double *Y, const CBLAS_INT strideY );
double API_SUFFIX(c_ddot)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const double *Y, const CBLAS_INT strideY );

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion include/stdlib/blas/base/ddot_cblas.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extern "C" {
/**
* Computes the dot product of two double-precision floating-point vectors.
*/
double cblas_ddot( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const double *Y, const CBLAS_INT strideY );
double API_SUFFIX(cblas_ddot)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const double *Y, const CBLAS_INT strideY );

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion include/stdlib/blas/base/ddot_fortran.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Computes the dot product of two double-precision floating-point vectors.
*/
void ddotsub( const int *, const double *, const int *, const double *, const int *, double * );
void ddotsub( const CBLAS_INT *, const double *, const CBLAS_INT *, const double *, const CBLAS_INT *, double * );

#ifdef __cplusplus
}
Expand Down
3 changes: 2 additions & 1 deletion src/addon.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include "stdlib/blas/base/ddot.h"
#include "stdlib/blas/base/shared.h"
#include "stdlib/napi/export.h"
#include "stdlib/napi/argv.h"
#include "stdlib/napi/argv_int64.h"
Expand All @@ -39,7 +40,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
STDLIB_NAPI_ARGV_INT64( env, strideY, argv, 4 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, N, strideX, argv, 1 );
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, N, strideY, argv, 3 );
STDLIB_NAPI_CREATE_DOUBLE( env, c_ddot( N, X, strideX, Y, strideY ), v );
STDLIB_NAPI_CREATE_DOUBLE( env, API_SUFFIX(c_ddot)( N, X, strideX, Y, strideY ), v );
return v;
}

Expand Down
2 changes: 1 addition & 1 deletion src/ddot.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* @param strideY Y stride length
* @return the dot product
*/
double c_ddot( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const double *Y, const CBLAS_INT strideY ) {
double API_SUFFIX(c_ddot)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const double *Y, const CBLAS_INT strideY ) {
double dot;
CBLAS_INT ix;
CBLAS_INT iy;
Expand Down
4 changes: 2 additions & 2 deletions src/ddot_cblas.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
* @param strideY Y stride length
* @return the dot product
*/
double c_ddot( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const double *Y, const CBLAS_INT strideY ) {
return cblas_ddot( N, X, strideX, Y, strideY );
double API_SUFFIX(c_ddot)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const double *Y, const CBLAS_INT strideY ) {
return API_SUFFIX(cblas_ddot)( N, X, strideX, Y, strideY );
}
2 changes: 1 addition & 1 deletion src/ddot_f.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @param strideY Y stride length
* @return the dot product
*/
double c_ddot( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const double *Y, const CBLAS_INT strideY ) {
double API_SUFFIX(c_ddot)( const CBLAS_INT N, const double *X, const CBLAS_INT strideX, const double *Y, const CBLAS_INT strideY ) {
double dot;
ddotsub( &N, X, &strideX, Y, &strideY, &dot );
return dot;
Expand Down

0 comments on commit c649450

Please sign in to comment.