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
numerics/test/BLAS/cxx_main.cpp File Reference
#include "Teuchos_BLAS.hpp"
#include "Teuchos_Time.hpp"
#include "Teuchos_Version.hpp"
#include "Teuchos_GlobalMPISession.hpp"
Include dependency graph for numerics/test/BLAS/cxx_main.cpp:

Go to the source code of this file.

Macros

#define SType1   float
 
#define SType2   double
 
#define OType   int
 
#define MVMIN   2
 
#define MVMAX   20
 
#define SCALARMAX   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 TYPE >
void PrintVector (TYPE *Vector, OType Size, std::string Name, bool Matlab=0)
 
template<typename TYPE >
void PrintMatrix (TYPE *Matrix, OType Rows, OType Columns, OType LDM, std::string Name, bool Matlab=0)
 
template<typename TYPE1 , typename TYPE2 >
bool CompareScalars (TYPE1 Scalar1, TYPE2 Scalar2, TYPE2 Tolerance)
 
template<typename TYPE1 , typename TYPE2 >
bool CompareVectors (TYPE1 *Vector1, TYPE2 *Vector2, OType Size, TYPE2 Tolerance)
 
template<typename TYPE1 , typename TYPE2 >
bool CompareMatrices (TYPE1 *Matrix1, TYPE2 *Matrix2, OType Rows, OType Columns, OType LDM, TYPE2 Tolerance)
 
template<typename TYPE1 , typename TYPE2 >
TYPE2 ConvertType (TYPE1, TYPE2)
 
Teuchos::ESide RandomSIDE ()
 
Teuchos::EUplo RandomUPLO ()
 
Teuchos::ETransp RandomTRANS ()
 
Teuchos::EDiag RandomDIAG ()
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

#define SType1   float

Definition at line 40 of file numerics/test/BLAS/cxx_main.cpp.

#define SType2   double

Definition at line 43 of file numerics/test/BLAS/cxx_main.cpp.

#define OType   int

Definition at line 45 of file numerics/test/BLAS/cxx_main.cpp.

#define MVMIN   2

Definition at line 48 of file numerics/test/BLAS/cxx_main.cpp.

#define MVMAX   20

Definition at line 49 of file numerics/test/BLAS/cxx_main.cpp.

#define SCALARMAX   10

Definition at line 55 of file numerics/test/BLAS/cxx_main.cpp.

#define ROTGTESTS   5

Definition at line 57 of file numerics/test/BLAS/cxx_main.cpp.

#define ROTTESTS   5

Definition at line 58 of file numerics/test/BLAS/cxx_main.cpp.

#define ASUMTESTS   5

Definition at line 59 of file numerics/test/BLAS/cxx_main.cpp.

#define AXPYTESTS   5

Definition at line 60 of file numerics/test/BLAS/cxx_main.cpp.

#define COPYTESTS   5

Definition at line 61 of file numerics/test/BLAS/cxx_main.cpp.

#define DOTTESTS   5

Definition at line 62 of file numerics/test/BLAS/cxx_main.cpp.

#define IAMAXTESTS   5

Definition at line 63 of file numerics/test/BLAS/cxx_main.cpp.

#define NRM2TESTS   5

Definition at line 64 of file numerics/test/BLAS/cxx_main.cpp.

#define SCALTESTS   5

Definition at line 65 of file numerics/test/BLAS/cxx_main.cpp.

#define GEMVTESTS   5

Definition at line 66 of file numerics/test/BLAS/cxx_main.cpp.

#define GERTESTS   5

Definition at line 67 of file numerics/test/BLAS/cxx_main.cpp.

#define TRMVTESTS   5

Definition at line 68 of file numerics/test/BLAS/cxx_main.cpp.

#define GEMMTESTS   5

Definition at line 69 of file numerics/test/BLAS/cxx_main.cpp.

#define SYMMTESTS   5

Definition at line 70 of file numerics/test/BLAS/cxx_main.cpp.

#define SYRKTESTS   5

Definition at line 71 of file numerics/test/BLAS/cxx_main.cpp.

#define TRMMTESTS   5

Definition at line 72 of file numerics/test/BLAS/cxx_main.cpp.

#define TRSMTESTS   5

Definition at line 73 of file numerics/test/BLAS/cxx_main.cpp.

Function Documentation

template<typename TYPE >
TYPE GetRandom ( TYPE  Low,
TYPE  High 
)

Definition at line 1729 of file numerics/test/BLAS/cxx_main.cpp.

template<>
int GetRandom ( int  Low,
int  High 
)

Definition at line 1735 of file numerics/test/BLAS/cxx_main.cpp.

template<>
double GetRandom ( double  Low,
double  High 
)

Definition at line 1741 of file numerics/test/BLAS/cxx_main.cpp.

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

Definition at line 1747 of file numerics/test/BLAS/cxx_main.cpp.

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

Definition at line 1768 of file numerics/test/BLAS/cxx_main.cpp.

template<typename TYPE1 , typename TYPE2 >
bool CompareScalars ( TYPE1  Scalar1,
TYPE2  Scalar2,
TYPE2  Tolerance 
)

Definition at line 1803 of file numerics/test/BLAS/cxx_main.cpp.

template<typename TYPE1 , typename TYPE2 >
bool CompareVectors ( TYPE1 *  Vector1,
TYPE2 *  Vector2,
OType  Size,
TYPE2  Tolerance 
)

Definition at line 1819 of file numerics/test/BLAS/cxx_main.cpp.

template<typename TYPE1 , typename TYPE2 >
bool CompareMatrices ( TYPE1 *  Matrix1,
TYPE2 *  Matrix2,
OType  Rows,
OType  Columns,
OType  LDM,
TYPE2  Tolerance 
)

Definition at line 1849 of file numerics/test/BLAS/cxx_main.cpp.

template<typename TYPE1 , typename TYPE2 >
TYPE2 ConvertType ( TYPE1  T1,
TYPE2  T2 
)

Definition at line 1880 of file numerics/test/BLAS/cxx_main.cpp.

Teuchos::ESide RandomSIDE ( )

Definition at line 1909 of file numerics/test/BLAS/cxx_main.cpp.

Teuchos::EUplo RandomUPLO ( )

Definition at line 1924 of file numerics/test/BLAS/cxx_main.cpp.

Teuchos::ETransp RandomTRANS ( )

Definition at line 1939 of file numerics/test/BLAS/cxx_main.cpp.

Teuchos::EDiag RandomDIAG ( )

Definition at line 1958 of file numerics/test/BLAS/cxx_main.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 128 of file numerics/test/BLAS/cxx_main.cpp.