43 #include "Teuchos_Assert.hpp" 58 float returnFloatZero() {
return 0.0; }
60 double returnDoubleZero() {
return 0.0; }
65 void Teuchos::throwScalarTraitsNanInfError(
const std::string &errMsg )
67 #ifdef TEUCHOS_SCALAR_TRAITS_THROW_NAN_INF_ERR 72 #ifdef HAVE_TEUCHOS_GNU_MP 73 gmp_randclass Teuchos::gmp_rng ( gmp_randinit_default );
76 #ifdef HAVE_TEUCHOS_QD 77 bool Teuchos::operator&&(
const dd_real &a,
const dd_real &b) {
78 return !a.is_zero() && !b.is_zero();
80 bool Teuchos::operator&&(
const qd_real &a,
const qd_real &b) {
81 return !a.is_zero() && !b.is_zero();
87 const float Teuchos::flt_nan = +returnFloatZero()/returnFloatZero();
88 const double Teuchos::dbl_nan = +returnDoubleZero()/returnDoubleZero();
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Macro for throwing an exception with breakpointing to ease debugging.
Defines basic traits for the scalar field type.