|
ScaLAPACK
2.0.2
ScaLAPACK: Scalable Linear Algebra PACKage
|
00001 /* --------------------------------------------------------------------- 00002 * 00003 * -- PBLAS auxiliary routine (version 2.0) -- 00004 * University of Tennessee, Knoxville, Oak Ridge National Laboratory, 00005 * and University of California, Berkeley. 00006 * April 1, 1998 00007 * 00008 * --------------------------------------------------------------------- 00009 */ 00010 /* 00011 * Include files 00012 */ 00013 #include "../pblas.h" 00014 #include "../PBpblas.h" 00015 #include "../PBtools.h" 00016 #include "../PBblacs.h" 00017 #include "../PBblas.h" 00018 00019 PBTYP_T * PB_Citypeset() 00020 { 00021 /* 00022 * Purpose 00023 * ======= 00024 * 00025 * PB_Citypeset on the first call initializes a static structure contai- 00026 * ning typed information and returns a pointer to it. The other calls 00027 * to this routine just returns this pointer. 00028 * 00029 * -- Written on April 1, 1998 by 00030 * R. Clint Whaley, University of Tennessee, Knoxville 37996, USA. 00031 * 00032 * --------------------------------------------------------------------- 00033 */ 00034 /* 00035 * .. Local Scalars .. 00036 */ 00037 static int setup=0; 00038 static PBTYP_T TypeStruct; 00039 static int zero, one, negone; 00040 /* .. 00041 * .. Executable Statements .. 00042 * 00043 */ 00044 if( setup ) return( &TypeStruct ); 00045 00046 setup = 1; 00047 00048 TypeStruct.type = INT; 00049 TypeStruct.usiz = sizeof( int ); 00050 TypeStruct.size = sizeof( int ); 00051 zero = 0; 00052 one = 1; 00053 negone = -1; 00054 00055 TypeStruct.zero = (char *) (&zero); 00056 TypeStruct.one = (char *) (&one); 00057 TypeStruct.negone = (char *) (&negone); 00058 00059 TypeStruct.Cgesd2d = Cigesd2d; 00060 TypeStruct.Cgerv2d = Cigerv2d; 00061 TypeStruct.Cgebs2d = Cigebs2d; 00062 TypeStruct.Cgebr2d = Cigebr2d; 00063 TypeStruct.Cgsum2d = Cigsum2d; 00064 00065 TypeStruct.Fmmadd = immadd_; 00066 TypeStruct.Fmmcadd = immadd_; 00067 TypeStruct.Fmmtadd = immtadd_; 00068 TypeStruct.Fmmtcadd = immtadd_; 00069 TypeStruct.Fmmdda = immdda_; 00070 TypeStruct.Fmmddac = immdda_; 00071 TypeStruct.Fmmddat = immddat_; 00072 TypeStruct.Fmmddact = immddat_; 00073 00074 TypeStruct.Fcshft = NULL; 00075 TypeStruct.Frshft = NULL; 00076 00077 TypeStruct.Fvvdotu = NULL; 00078 TypeStruct.Fvvdotc = NULL; 00079 00080 TypeStruct.Fset = NULL; 00081 00082 TypeStruct.Ftzpad = NULL; 00083 TypeStruct.Ftzpadcpy = NULL; 00084 00085 TypeStruct.Ftzscal = NULL; 00086 TypeStruct.Fhescal = NULL; 00087 TypeStruct.Ftzcnjg = NULL; 00088 00089 TypeStruct.Faxpy = NULL; 00090 TypeStruct.Fcopy = NULL; 00091 TypeStruct.Fswap = NULL; 00092 00093 TypeStruct.Fgemv = NULL; 00094 TypeStruct.Fsymv = NULL; 00095 TypeStruct.Fhemv = NULL; 00096 TypeStruct.Ftrmv = NULL; 00097 TypeStruct.Ftrsv = NULL; 00098 TypeStruct.Fagemv = NULL; 00099 TypeStruct.Fasymv = NULL; 00100 TypeStruct.Fahemv = NULL; 00101 TypeStruct.Fatrmv = NULL; 00102 00103 TypeStruct.Fgerc = NULL; 00104 TypeStruct.Fgeru = NULL; 00105 TypeStruct.Fsyr = NULL; 00106 TypeStruct.Fher = NULL; 00107 TypeStruct.Fsyr2 = NULL; 00108 TypeStruct.Fher2 = NULL; 00109 00110 TypeStruct.Fgemm = NULL; 00111 TypeStruct.Fsymm = NULL; 00112 TypeStruct.Fhemm = NULL; 00113 TypeStruct.Fsyrk = NULL; 00114 TypeStruct.Fherk = NULL; 00115 TypeStruct.Fsyr2k = NULL; 00116 TypeStruct.Fher2k = NULL; 00117 TypeStruct.Ftrmm = NULL; 00118 TypeStruct.Ftrsm = NULL; 00119 00120 return( &TypeStruct ); 00121 /* 00122 * End of PB_Citypeset 00123 */ 00124 }