43 #ifndef _IFPACK2_CONFIGDEFS_HPP_
44 #define _IFPACK2_CONFIGDEFS_HPP_
46 #include <Ifpack2_config.h>
47 #include <Teuchos_ScalarTraits.hpp>
51 template<
class Scalar>
52 typename Teuchos::ScalarTraits<Scalar>::magnitudeType
53 IFPACK2_SGN(
const Scalar& x)
55 static const typename Teuchos::ScalarTraits<Scalar>::magnitudeType one = Teuchos::ScalarTraits<Scalar>::magnitude(Teuchos::ScalarTraits<Scalar>::one());
56 return Teuchos::ScalarTraits<Scalar>::real(x) > 0.0 ? -one : one;
59 #include <Tpetra_ConfigDefs.hpp>
61 typedef Tpetra::global_size_t global_size_t;