11 #ifndef __DATATYPE_H__
12 #define __DATATYPE_H__
18 #define PT_NOT_GENERIC PT_SGOBJECT
19 #define PT_LONGEST floatmax_t
91 void random(T min_value, T max_value)
107 for (int32_t i=0; i<len; i++)
117 for (int32_t i=0; i<len; i++)
125 for (int32_t i=0; i<len; i++)
141 for (int32_t i = 0; i < n; i++)
239 for (int32_t i=0; i<
vlen; i++)
529 index_t index,
bool free_v=
false) :
590 index_t num_vec,
bool free_m=
false) :
648 #ifndef DOXYGEN_SHOULD_SKIP_THIS
705 explicit TSGDataType(EContainerType ctype, EStructType stype,
706 EPrimitiveType ptype);
713 explicit TSGDataType(EContainerType ctype, EStructType stype,
714 EPrimitiveType ptype,
index_t* length);
722 explicit TSGDataType(EContainerType ctype, EStructType stype,
723 EPrimitiveType ptype,
index_t* length_y,
733 return !(*
this == a);
740 void to_string(
char* dest,
size_t n)
const;
764 EPrimitiveType ptype,
size_t n);