-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Martin Köhler
committed
Aug 26, 2024
1 parent
fb3224e
commit 7606aa1
Showing
15 changed files
with
332 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* cblas_caxpby.c | ||
* | ||
* The program is a C interface to caxpby. | ||
* | ||
* Written by Martin Koehler. 08/26/2024 | ||
* | ||
*/ | ||
#include "cblas.h" | ||
#include "cblas_f77.h" | ||
void API_SUFFIX(cblas_caxpby)( const CBLAS_INT N, const void *alpha, const void *X, | ||
const CBLAS_INT incX, const void *beta, void *Y, const CBLAS_INT incY) | ||
{ | ||
#ifdef F77_INT | ||
F77_INT F77_N=N, F77_incX=incX, F77_incY=incY; | ||
#else | ||
#define F77_N N | ||
#define F77_incX incX | ||
#define F77_incY incY | ||
#endif | ||
F77_caxpby( &F77_N, alpha, X, &F77_incX, beta, Y, &F77_incY); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* cblas_daxpby.c | ||
* | ||
* The program is a C interface to daxpby. | ||
* | ||
* Written by Martin Koehler. 08/26/2024 | ||
* | ||
*/ | ||
#include "cblas.h" | ||
#include "cblas_f77.h" | ||
void API_SUFFIX(cblas_daxpby)( const CBLAS_INT N, const double alpha, const double *X, | ||
const CBLAS_INT incX, const double beta, double *Y, const CBLAS_INT incY) | ||
{ | ||
#ifdef F77_INT | ||
F77_INT F77_N=N, F77_incX=incX, F77_incY=incY; | ||
#else | ||
#define F77_N N | ||
#define F77_incX incX | ||
#define F77_incY incY | ||
#endif | ||
F77_daxpby( &F77_N, &alpha, X, &F77_incX, &beta, Y, &F77_incY); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* cblas_saxpby.c | ||
* | ||
* The program is a C interface to saxpby. | ||
* It calls the fortran wrapper before calling saxpby. | ||
* | ||
* Written by Martin Koehler, 08/24/2024 | ||
* | ||
*/ | ||
#include "cblas.h" | ||
#include "cblas_f77.h" | ||
void API_SUFFIX(cblas_saxpby)( const CBLAS_INT N, const float alpha, const float *X, | ||
const CBLAS_INT incX, const float beta, float *Y, const CBLAS_INT incY) | ||
{ | ||
#ifdef F77_INT | ||
F77_INT F77_N=N, F77_incX=incX, F77_incY=incY; | ||
#else | ||
#define F77_N N | ||
#define F77_incX incX | ||
#define F77_incY incY | ||
#endif | ||
F77_saxpby( &F77_N, &alpha, X, &F77_incX, &beta, Y, &F77_incY); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* cblas_zaxpby.c | ||
* | ||
* The program is a C interface to zaxpby. | ||
* | ||
* Written by Martin Koehler, 08/26/2024 | ||
* | ||
*/ | ||
#include "cblas.h" | ||
#include "cblas_f77.h" | ||
void API_SUFFIX(cblas_zaxpby)( const CBLAS_INT N, const void *alpha, const void *X, | ||
const CBLAS_INT incX, const void *beta, void *Y, const CBLAS_INT incY) | ||
{ | ||
#ifdef F77_INT | ||
F77_INT F77_N=N, F77_incX=incX, F77_incY=incY; | ||
#else | ||
#define F77_N N | ||
#define F77_incX incX | ||
#define F77_incY incY | ||
#endif | ||
F77_zaxpby( &F77_N, alpha, X, &F77_incX, beta, Y, &F77_incY); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.