Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
cxx_tmpl_main_comp.cpp File Reference
#include "Teuchos_BLAS.hpp"
#include "Teuchos_Time.hpp"
#include "Teuchos_Version.hpp"
#include "Teuchos_GlobalMPISession.hpp"
Include dependency graph for cxx_tmpl_main_comp.cpp:

Go to the source code of this file.

Macros

#define SType   double
 
#define OType1   long int
 
#define OType2   int
 
#define MVMIN   2
 
#define MVMAX   20
 
#define SCALARMAX   SType(10)
 
#define ROTGTESTS   5
 
#define ROTTESTS   5
 
#define ASUMTESTS   5
 
#define AXPYTESTS   5
 
#define COPYTESTS   5
 
#define DOTTESTS   5
 
#define IAMAXTESTS   5
 
#define NRM2TESTS   5
 
#define SCALTESTS   5
 
#define GEMVTESTS   5
 
#define GERTESTS   5
 
#define TRMVTESTS   5
 
#define GEMMTESTS   5
 
#define SYMMTESTS   5
 
#define SYRKTESTS   5
 
#define TRMMTESTS   5
 
#define TRSMTESTS   5
 

Functions

template<typename TYPE >
TYPE GetRandom (TYPE, TYPE)
 
template<>
int GetRandom (int, int)
 
template<>
double GetRandom (double, double)
 
template<typename T >
std::complex< T > GetRandom (std::complex< T >, std::complex< T >)
 
template<typename TYPE , typename OTYPE >
void PrintVector (TYPE *Vector, OTYPE Size, std::string Name, bool Matlab=0)
 
template<typename TYPE , typename OTYPE >
void PrintMatrix (TYPE *Matrix, OTYPE Rows, OTYPE Columns, OTYPE LDM, std::string Name, bool Matlab=0)
 
template<typename TYPE >
bool CompareScalars (TYPE Scalar1, TYPE Scalar2, typename ScalarTraits< TYPE >::magnitudeType Tolerance)
 
template<typename TYPE , typename OTYPE1 , typename OTYPE2 >
bool CompareVectors (TYPE *Vector1, OTYPE1 Size1, TYPE *Vector2, OTYPE2 Size2, typename ScalarTraits< TYPE >::magnitudeType Tolerance)
 
template<typename TYPE , typename OTYPE1 , typename OTYPE2 >
bool CompareMatrices (TYPE *Matrix1, OTYPE1 Rows1, OTYPE1 Columns1, OTYPE1 LDM1, TYPE *Matrix2, OTYPE2 Rows2, OTYPE2 Columns2, OTYPE2 LDM2, typename ScalarTraits< TYPE >::magnitudeType Tolerance)
 
template<typename OTYPE1 , typename OTYPE2 >
OTYPE2 ConvertType (OTYPE1 T1, OTYPE2 T2)
 
Teuchos::ESide RandomSIDE ()
 
Teuchos::EUplo RandomUPLO ()
 
Teuchos::ETransp RandomTRANS ()
 
Teuchos::EDiag RandomDIAG ()
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

#define SType   double

Definition at line 37 of file cxx_tmpl_main_comp.cpp.

#define OType1   long int

Definition at line 41 of file cxx_tmpl_main_comp.cpp.

#define OType2   int

Definition at line 42 of file cxx_tmpl_main_comp.cpp.

#define MVMIN   2

Definition at line 46 of file cxx_tmpl_main_comp.cpp.

#define MVMAX   20

Definition at line 47 of file cxx_tmpl_main_comp.cpp.

#define SCALARMAX   SType(10)

Definition at line 55 of file cxx_tmpl_main_comp.cpp.

#define ROTGTESTS   5

Definition at line 58 of file cxx_tmpl_main_comp.cpp.

#define ROTTESTS   5

Definition at line 59 of file cxx_tmpl_main_comp.cpp.

#define ASUMTESTS   5

Definition at line 60 of file cxx_tmpl_main_comp.cpp.

#define AXPYTESTS   5

Definition at line 61 of file cxx_tmpl_main_comp.cpp.

