1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
/* ---------------------------------------------------------------------
*
* -- PBLAS auxiliary routine (version 2.0) --
* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
* and University of California, Berkeley.
* April 1, 1998
*
* ---------------------------------------------------------------------
*/
/*
* Include files
*/
#include "../pblas.h"
#include "../PBpblas.h"
#include "../PBtools.h"
#include "../PBblacs.h"
#include "../PBblas.h"
PBTYP_T * PB_Cstypeset()
{
/*
* Purpose
* =======
*
* PB_Cstypeset on the first call initializes a static structure contai-
* ning typed information and returns a pointer to it. The other calls
* to this routine just returns this pointer.
*
* -- Written on April 1, 1998 by
* R. Clint Whaley, University of Tennessee, Knoxville 37996, USA.
*
* ---------------------------------------------------------------------
*/
/*
* .. Local Scalars ..
*/
static int setup=0;
static PBTYP_T TypeStruct;
static float zero, one, negone;
/* ..
* .. Executable Statements ..
*
*/
if( setup ) return( &TypeStruct );
setup = 1;
TypeStruct.type = SREAL;
TypeStruct.usiz = sizeof( float );
TypeStruct.size = sizeof( float );
zero = ZERO;
one = ONE;
negone = -ONE;
TypeStruct.zero = (char *) (&zero);
TypeStruct.one = (char *) (&one);
TypeStruct.negone = (char *) (&negone);
TypeStruct.Cgesd2d = Csgesd2d;
TypeStruct.Cgerv2d = Csgerv2d;
TypeStruct.Cgebs2d = Csgebs2d;
TypeStruct.Cgebr2d = Csgebr2d;
TypeStruct.Cgsum2d = Csgsum2d;
TypeStruct.Fmmadd = smmadd_;
TypeStruct.Fmmcadd = smmcadd_;
TypeStruct.Fmmtadd = smmtadd_;
TypeStruct.Fmmtcadd = smmtcadd_;
TypeStruct.Fmmdda = smmdda_;
TypeStruct.Fmmddac = smmddac_;
TypeStruct.Fmmddat = smmddat_;
TypeStruct.Fmmddact = smmddact_;
TypeStruct.Fcshft = scshft_;
TypeStruct.Frshft = srshft_;
TypeStruct.Fvvdotu = svvdot_;
TypeStruct.Fvvdotc = svvdot_;
TypeStruct.Fset = sset_;
TypeStruct.Ftzpad = stzpad_;
TypeStruct.Ftzpadcpy = stzpadcpy_;
TypeStruct.Ftzscal = stzscal_;
TypeStruct.Fhescal = stzscal_;
TypeStruct.Ftzcnjg = stzscal_;
TypeStruct.Faxpy = saxpy_;
TypeStruct.Fcopy = scopy_;
TypeStruct.Fswap = sswap_;
TypeStruct.Fgemv = sgemv_;
TypeStruct.Fsymv = ssymv_;
TypeStruct.Fhemv = ssymv_;
TypeStruct.Ftrmv = strmv_;
TypeStruct.Ftrsv = strsv_;
TypeStruct.Fagemv = sagemv_;
TypeStruct.Fasymv = sasymv_;
TypeStruct.Fahemv = sasymv_;
TypeStruct.Fatrmv = satrmv_;
TypeStruct.Fgerc = sger_;
TypeStruct.Fgeru = sger_;
TypeStruct.Fsyr = ssyr_;
TypeStruct.Fher = ssyr_;
TypeStruct.Fsyr2 = ssyr2_;
TypeStruct.Fher2 = ssyr2_;
TypeStruct.Fgemm = sgemm_;
TypeStruct.Fsymm = ssymm_;
TypeStruct.Fhemm = ssymm_;
TypeStruct.Fsyrk = ssyrk_;
TypeStruct.Fherk = ssyrk_;
TypeStruct.Fsyr2k = ssyr2k_;
TypeStruct.Fher2k = ssyr2k_;
TypeStruct.Ftrmm = strmm_;
TypeStruct.Ftrsm = strsm_;
return( &TypeStruct );
/*
* End of PB_Cstypeset
*/
}
|