c_cblas1.c
Go to the documentation of this file.
00001 /*
00002  * c_cblas1.c
00003  *
00004  * The program is a C wrapper for ccblat1.
00005  *
00006  * Written by Keita Teranishi.  2/11/1998
00007  *
00008  */
00009 #include "cblas_test.h"
00010 #include "cblas.h"
00011 void F77_caxpy(const int *N, const void *alpha, void *X,
00012                     const int *incX, void *Y, const int *incY)
00013 {
00014    cblas_caxpy(*N, alpha, X, *incX, Y, *incY);
00015    return;
00016 }
00017 
00018 void F77_ccopy(const int *N, void *X, const int *incX, 
00019                     void *Y, const int *incY)
00020 {
00021    cblas_ccopy(*N, X, *incX, Y, *incY);
00022    return;
00023 }
00024 
00025 void F77_cdotc(const int *N, void *X, const int *incX, 
00026                         void *Y, const int *incY, void *dotc)
00027 {
00028    cblas_cdotc_sub(*N, X, *incX, Y, *incY, dotc);
00029    return;
00030 }
00031 
00032 void F77_cdotu(const int *N, void *X, const int *incX, 
00033                         void *Y, const int *incY,void *dotu)
00034 {
00035    cblas_cdotu_sub(*N, X, *incX, Y, *incY, dotu);
00036    return;
00037 }
00038 
00039 void F77_cscal(const int *N, const void * *alpha, void *X,
00040                          const int *incX)
00041 {
00042    cblas_cscal(*N, alpha, X, *incX);
00043    return;
00044 }
00045 
00046 void F77_csscal(const int *N, const float *alpha, void *X,
00047                          const int *incX)
00048 {
00049    cblas_csscal(*N, *alpha, X, *incX);
00050    return;
00051 }
00052 
00053 void F77_cswap( const int *N, void *X, const int *incX,
00054                           void *Y, const int *incY)
00055 {
00056    cblas_cswap(*N,X,*incX,Y,*incY);
00057    return;
00058 }
00059 
00060 int F77_icamax(const int *N, const void *X, const int *incX)
00061 {
00062    if (*N < 1 || *incX < 1) return(0);
00063    return (cblas_icamax(*N, X, *incX)+1);
00064 }
00065 
00066 float F77_scnrm2(const int *N, const void *X, const int *incX)
00067 {
00068    return cblas_scnrm2(*N, X, *incX);
00069 }
00070 
00071 float F77_scasum(const int *N, void *X, const int *incX)
00072 {
00073    return cblas_scasum(*N, X, *incX);
00074 }


swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:55:15