Go to the documentation of this file.
23 #include <Kokkos_Core.hpp>
38 struct Range :
public Kokkos::pair<T, T>
40 using Pair = Kokkos::pair<T, T>;
127 return Pair(this->first, this->second);
135 os <<
"[" << rng.
start() <<
" " << rng.
end() <<
")";
149 #endif //__KokkosTypes_hpp__
TypeInfoTemplateNV11("Range", T) INLINE_FUNCTION_HD Range()=default
Default.
INLINE_FUNCTION_HD ~Range()=default
Destructor.
INLINE_FUNCTION_HD T & end()
End.
INLINE_FUNCTION_HD T & start()
Start.
INLINE_FUNCTION_HD Range(const T &s, const T &e)
From componeents.
INLINE_FUNCTION_HD Range(const T &e)
From end, set start to 0.
INLINE_FUNCTION_HD T numElements()
#define INLINE_FUNCTION_H
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
Range for elements in an vector [start,end)
INLINE_FUNCTION_HD Range & operator=(const Range &)=default
Copy assignment.
INLINE_FUNCTION_HD Range(const Range::Pair &src)
From pair.
INLINE_FUNCTION_HD auto getPair() const
const INLINE_FUNCTION_HD T & start() const
const INLINE_FUNCTION_HD T & end() const
#define INLINE_FUNCTION_HD
Kokkos::pair< uint32, uint32 > Pair
Interface class for any output stream.