43 #ifndef _IFPACK2_CONFIGDEFS_HPP_ 44 #define _IFPACK2_CONFIGDEFS_HPP_ 46 #include <Ifpack2_config.h> 47 #include <Teuchos_ScalarTraits.hpp> 48 #include <Tpetra_ConfigDefs.hpp> 50 #if defined(HAVE_TPETRA_DEBUG) && ! defined(HAVE_IFPACK2_DEBUG) 51 # define HAVE_IFPACK2_DEBUG 1 56 template<
class Scalar>
57 typename Teuchos::ScalarTraits<Scalar>::magnitudeType
58 IFPACK2_SGN(
const Scalar& x)
60 typedef Teuchos::ScalarTraits<Scalar> STS;
61 typedef typename STS::magnitudeType magnitudeType;
62 static const magnitudeType one = STS::magnitude(STS::one());
63 return STS::real(x) > 0.0 ? magnitudeType(-one) : one;
69 typedef Tpetra::global_size_t global_size_t;
Ifpack2 features that are experimental. Use at your own risk.
Ifpack2 implementation details.
Preconditioners and smoothers for Tpetra sparse matrices.
Definition: Ifpack2_AdditiveSchwarz_decl.hpp:72