18 #ifndef AMESOS2_KLU2_FUNCTIONMAP_HPP
19 #define AMESOS2_KLU2_FUNCTIONMAP_HPP
24 #ifdef HAVE_TEUCHOS_COMPLEX
34 #include "klu2_defaults.hpp"
35 #include "klu2_analyze.hpp"
36 #include "klu2_factor.hpp"
37 #include "klu2_solve.hpp"
38 #include "klu2_tsolve.hpp"
39 #include "klu2_free_symbolic.hpp"
40 #include "klu2_free_numeric.hpp"
45 #ifdef HAVE_TEUCHOS_COMPLEX
47 struct FunctionMap<KLU2,Kokkos::complex<double>>
49 static std::complex<double> * convert_scalar(Kokkos::complex<double> * pData) {
50 return reinterpret_cast<std::complex<double> *
>(pData);
55 #endif // HAVE_TEUCHOS_COMPLEX
58 template <
typename scalar_t>
59 struct FunctionMap<KLU2,scalar_t>
61 static scalar_t * convert_scalar(scalar_t * pData) {
68 #endif // AMESOS2_KLU2_FUNCTIONMAP_HPP
Declaration of Function mapping class for Amesos2.
Provides definition of KLU2 types as well as conversions and type traits.