c_sblas1.c
Go to the documentation of this file.
00001 /*
00002  * c_sblas1.c
00003  *
00004  * The program is a C wrapper for scblat1.
00005  *
00006  * Written by Keita Teranishi.  2/11/1998
00007  *
00008  */
00009 #include "cblas_test.h"
00010 #include "cblas.h"
00011 float F77_sasum(const int *N, float *X, const int *incX)
00012 {
00013    return cblas_sasum(*N, X, *incX);
00014 }
00015 
00016 void F77_saxpy(const int *N, const float *alpha, const float *X,
00017                     const int *incX, float *Y, const int *incY)
00018 {
00019    cblas_saxpy(*N, *alpha, X, *incX, Y, *incY);
00020    return;
00021 }
00022 
00023 float F77_scasum(const int *N, void *X, const int *incX)
00024 {
00025    return cblas_scasum(*N, X, *incX);
00026 }
00027 
00028 float F77_scnrm2(const int *N, const void *X, const int *incX)
00029 {
00030    return cblas_scnrm2(*N, X, *incX);
00031 }
00032 
00033 void F77_scopy(const int *N, const float *X, const int *incX, 
00034                     float *Y, const int *incY)
00035 {
00036    cblas_scopy(*N, X, *incX, Y, *incY);
00037    return;
00038 }
00039 
00040 float F77_sdot(const int *N, const float *X, const int *incX, 
00041                         const float *Y, const int *incY)
00042 {
00043    return cblas_sdot(*N, X, *incX, Y, *incY);
00044 }
00045 
00046 float F77_snrm2(const int *N, const float *X, const int *incX)
00047 {
00048    return cblas_snrm2(*N, X, *incX);
00049 }
00050 
00051 void F77_srotg( float *a, float *b, float *c, float *s)
00052 {
00053    cblas_srotg(a,b,c,s);
00054    return;
00055 }
00056 
00057 void F77_srot( const int *N, float *X, const int *incX, float *Y,
00058               const int *incY, const float  *c, const float  *s)
00059 {
00060    cblas_srot(*N,X,*incX,Y,*incY,*c,*s);
00061    return;
00062 }
00063 
00064 void F77_sscal(const int *N, const float *alpha, float *X,
00065                          const int *incX)
00066 {
00067    cblas_sscal(*N, *alpha, X, *incX);
00068    return;
00069 }
00070 
00071 void F77_sswap( const int *N, float *X, const int *incX,
00072                           float *Y, const int *incY)
00073 {
00074    cblas_sswap(*N,X,*incX,Y,*incY);
00075    return;
00076 }
00077 
00078 int F77_isamax(const int *N, const float *X, const int *incX)
00079 {
00080    if (*N < 1 || *incX < 1) return(0);
00081    return (cblas_isamax(*N, X, *incX)+1);
00082 }


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