Go to the source code of this file.
Defines |
| #define | SType1 float |
| #define | SType2 double |
| #define | OType long int |
| #define | MVMIN 2 |
| #define | MVMAX 20 |
| #define | SCALARMAX 10 |
| #define | ROTGTESTS 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 | 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, typename ScalarTraits< TYPE2 >::magnitudeType Tolerance) |
| template<typename TYPE1 , typename TYPE2 > |
| bool | CompareVectors (TYPE1 *Vector1, TYPE2 *Vector2, OType Size, typename ScalarTraits< TYPE2 >::magnitudeType Tolerance) |
| template<typename TYPE1 , typename TYPE2 > |
| bool | CompareMatrices (TYPE1 *Matrix1, TYPE2 *Matrix2, OType Rows, OType Columns, OType LDM, typename ScalarTraits< TYPE2 >::magnitudeType 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[]) |
Define Documentation
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 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, |
|
|
typename ScalarTraits< TYPE2 >::magnitudeType |
Tolerance |
|
) |
| |
template<typename TYPE1 , typename TYPE2 >
| bool CompareVectors |
( |
TYPE1 * |
Vector1, |
|
|
TYPE2 * |
Vector2, |
|
|
OType |
Size, |
|
|
typename ScalarTraits< TYPE2 >::magnitudeType |
Tolerance |
|
) |
| |
template<typename TYPE1 , typename TYPE2 >
| bool CompareMatrices |
( |
TYPE1 * |
Matrix1, |
|
|
TYPE2 * |
Matrix2, |
|
|
OType |
Rows, |
|
|
OType |
Columns, |
|
|
OType |
LDM, |
|
|
typename ScalarTraits< TYPE2 >::magnitudeType |
Tolerance |
|
) |
| |
template<typename TYPE1 , typename TYPE2 >
| TYPE2 ConvertType |
( |
TYPE1 |
T1, |
|
|
TYPE2 |
T2 |
|
) |
| |
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |