Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
cxx_main_qr_solver.cpp File Reference
#include "Teuchos_SerialDenseMatrix.hpp"
#include "Teuchos_SerialDenseVector.hpp"
#include "Teuchos_SerialDenseHelpers.hpp"
#include "Teuchos_SerialQRDenseSolver.hpp"
#include "Teuchos_ScalarTraits.hpp"
#include "Teuchos_RCP.hpp"
#include "Teuchos_Version.hpp"
Include dependency graph for cxx_main_qr_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, STYPEDVector
 
typedef SerialDenseMatrix< OTYPE, STYPEDMatrix
 

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)
 
int main (int argc, char *argv[])
 
template<>
int GetRandom (int Low, int High)
 
template<>
double GetRandom (double Low, double High)
 

Macro Definition Documentation

◆ OTYPE

#define OTYPE   int

Definition at line 55 of file cxx_main_qr_solver.cpp.

◆ STYPE

#define STYPE   double

Definition at line 59 of file cxx_main_qr_solver.cpp.

◆ SCALARMAX

#define SCALARMAX   STYPE(10)

Definition at line 67 of file cxx_main_qr_solver.cpp.

Typedef Documentation

◆ DVector

Definition at line 75 of file cxx_main_qr_solver.cpp.

◆ DMatrix

Definition at line 76 of file cxx_main_qr_solver.cpp.

Function Documentation

◆ PrintTestResults()

template<typename TYPE >
int PrintTestResults ( std::string  testName,
TYPE  calculatedResult,
TYPE  expectedResult,
bool  verbose 
)

Definition at line 397 of file cxx_main_qr_solver.cpp.

◆ ReturnCodeCheck()

int ReturnCodeCheck ( std::string  testName,
int  returnCode,
int  expectedResult,
bool  verbose 
)

Definition at line 413 of file cxx_main_qr_solver.cpp.

◆ GetRandom() [1/6]

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

Definition at line 446 of file cxx_main_qr_solver.cpp.

◆ GetRandom() [2/6]

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

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

◆ GetRandom() [3/6]

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

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

◆ GetRandom() [4/6]

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

Definition at line 452 of file cxx_main_qr_solver.cpp.

◆ GetRandomMatrix()

Teuchos::RCP< DMatrix > GetRandomMatrix ( int  m,
int  n 
)

Definition at line 473 of file cxx_main_qr_solver.cpp.

◆ GetRandomVector()

Teuchos::RCP< DVector > GetRandomVector ( int  n)

Definition at line 485 of file cxx_main_qr_solver.cpp.

◆ CompareVectors()

int CompareVectors ( const SerialDenseVector< OTYPE, STYPE > &  Vector1,
const SerialDenseVector< OTYPE, STYPE > &  Vector2,
ScalarTraits< STYPE >::magnitudeType  Tolerance 
)

Definition at line 500 of file cxx_main_qr_solver.cpp.

◆ main()

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

Definition at line 103 of file cxx_main_qr_solver.cpp.

◆ GetRandom() [5/6]

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

Definition at line 462 of file cxx_main_qr_solver.cpp.

◆ GetRandom() [6/6]

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

Definition at line 468 of file cxx_main_qr_solver.cpp.