Speclib  0.1.2
The library for writing better CUDA libraries
sp::IndPair< T, I > Struct Template Reference

An ordered pair (index, value), primarily designed for reductions such as sp::ArgMinLeftmost. More...

#include <Types.hpp>

Public Types

typedef I index_type
 
typedef T value_type
 

Public Member Functions

constexpr IndPair (I index)
 
constexpr IndPair (I index, T value)
 

Public Attributes

index
 
value
 

Static Public Attributes

constexpr static int Size = -1
 

Detailed Description

template<typename T, typename I = int>
struct sp::IndPair< T, I >

An ordered pair (index, value), primarily designed for reductions such as sp::ArgMinLeftmost.