19 #ifndef AMESOS2_SHYLUBASKER_FUNCTIONMAP_HPP
20 #define AMESOS2_SHYLUBASKER_FUNCTIONMAP_HPP
22 #ifdef HAVE_TEUCHOS_COMPLEX
44 #ifdef HAVE_TEUCHOS_INST_COMPLEX_DOUBLE
46 struct FunctionMap<ShyLUBasker,Kokkos::complex<double>>
48 static std::complex<double> * convert_scalar(Kokkos::complex<double> * pData) {
49 return reinterpret_cast<std::complex<double> *
>(pData);
52 #endif // HAVE_TEUCHOS_COMPLEX_DOUBLE
54 #ifdef HAVE_TEUCHOS_INST_COMPLEX_FLOAT
56 struct FunctionMap<ShyLUBasker,Kokkos::complex<float>>
58 static std::complex<float> * convert_scalar(Kokkos::complex<float> * pData) {
59 return reinterpret_cast<std::complex<float> *
>(pData);
62 #endif // HAVE_TEUCHOS_INST_COMPLEX_FLOAT
65 template <
typename scalar_t>
66 struct FunctionMap<ShyLUBasker,scalar_t>
68 static scalar_t * convert_scalar(scalar_t * pData) {
79 #endif // AMESOS2_SHYLUBASKER_FUNCTIONMAP_HPP
Provides definition of ShyLUBasker types as well as conversions and type traits.
Declaration of Function mapping class for Amesos2.