#define COPYTESTS   5

Definition at line 62 of file cxx_tmpl_main_comp.cpp.

#define DOTTESTS   5

Definition at line 63 of file cxx_tmpl_main_comp.cpp.

#define IAMAXTESTS   5

Definition at line 64 of file cxx_tmpl_main_comp.cpp.

#define NRM2TESTS   5

Definition at line 65 of file cxx_tmpl_main_comp.cpp.

#define SCALTESTS   5

Definition at line 66 of file cxx_tmpl_main_comp.cpp.

#define GEMVTESTS   5

Definition at line 67 of file cxx_tmpl_main_comp.cpp.

#define GERTESTS   5

Definition at line 68 of file cxx_tmpl_main_comp.cpp.

#define TRMVTESTS   5

Definition at line 69 of file cxx_tmpl_main_comp.cpp.

#define GEMMTESTS   5

Definition at line 70 of file cxx_tmpl_main_comp.cpp.

#define SYMMTESTS   5

Definition at line 71 of file cxx_tmpl_main_comp.cpp.

#define SYRKTESTS   5

Definition at line 72 of file cxx_tmpl_main_comp.cpp.

#define TRMMTESTS   5

Definition at line 73 of file cxx_tmpl_main_comp.cpp.

#define TRSMTESTS   5

Definition at line 74 of file cxx_tmpl_main_comp.cpp.

Function Documentation

template<typename TYPE >
TYPE GetRandom ( TYPE  Low,
TYPE  High 
)
template<>
int GetRandom ( int  Low,
int  High 
)
template<>
double GetRandom ( double  Low,
double  High 
)
template<typename T >
std::complex< T > GetRandom ( std::complex< T >  Low,
std::complex< T >  High 
)

Definition at line 1863 of file cxx_tmpl_main_comp.cpp.

template<typename TYPE , typename OTYPE >
void PrintVector ( TYPE *  Vector,
OTYPE  Size,
std::string  Name,
bool  Matlab = 0 
)

Definition at line 1885 of file cxx_tmpl_main_comp.cpp.

template<typename TYPE , typename OTYPE >
void PrintMatrix ( TYPE *  Matrix,
OTYPE  Rows,
OTYPE  Columns,
OTYPE  LDM,
std::string  Name,
bool  Matlab = 0 
)

Definition at line 1906 of file cxx_tmpl_main_comp.cpp.

template<typename TYPE >
bool CompareScalars ( TYPE  Scalar1,
TYPE  Scalar2,
typename ScalarTraits< TYPE >::magnitudeType  Tolerance 
)

Definition at line 1941 of file cxx_tmpl_main_comp.cpp.

template<typename TYPE , typename OTYPE1 , typename OTYPE2 >
bool CompareVectors ( TYPE *  Vector1,
OTYPE1  Size1,
TYPE *  Vector2,
OTYPE2  Size2,
typename ScalarTraits< TYPE >::magnitudeType  Tolerance 
)

Definition at line 1956 of file cxx_tmpl_main_comp.cpp.

template<typename TYPE , typename OTYPE1 , typename OTYPE2 >
bool CompareMatrices ( TYPE *  Matrix1,
OTYPE1  Rows1,
OTYPE1  Columns1,
OTYPE1  LDM1,
TYPE *  Matrix2,
OTYPE2  Rows2,
OTYPE2  Columns2,
OTYPE2  LDM2,
typename ScalarTraits< TYPE >::magnitudeType  Tolerance 
)

Definition at line 1986 of file cxx_tmpl_main_comp.cpp.

template<typename OTYPE1 , typename OTYPE2 >
OTYPE2 ConvertType ( OTYPE1  T1,
OTYPE2  T2 
)

Definition at line 110 of file cxx_tmpl_main_comp.cpp.

Teuchos::ESide RandomSIDE ( )
Teuchos::EUplo RandomUPLO ( )
Teuchos::ETransp RandomTRANS ( )
Teuchos::EDiag RandomDIAG ( )
int main ( int  argc,
char *  argv[] 
)

Definition at line 121 of file cxx_tmpl_main_comp.cpp.