|
kusano |
2b45e8 |
/*
|
|
kusano |
2b45e8 |
* c_zblas1.c
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* The program is a C wrapper for zcblat1.
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
* Written by Keita Teranishi. 2/11/1998
|
|
kusano |
2b45e8 |
*
|
|
kusano |
2b45e8 |
*/
|
|
kusano |
2b45e8 |
#include "common.h"
|
|
kusano |
2b45e8 |
#include "cblas_test.h"
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
void F77_zaxpy(const int *N, const void *alpha, void *X,
|
|
kusano |
2b45e8 |
const int *incX, void *Y, const int *incY)
|
|
kusano |
2b45e8 |
{
|
|
kusano |
2b45e8 |
cblas_zaxpy(*N, alpha, X, *incX, Y, *incY);
|
|
kusano |
2b45e8 |
return;
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
void F77_zcopy(const int *N, void *X, const int *incX,
|
|
kusano |
2b45e8 |
void *Y, const int *incY)
|
|
kusano |
2b45e8 |
{
|
|
kusano |
2b45e8 |
cblas_zcopy(*N, X, *incX, Y, *incY);
|
|
kusano |
2b45e8 |
return;
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
void F77_zdotc(const int *N, const void *X, const int *incX,
|
|
kusano |
2b45e8 |
const void *Y, const int *incY,void *dotc)
|
|
kusano |
2b45e8 |
{
|
|
kusano |
2b45e8 |
cblas_zdotc_sub(*N, X, *incX, Y, *incY, dotc);
|
|
kusano |
2b45e8 |
return;
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
void F77_zdotu(const int *N, void *X, const int *incX,
|
|
kusano |
2b45e8 |
void *Y, const int *incY,void *dotu)
|
|
kusano |
2b45e8 |
{
|
|
kusano |
2b45e8 |
cblas_zdotu_sub(*N, X, *incX, Y, *incY, dotu);
|
|
kusano |
2b45e8 |
return;
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
void F77_zdscal(const int *N, const double *alpha, void *X,
|
|
kusano |
2b45e8 |
const int *incX)
|
|
kusano |
2b45e8 |
{
|
|
kusano |
2b45e8 |
cblas_zdscal(*N, *alpha, X, *incX);
|
|
kusano |
2b45e8 |
return;
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
void F77_zscal(const int *N, const void * *alpha, void *X,
|
|
kusano |
2b45e8 |
const int *incX)
|
|
kusano |
2b45e8 |
{
|
|
kusano |
2b45e8 |
cblas_zscal(*N, alpha, X, *incX);
|
|
kusano |
2b45e8 |
return;
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
void F77_zswap( const int *N, void *X, const int *incX,
|
|
kusano |
2b45e8 |
void *Y, const int *incY)
|
|
kusano |
2b45e8 |
{
|
|
kusano |
2b45e8 |
cblas_zswap(*N,X,*incX,Y,*incY);
|
|
kusano |
2b45e8 |
return;
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
int F77_izamax(const int *N, const void *X, const int *incX)
|
|
kusano |
2b45e8 |
{
|
|
kusano |
2b45e8 |
if (*N < 1 || *incX < 1) return(0);
|
|
kusano |
2b45e8 |
return(cblas_izamax(*N, X, *incX)+1);
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
double F77_dznrm2(const int *N, const void *X, const int *incX)
|
|
kusano |
2b45e8 |
{
|
|
kusano |
2b45e8 |
return cblas_dznrm2(*N, X, *incX);
|
|
kusano |
2b45e8 |
}
|
|
kusano |
2b45e8 |
|
|
kusano |
2b45e8 |
double F77_dzasum(const int *N, void *X, const int *incX)
|
|
kusano |
2b45e8 |
{
|
|
kusano |
2b45e8 |
return cblas_dzasum(*N, X, *incX);
|
|
kusano |
2b45e8 |
}
|