Template Struct data_traits

Struct Documentation

template<typename T>
struct data_traits

Public Types

typedef T value_type
typedef value_type &reference
typedef const value_type &const_reference
typedef T element_type
typedef T *element_pointer
typedef const T *const_element_pointer

Public Static Functions

static inline DataType data_type(const_reference value)
static inline NDSize shape(const_reference value)
static inline size_t num_elements(const_reference value)
static inline const_element_pointer get_data(const_reference value)
static inline element_pointer get_data(reference value)
static inline void resize(reference value, const NDSize &dims)