52 #ifndef AMESOS2_KLU2_FUNCTIONMAP_HPP
53 #define AMESOS2_KLU2_FUNCTIONMAP_HPP
58 #ifdef HAVE_TEUCHOS_COMPLEX
68 #include "klu2_defaults.hpp"
69 #include "klu2_analyze.hpp"
70 #include "klu2_factor.hpp"
71 #include "klu2_solve.hpp"
72 #include "klu2_tsolve.hpp"
73 #include "klu2_free_symbolic.hpp"
74 #include "klu2_free_numeric.hpp"
79 #ifdef HAVE_TEUCHOS_COMPLEX
81 struct FunctionMap<KLU2,Kokkos::complex<double>>
83 static std::complex<double> * convert_scalar(Kokkos::complex<double> * pData) {
84 return reinterpret_cast<std::complex<double> *
>(pData);
89 #endif // HAVE_TEUCHOS_COMPLEX
92 template <
typename scalar_t>
93 struct FunctionMap<KLU2,scalar_t>
95 static scalar_t * convert_scalar(scalar_t * pData) {
102 #endif // AMESOS2_KLU2_FUNCTIONMAP_HPP
Declaration of Function mapping class for Amesos2.
Provides definition of KLU2 types as well as conversions and type traits.