Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Typedefs | Functions
cxx_main_solver.cpp File Reference
#include "Teuchos_SerialDenseMatrix.hpp"
#include "Teuchos_SerialDenseVector.hpp"
#include "Teuchos_SerialDenseHelpers.hpp"
#include "Teuchos_SerialDenseSolver.hpp"
#include "Teuchos_ScalarTraits.hpp"
#include "Teuchos_RCP.hpp"
#include "Teuchos_Version.hpp"
Include dependency graph for cxx_main_solver.cpp:

Go to the source code of this file.

Macros

#define OTYPE   int
 
#define STYPE   double
 
#define SCALARMAX   STYPE(10)
 

Typedefs

typedef SerialDenseVector
< OTYPE, STYPE
DVector
 
typedef SerialDenseMatrix
< OTYPE, STYPE
DMatrix
 

Functions

template<typename TYPE >
int PrintTestResults (std::string, TYPE, TYPE, bool)
 
int ReturnCodeCheck (std::string, int, int, bool)
 
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 >)
 
Teuchos::RCP< DMatrixGetRandomMatrix (int m, int n)
 
Teuchos::RCP< DVectorGetRandomVector (int n)
 
int CompareVectors (const SerialDenseVector< OTYPE, STYPE > &Vector1, const SerialDenseVector< OTYPE, STYPE > &Vector2, ScalarTraits< STYPE >::magnitudeType Tolerance, bool verbose)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

#define OTYPE   int

Definition at line 54 of file cxx_main_solver.cpp.

#define STYPE   double

Definition at line 58 of file cxx_main_solver.cpp.

#define SCALARMAX   STYPE(10)

Definition at line 66 of file cxx_main_solver.cpp.

Typedef Documentation

Definition at line 74 of file cxx_main_solver.cpp.

Definition at line 75 of file cxx_main_solver.cpp.

Function Documentation

template<typename TYPE >
int PrintTestResults ( std::string  testName,
TYPE  calculatedResult,
TYPE  expectedResult,
bool  verbose 
)
int ReturnCodeCheck ( std::string  testName,
int  returnCode,
int  expectedResult,
bool  verbose 
)
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 
)
Teuchos::RCP<DMatrix> GetRandomMatrix ( int  m,
int  n 
)
Teuchos::RCP<DVector> GetRandomVector ( int  n)
int CompareVectors ( const SerialDenseVector< OTYPE, STYPE > &  Vector1,
const SerialDenseVector< OTYPE, STYPE > &  Vector2,
ScalarTraits< STYPE >::magnitudeType  Tolerance,
bool  verbose 
)

Definition at line 458 of file cxx_main_solver.cpp.

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

Definition at line 103 of file cxx_main_solver.cpp.