Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Macros | Functions
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[])
 
template<>
int GetRandom (int Low, int High)
 
template<>
double GetRandom (double Low, double High)
 

Macro Definition Documentation

◆ SType1

#define SType1   float

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

◆ SType2

#define SType2   double

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

◆ OType

#define OType   int

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

◆ MVMIN

#define MVMIN   2

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

◆ MVMAX

#define MVMAX   20

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

◆ SCALARMAX

#define SCALARMAX   10

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

◆ ROTGTESTS

#define ROTGTESTS   5

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

◆ ROTTESTS

#define ROTTESTS   5

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

◆ ASUMTESTS

#define ASUMTESTS   5

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

◆ AXPYTESTS

#define AXPYTESTS   5

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

◆ COPYTESTS

#define COPYTESTS   5

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

◆ DOTTESTS

#define DOTTESTS   5

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

◆ IAMAXTESTS

#define IAMAXTESTS   5

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

◆ NRM2TESTS

#define NRM2TESTS   5

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

◆ SCALTESTS

#define SCALTESTS   5

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

◆ GEMVTESTS

#define GEMVTESTS   5

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

◆ GERTESTS

#define GERTESTS   5

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

◆ TRMVTESTS

#define TRMVTESTS   5

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

◆ GEMMTESTS

#define GEMMTESTS   5

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

◆ SYMMTESTS

#define SYMMTESTS   5

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

◆ SYRKTESTS

#define SYRKTESTS   5

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

◆ TRMMTESTS

#define TRMMTESTS   5

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

◆ TRSMTESTS

#define TRSMTESTS   5

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

Function Documentation

◆ GetRandom() [1/5]

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

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

◆ GetRandom() [2/5]

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

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

◆ GetRandom() [3/5]

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

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

◆ PrintVector()

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

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

◆ PrintMatrix()

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

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

◆ CompareScalars()

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

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

◆ CompareVectors()

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

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

◆ CompareMatrices()

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

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

◆ ConvertType()

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

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

◆ RandomSIDE()

Teuchos::ESide RandomSIDE ( )

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

◆ RandomUPLO()

Teuchos::EUplo RandomUPLO ( )

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

◆ RandomTRANS()

Teuchos::ETransp RandomTRANS ( )

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

◆ RandomDIAG()

Teuchos::EDiag RandomDIAG ( )

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

◆ main()

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

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

◆ GetRandom() [4/5]

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

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

◆ GetRandom() [5/5]

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

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