Public Types | Public Member Functions | Private Member Functions | Private Attributes
Playa::VectorTester< Scalar > Class Template Reference

List of all members.

Public Types

typedef Teuchos::ScalarTraits
< Scalar >::magnitudeType 
ScalarMag
 Local typedef for promoted scalar magnitude.

Public Member Functions

 VectorTester (const VectorSpace< Scalar > &space, const TestSpecifier< Scalar > &spec, const Playa::MPIComm &comm=Playa::MPIComm::world())
bool runAllTests () const
bool sumTest () const
bool dotStarTest () const
bool dotSlashTest () const
bool scalarMultTest () const
bool overloadedUpdateTest () const

Private Member Functions

void randomizeVec (Vector< Scalar > &x) const

Private Attributes

TestSpecifier< Scalar > spec_
VectorSpace< Scalar > space_
Playa::MPIComm comm_

Detailed Description

template<class Scalar>
class Playa::VectorTester< Scalar >

Run comparisons between element-wise calculations and Vector member functions.

Definition at line 65 of file PlayaVectorTester.hpp.


Member Typedef Documentation

template<class Scalar >
typedef Teuchos::ScalarTraits<Scalar>::magnitudeType Playa::VectorTester< Scalar >::ScalarMag

Local typedef for promoted scalar magnitude.

Definition at line 69 of file PlayaVectorTester.hpp.


Constructor & Destructor Documentation

template<class Scalar >
Playa::VectorTester< Scalar >::VectorTester ( const VectorSpace< Scalar > &  space,
const TestSpecifier< Scalar > &  spec,
const Playa::MPIComm comm = Playa::MPIComm::world() 
) [inline]

Definition at line 110 of file PlayaVectorTester.hpp.


Member Function Documentation

template<class Scalar >
bool Playa::VectorTester< Scalar >::dotSlashTest ( ) const [inline]

Definition at line 260 of file PlayaVectorTester.hpp.

References Playa::Vector< Scalar >::dotSlash(), and Playa::normInf().

template<class Scalar >
bool Playa::VectorTester< Scalar >::dotStarTest ( ) const [inline]

Definition at line 209 of file PlayaVectorTester.hpp.

References Playa::Vector< Scalar >::dotStar(), and Playa::normInf().

template<class Scalar >
bool Playa::VectorTester< Scalar >::overloadedUpdateTest ( ) const [inline]

Definition at line 360 of file PlayaVectorTester.hpp.

References Playa::normInf().

template<class Scalar >
void Playa::VectorTester< Scalar >::randomizeVec ( Vector< Scalar > &  x) const [inline, private]

Definition at line 133 of file PlayaVectorTester.hpp.

template<class Scalar >
bool Playa::VectorTester< Scalar >::runAllTests ( ) const [inline]

Definition at line 118 of file PlayaVectorTester.hpp.

template<class Scalar >
bool Playa::VectorTester< Scalar >::scalarMultTest ( ) const [inline]

Definition at line 312 of file PlayaVectorTester.hpp.

References Playa::normInf().

template<class Scalar >
bool Playa::VectorTester< Scalar >::sumTest ( ) const [inline]

Definition at line 147 of file PlayaVectorTester.hpp.

References Playa::normInf(), and Playa::Vector< Scalar >::zero().


Member Data Documentation

template<class Scalar >
Playa::MPIComm Playa::VectorTester< Scalar >::comm_ [private]

Definition at line 104 of file PlayaVectorTester.hpp.

template<class Scalar >
VectorSpace<Scalar> Playa::VectorTester< Scalar >::space_ [private]

Definition at line 102 of file PlayaVectorTester.hpp.

template<class Scalar >
TestSpecifier<Scalar> Playa::VectorTester< Scalar >::spec_ [private]

Definition at line 100 of file PlayaVectorTester.hpp.

Site Contact