10 #ifndef FADLAPACKUNITTESTS_HPP
11 #define FADLAPACKUNITTESTS_HPP
23 #define COMPARE_FAD_VECTORS(X1, X2, n) \
24 ASSERT_TRUE(X1.size() == std::size_t(n)); \
25 ASSERT_TRUE(X2.size() == std::size_t(n)); \
26 for (unsigned int i=0; i<n; i++) { \
27 COMPARE_FADS(X1[i], X2[i]); \
32 template <
class FadType>
73 double A[] = { 1.1, 0.1, .01, 0.9 };
76 double B[] = { 0.1, 0.2 };
80 const double refX[] = {0.088978766430738, 0.212335692618807};
83 teuchos_lapack.
GESV(n, nrhs, &A[0], lda, &IPIV[0], &B[0], ldb, &info);
98 #endif // FADLAPACKUNITTESTS_HPP
#define TYPED_TEST_P(SuiteName, TestName)
#define COMPARE_VALUES(a, b)
A class for storing a contiguously allocated array of Fad objects. This is a general definition that ...
Sacado::Fad::Vector< unsigned int, FadType > VectorType
Sacado::ScalarType< FadType >::type ScalarType
Sacado::Random< double > real_urand
void GESV(const OrdinalType &n, const OrdinalType &nrhs, ScalarType *A, const OrdinalType &lda, OrdinalType *IPIV, ScalarType *B, const OrdinalType &ldb, OrdinalType *info) const
Sacado::Random< ScalarType > urand
#define TYPED_TEST_SUITE_P(SuiteName)
#define REGISTER_TYPED_TEST_SUITE_P(SuiteName,...)
A random number generator that generates random numbers uniformly distributed in the interval (a...