Skip to content

Commit

Permalink
fix: specify integer type to match CBLAS
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Apr 27, 2024
1 parent ee78820 commit 5c514c7
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Copies values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.
*/
void ccopy( const int *, const void *, const int *, void *, const int * );
void ccopy( const CBLAS_INT *, const void *, const CBLAS_INT *, void *, const CBLAS_INT * );

#ifdef __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Interchanges two complex single-precision floating-point vectors.
*/
void cswap( const int *, void *, const int *, void *, const int * );
void cswap( const CBLAS_INT *, void *, const CBLAS_INT *, void *, const CBLAS_INT * );

#ifdef __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Computes the sum of absolute values.
*/
void dasumsub( const int *, const double *, const int *, double * );
void dasumsub( const CBLAS_INT *, const double *, const CBLAS_INT *, double * );

#ifdef __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Multiplies a vector `X` by a constant and adds the result to `Y`.
*/
void daxpy( const int *, const double *, const double *, const int *, double *, const int * );
void daxpy( const CBLAS_INT *, const double *, const double *, const CBLAS_INT *, double *, const CBLAS_INT * );

#ifdef __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Copies values from `X` into `Y`.
*/
void dcopy( const int *, const double *, const int *, double *, const int * );
void dcopy( const CBLAS_INT *, const double *, const CBLAS_INT *, double *, const CBLAS_INT * );

#ifdef __cplusplus
}
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Computes the L2-norm of a double-precision floating-point vector.
*/
void dnrm2sub( const int *, const double *, const int *, double * );
void dnrm2sub( const CBLAS_INT *, const double *, const CBLAS_INT *, double * );

#ifdef __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Applies a plane rotation.
*/
void drot( const int *, double *, const int *, double *, const int *, const double *, const double * );
void drot( const CBLAS_INT *, double *, const CBLAS_INT *, double *, const CBLAS_INT *, const double *, const double * );

#ifdef __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Multiplies each element of a double-precision floating-point vector by a constant.
*/
void dscal( const int *, const double *, double *, const int * );
void dscal( const CBLAS_INT *, const double *, double *, const CBLAS_INT * );

#ifdef __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Computes the dot product of two single-precision floating-point vectors with extended accumulation and result.
*/
void dsdotsub( const int *, const float *, const int *, const float *, const int *, double * );
void dsdotsub( const CBLAS_INT *, const float *, const CBLAS_INT *, const float *, const CBLAS_INT *, double * );

#ifdef __cplusplus
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extern "C" {
/**
* Interchanges two double-precision floating-point vectors.
*/
void dswap( const int *, double *, const int *, double *, const int * );
void dswap( const CBLAS_INT *, double *, const CBLAS_INT *, double *, const CBLAS_INT * );

#ifdef __cplusplus
}
Expand Down

0 comments on commit 5c514c7

Please sign in to comment.