14 #ifndef __DATATYPE_H__
15 #define __DATATYPE_H__
21 #define PT_NOT_GENERIC PT_SGOBJECT
26 #ifndef DOXYGEN_SHOULD_SKIP_THIS
87 explicit TSGDataType(EContainerType ctype, EStructType stype,
88 EPrimitiveType ptype);
95 explicit TSGDataType(EContainerType ctype, EStructType stype,
96 EPrimitiveType ptype,
index_t* length);
104 explicit TSGDataType(EContainerType ctype, EStructType stype,
105 EPrimitiveType ptype,
index_t* length_y,
128 return !(*
this == a);
135 void to_string(
char* dest,
size_t n)
const;
156 static size_t sizeof_stype(EStructType stype, EPrimitiveType ptype);
175 EPrimitiveType ptype,
size_t n);
static bool string_to_ptype(EPrimitiveType *ptype, const char *str)
static size_t offset_sparseentry(EPrimitiveType ptype)
size_t sizeof_ptype() const
int64_t get_num_elements()
bool operator!=(const TSGDataType &a)
static void ptype_to_string(char *dest, EPrimitiveType ptype, size_t n)
TSGDataType(EContainerType ctype, EStructType stype, EPrimitiveType ptype)
Datatypes that shogun supports.
bool equals_without_length(TSGDataType other)
static void stype_to_string(char *dest, EStructType stype, EPrimitiveType ptype, size_t n)
size_t sizeof_stype() const
bool operator==(const TSGDataType &a)
void to_string(char *dest, size_t n) const
all of classes and functions are contained in the shogun namespace
bool equals(TSGDataType other)
static size_t sizeof_sparseentry(EPrimitiveType ptype)