Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Defines | 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.

Defines

#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[])

Define Documentation

#define SType   double

Definition at line 69 of file cxx_tmpl_main_comp.cpp.

#define OType1   long int

Definition at line 73 of file cxx_tmpl_main_comp.cpp.

#define OType2   int

Definition at line 74 of file cxx_tmpl_main_comp.cpp.

#define MVMIN   2

Definition at line 78 of file cxx_tmpl_main_comp.cpp.

#define MVMAX   20

Definition at line 79 of file cxx_tmpl_main_comp.cpp.

#define SCALARMAX   SType(10)

Definition at line 87 of file cxx_tmpl_main_comp.cpp.

#define ROTGTESTS   5

Definition at line 90 of file cxx_tmpl_main_comp.cpp.

#define ROTTESTS   5

Definition at line 91 of file cxx_tmpl_main_comp.cpp.

#define ASUMTESTS   5

Definition at line 92 of file cxx_tmpl_main_comp.cpp.

#define AXPYTESTS   5

Definition at line 93 of file cxx_tmpl_main_comp.cpp.

#define COPYTESTS   5

Definition at line 94 of file cxx_tmpl_main_comp.cpp.

#define DOTTESTS   5

Definition at line 95 of file cxx_tmpl_main_comp.cpp.

#define IAMAXTESTS   5

Definition at line 96 of file cxx_tmpl_main_comp.cpp.

#define NRM2TESTS   5

Definition at line 97 of file cxx_tmpl_main_comp.cpp.

#define SCALTESTS   5

Definition at line 98 of file cxx_tmpl_main_comp.cpp.

#define GEMVTESTS   5

Definition at line 99 of file cxx_tmpl_main_comp.cpp.

#define GERTESTS   5

Definition at line 100 of file cxx_tmpl_main_comp.cpp.

#define TRMVTESTS   5

Definition at line 101 of file cxx_tmpl_main_comp.cpp.

#define GEMMTESTS   5

Definition at line 102 of file cxx_tmpl_main_comp.cpp.

#define SYMMTESTS   5

Definition at line 103 of file cxx_tmpl_main_comp.cpp.

#define SYRKTESTS   5

Definition at line 104 of file cxx_tmpl_main_comp.cpp.

#define TRMMTESTS   5

Definition at line 105 of file cxx_tmpl_main_comp.cpp.

#define TRSMTESTS   5

Definition at line 106 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 1895 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 1917 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 1938 of file cxx_tmpl_main_comp.cpp.

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

Definition at line 1973 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 1988 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 2018 of file cxx_tmpl_main_comp.cpp.

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

Definition at line 142 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 153 of file cxx_tmpl_main_comp.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines