c_dblas1.c
Go to the documentation of this file.
00001 /*
00002  * c_dblas1.c
00003  *
00004  * The program is a C wrapper for dcblat1.
00005  *
00006  * Written by Keita Teranishi.  2/11/1998
00007  *
00008  */
00009 #include "cblas_test.h"
00010 #include "cblas.h"
00011 double F77_dasum(const int *N, double *X, const int *incX)
00012 {
00013    return cblas_dasum(*N, X, *incX);
00014 }
00015 
00016 void F77_daxpy(const int *N, const double *alpha, const double *X,
00017                     const int *incX, double *Y, const int *incY)
00018 {
00019    cblas_daxpy(*N, *alpha, X, *incX, Y, *incY);
00020    return;
00021 }
00022 
00023 void F77_dcopy(const int *N, double *X, const int *incX, 
00024                     double *Y, const int *incY)
00025 {
00026    cblas_dcopy(*N, X, *incX, Y, *incY);
00027    return;
00028 }
00029 
00030 double F77_ddot(const int *N, const double *X, const int *incX,
00031                 const double *Y, const int *incY)
00032 {
00033    return cblas_ddot(*N, X, *incX, Y, *incY);
00034 }
00035 
00036 double F77_dnrm2(const int *N, const double *X, const int *incX)
00037 {
00038    return cblas_dnrm2(*N, X, *incX);
00039 }
00040 
00041 void F77_drotg( double *a, double *b, double *c, double *s)
00042 {
00043    cblas_drotg(a,b,c,s);
00044    return;
00045 }
00046 
00047 void F77_drot( const int *N, double *X, const int *incX, double *Y,
00048        const int *incY, const double *c, const double *s)
00049 {
00050 
00051    cblas_drot(*N,X,*incX,Y,*incY,*c,*s);
00052    return;
00053 }
00054 
00055 void F77_dscal(const int *N, const double *alpha, double *X,
00056                          const int *incX)
00057 {
00058    cblas_dscal(*N, *alpha, X, *incX);
00059    return;
00060 }
00061 
00062 void F77_dswap( const int *N, double *X, const int *incX,
00063                           double *Y, const int *incY)
00064 {
00065    cblas_dswap(*N,X,*incX,Y,*incY);
00066    return;
00067 }
00068 
00069 double F77_dzasum(const int *N, void *X, const int *incX)
00070 {
00071    return cblas_dzasum(*N, X, *incX);
00072 }
00073 
00074 double F77_dznrm2(const int *N, const void *X, const int *incX)
00075 {
00076    return cblas_dznrm2(*N, X, *incX);
00077 }
00078 
00079 int F77_idamax(const int *N, const double *X, const int *incX)
00080 {
00081    if (*N < 1 || *incX < 1) return(0);
00082    return (cblas_idamax(*N, X, *incX)+1);
00083 }


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