44 #ifndef TPETRA_DETAILS_ORDINALTRAITS_HPP 45 #define TPETRA_DETAILS_ORDINALTRAITS_HPP 51 #include "Tpetra_ConfigDefs.hpp" 70 static KOKKOS_INLINE_FUNCTION T invalid () {
return -1; }
80 static KOKKOS_INLINE_FUNCTION
short int invalid () {
return -1; }
84 struct OrdinalTraits<unsigned short int> {
85 static KOKKOS_INLINE_FUNCTION
unsigned short int invalid () {
return USHRT_MAX; }
89 struct OrdinalTraits<int> {
90 static KOKKOS_INLINE_FUNCTION
int invalid () {
return -1; }
94 struct OrdinalTraits<unsigned int> {
95 static KOKKOS_INLINE_FUNCTION
unsigned int invalid () {
return UINT_MAX; }
99 struct OrdinalTraits<long> {
100 static KOKKOS_INLINE_FUNCTION
long invalid () {
return -1; }
104 struct OrdinalTraits<unsigned long> {
105 static KOKKOS_INLINE_FUNCTION
unsigned long invalid () {
return ULONG_MAX; }
109 struct OrdinalTraits<long long> {
110 static KOKKOS_INLINE_FUNCTION
long long invalid () {
return -1; }
114 struct OrdinalTraits<unsigned long long> {
115 static KOKKOS_INLINE_FUNCTION
unsigned long long invalid () {
return ULLONG_MAX; }
121 #endif // TPETRA_DETAILS_ORDINALTRAITS_HPP Namespace Tpetra contains the class and methods constituting the Tpetra library.
Implementation details of Tpetra.
Traits class for "invalid" (flag) values of integer types that Tpetra uses as local ordinals or globa...