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 28 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 32 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 73 of file PlayaVectorTester.hpp.


Member Function Documentation

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

Definition at line 223 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 172 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 323 of file PlayaVectorTester.hpp.

References Playa::normInf().

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

Definition at line 96 of file PlayaVectorTester.hpp.

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

Definition at line 81 of file PlayaVectorTester.hpp.

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

Definition at line 275 of file PlayaVectorTester.hpp.

References Playa::normInf().

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

Definition at line 110 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 67 of file PlayaVectorTester.hpp.

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

Definition at line 65 of file PlayaVectorTester.hpp.

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

Definition at line 63 of file PlayaVectorTester.hpp.

Site Contact