42 #ifndef TPETRA_DETAILS_BLAS_HPP 43 #define TPETRA_DETAILS_BLAS_HPP 53 #include "TpetraCore_config.h" 54 #include "Kokkos_Core.hpp" 55 #include "Kokkos_Complex.hpp" 56 #include <type_traits> 67 template<
class ScalarType>
69 static constexpr
bool value =
70 std::is_same<ScalarType, float>::value ||
71 std::is_same<ScalarType, double>::value ||
72 std::is_same<ScalarType, ::Kokkos::complex<float> >::value ||
73 std::is_same<ScalarType, ::Kokkos::complex<double> >::value;
81 template<
class LayoutType>
83 static constexpr
bool value =
84 std::is_same<LayoutType, ::Kokkos::LayoutLeft>::value;
87 template<
class ViewType,
88 class IndexType =
int>
90 getStride2DView (
const ViewType& A)
94 return (A.dimension_1 () > 1) ? stride[1] : A.dimension_0 ();
101 #endif // TPETRA_DETAILS_BLAS_HPP Namespace Tpetra contains the class and methods constituting the Tpetra library.
Implementation details of Tpetra.
Do BLAS libraries (all that are compliant with the BLAS Standard) support the given "scalar" (matrix ...
Do BLAS libraries (all that are compliant with the BLAS Standard) support the given Kokkos array layo...