10#ifndef _IFPACK2_CONFIGDEFS_HPP_
11#define _IFPACK2_CONFIGDEFS_HPP_
13#include <Ifpack2_config.h>
14#include <Teuchos_ScalarTraits.hpp>
15#include <Tpetra_ConfigDefs.hpp>
19template <
class Scalar>
20typename Teuchos::ScalarTraits<Scalar>::magnitudeType
21IFPACK2_SGN(
const Scalar& x) {
22 typedef Teuchos::ScalarTraits<Scalar> STS;
23 typedef typename STS::magnitudeType magnitudeType;
24 static const magnitudeType one = STS::magnitude(STS::one());
25 return STS::real(x) > 0.0 ? magnitudeType(-one) : one;
31typedef Tpetra::global_size_t global_size_t;
Ifpack2 features that have been DEPRECATED and may DISAPPEAR AT ANY TIME. USE AT YOUR OWN RISK.
Ifpack2 implementation details.
Ifpack2 features that are experimental. Use at your own risk.
Preconditioners and smoothers for Tpetra sparse matrices.
Definition Ifpack2_AdditiveSchwarz_decl.hpp:40