Anasazi Version of the Day
Public Member Functions | Protected Member Functions
TSQR::Trilinos::Randomizer< S, LO, GO, MV, Gen > Class Template Reference

Generates random test problems for TSQR. More...

#include <TsqrRandomizer.hpp>

List of all members.

Public Member Functions

virtual void randomMultiVector (multivector_type &A, const magnitude_type singularValues[])
 Fill A with a (pseudo)random (distributed) matrix.

Protected Member Functions

void init (const multivector_type &mv, const normalgen_ptr &pGen)

Detailed Description

template<class S, class LO, class GO, class MV, class Gen>
class TSQR::Trilinos::Randomizer< S, LO, GO, MV, Gen >

Generates random test problems for TSQR.

Randomizer knows how to fill in an instance of the given MultiVector class MV with a (pseudo)random test problem, using a generator of type Gen.

Definition at line 58 of file TsqrRandomizer.hpp.


Member Function Documentation

template<class S , class LO , class GO , class MV , class Gen >
virtual void TSQR::Trilinos::Randomizer< S, LO, GO, MV, Gen >::randomMultiVector ( multivector_type &  A,
const magnitude_type  singularValues[] 
) [inline, virtual]

Fill A with a (pseudo)random (distributed) matrix.

Fill the MultiVector A with a (pseudo)random (distributed) matrix with the given singular values. Given the same singular values and the same pseudorandom number sequence (produced by the Gen object), this function will always produce the same matrix, no matter the number of processors. It achieves this at the cost of scalability; only Proc 0 invokes the pseudorandom number generator.

Definition at line 88 of file TsqrRandomizer.hpp.

template<class S , class LO , class GO , class MV , class Gen >
void TSQR::Trilinos::Randomizer< S, LO, GO, MV, Gen >::init ( const multivector_type &  mv,
const normalgen_ptr pGen 
) [inline, protected]

Like the constructor, except you're not supposed to call the constructor of a pure virtual class.

Parameters:
mv[in] Only used to extract the underlying communication object (e.g., Epetra_Comm or Teuchos::Comm<int>).
pGen[in/out] Pointer to generator of pseudorandom normal(0,1) sequence.

Definition at line 114 of file TsqrRandomizer.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends