|
Anasazi Version of the Day
|
Template version of DistTsqr performance test. More...
#include <Tsqr_ParTest.hpp>
Public Member Functions | |
| DistTsqrBenchmarker (const Teuchos::RCP< MessengerBase< Scalar > > &scalarComm, const Teuchos::RCP< MessengerBase< double > > &doubleComm, const std::vector< int > &seed, const std::string &scalarTypeName, std::ostream &out, std::ostream &err, const bool testFactorExplicit, const bool testFactorImplicit, const bool humanReadable, const bool debug) | |
| Constructor, with custom seed value. | |
| DistTsqrBenchmarker (const Teuchos::RCP< MessengerBase< Scalar > > &scalarComm, const Teuchos::RCP< MessengerBase< double > > &doubleComm, const std::string &scalarTypeName, std::ostream &out, std::ostream &err, const bool testFactorExplicit, const bool testFactorImplicit, const bool humanReadable, const bool debug) | |
| Constructor, with default seed value. | |
| void | getSeed (std::vector< int > &seed) const |
| Get seed vector for pseudorandom number generator. | |
| void | benchmark (const int numTrials, const Ordinal numCols) |
| Run the DistTsqr benchmark. | |
Template version of DistTsqr performance test.
Definition at line 392 of file Tsqr_ParTest.hpp.
| TSQR::Test::DistTsqrBenchmarker< Ordinal, Scalar, TimerType >::DistTsqrBenchmarker | ( | const Teuchos::RCP< MessengerBase< Scalar > > & | scalarComm, |
| const Teuchos::RCP< MessengerBase< double > > & | doubleComm, | ||
| const std::vector< int > & | seed, | ||
| const std::string & | scalarTypeName, | ||
| std::ostream & | out, | ||
| std::ostream & | err, | ||
| const bool | testFactorExplicit, | ||
| const bool | testFactorImplicit, | ||
| const bool | humanReadable, | ||
| const bool | debug | ||
| ) | [inline] |
Constructor, with custom seed value.
| scalarComm | [in/out] Communicator object over which to test. |
| doubleComm | [in/out] Communicator object for doubles, used for finding the min and max of timing results over all the MPI processes. |
| seed | [in] 4-element vector; the random seed input of TSQR::Random::NormalGenerator (which see, since there are restrictions on the set of valid seeds) |
| scalarTypeName | [in] Human-readable name of the Scalar template type parameter |
| out | [out] Output stream to which to write results |
| err | [out] Output stream to which to write any debugging outputs (if applicable) or errors |
| testFactorExplicit | [in] Whether to test DistTsqr::factorExplicit() |
| testFactorImplicit | [in] Whether to test DistTsqr::factor() and DistTsqr::explicit_Q() |
| humanReadable | [in] Whether printed results should be easy for humans to read (vs. easy for parsers to parse) |
| debug | [in] Whether to write verbose debug output to err |
Definition at line 432 of file Tsqr_ParTest.hpp.
| TSQR::Test::DistTsqrBenchmarker< Ordinal, Scalar, TimerType >::DistTsqrBenchmarker | ( | const Teuchos::RCP< MessengerBase< Scalar > > & | scalarComm, |
| const Teuchos::RCP< MessengerBase< double > > & | doubleComm, | ||
| const std::string & | scalarTypeName, | ||
| std::ostream & | out, | ||
| std::ostream & | err, | ||
| const bool | testFactorExplicit, | ||
| const bool | testFactorImplicit, | ||
| const bool | humanReadable, | ||
| const bool | debug | ||
| ) | [inline] |
Constructor, with default seed value.
This constructor sets a default seed (for the pseudorandom number generator), which is the same seed (0,0,0,1) each time.
| scalarComm | [in/out] Communicator object over which to test. |
| doubleComm | [in/out] Communicator object for doubles, used for finding the min and max of timing results over all the MPI processes. |
| scalarTypeName | [in] Human-readable name of the Scalar template type parameter |
| out | [out] Output stream to which to write results |
| err | [out] Output stream to which to write any debugging outputs (if applicable) or errors |
| testFactorExplicit | [in] Whether to test DistTsqr::factorExplicit() |
| testFactorImplicit | [in] Whether to test DistTsqr::factor() and DistTsqr::explicit_Q() |
| humanReadable | [in] Whether printed results should be easy for humans to read (vs. easy for parsers to parse) |
| debug | [in] Whether to write verbose debug output to err |
Definition at line 478 of file Tsqr_ParTest.hpp.
| void TSQR::Test::DistTsqrBenchmarker< Ordinal, Scalar, TimerType >::getSeed | ( | std::vector< int > & | seed | ) | const [inline] |
Get seed vector for pseudorandom number generator.
Fill seed (changing size of vector as necessary) with the seed vector used by the pseudorandom number generator. You can use this to resume the pseudorandom number stream from where you last were.
Definition at line 505 of file Tsqr_ParTest.hpp.
| void TSQR::Test::DistTsqrBenchmarker< Ordinal, Scalar, TimerType >::benchmark | ( | const int | numTrials, |
| const Ordinal | numCols | ||
| ) | [inline] |
Run the DistTsqr benchmark.
| numTrials | [in] Number of times to repeat the computation in a single timing run |
| numCols | [in] Number of columns in the matrix to test. Number of rows := (# MPI processors) * ncols |
Definition at line 517 of file Tsqr_ParTest.hpp.
1.7.4