41 #ifndef SVMHDF5TYPE_HH 42 #define SVMHDF5TYPE_HH 84 err <<
"BlitzH5Type::NO_TYPE: Data type not supported.";
86 return H5::DataType();
92 err <<
"BlitzH5Type::NO_TYPE: Data type not supported.";
94 return H5::DataType();
99 err <<
"BlitzH5Type::NO_TYPE: Data type not supported.";
101 return H5::DataType();
112 return H5::PredType::NATIVE_UCHAR;
116 return H5Tcopy(H5T_NATIVE_UCHAR);
131 return H5::PredType::NATIVE_CHAR;
135 return H5Tcopy(H5T_NATIVE_CHAR);
149 return H5::PredType::NATIVE_CHAR;
153 return H5Tcopy(H5T_NATIVE_CHAR);
168 return H5::PredType::NATIVE_UCHAR;
172 return H5Tcopy(H5T_NATIVE_UCHAR);
187 return H5::PredType::NATIVE_SHORT;
191 return H5Tcopy(H5T_NATIVE_SHORT);
206 return H5::PredType::NATIVE_USHORT;
210 return H5Tcopy(H5T_NATIVE_USHORT);
225 return H5::PredType::NATIVE_INT;
229 return H5Tcopy(H5T_NATIVE_INT);
244 return H5::PredType::NATIVE_UINT;
248 return H5Tcopy(H5T_NATIVE_UINT);
263 return H5::PredType::NATIVE_LONG;
267 return H5Tcopy(H5T_NATIVE_LONG);
282 return H5::PredType::NATIVE_ULONG;
286 return H5Tcopy(H5T_NATIVE_ULONG);
301 return H5::PredType::NATIVE_LLONG;
305 return H5Tcopy(H5T_NATIVE_LLONG);
320 return H5::PredType::NATIVE_ULLONG;
324 return H5Tcopy(H5T_NATIVE_ULLONG);
339 return H5::PredType::NATIVE_FLOAT;
343 return H5Tcopy(H5T_NATIVE_FLOAT);
358 return H5::PredType::NATIVE_DOUBLE;
362 return H5Tcopy(H5T_NATIVE_DOUBLE);
478 H5::StrType datatype(H5::PredType::C_S1);
479 datatype.setStrpad(H5T_STR_NULLTERM);
485 hid_t datatype = H5Tcopy(H5T_C_S1);
488 H5Tset_strpad(datatype, H5T_STR_NULLTERM);
528 err <<
"std::vector<std::string> not supported yet.";
534 err <<
"std::vector<std::string> not supported yet.";
540 err <<
"std::vector<std::string> not supported yet.";
549 template<
typename WantedType,
typename DataFileType >
554 return sizeof(WantedType) >=
sizeof(DataFileType);
566 ((static_cast<double>(std::numeric_limits<DataFileType>::min()) < 0 &&
567 static_cast<double>(std::numeric_limits<WantedType>::min()) < 0) ||
568 (static_cast<double>(std::numeric_limits<DataFileType>::min()) >= 0 &&
569 static_cast<double>(std::numeric_limits<WantedType>::min()) >= 0));
573 WantedType maxWanted = std::numeric_limits<WantedType>::max();
574 DataFileType maxDataFile = std::numeric_limits<DataFileType>::max();
575 if( maxWanted < maxDataFile)
577 return std::numeric_limits<WantedType>::max();
579 return WantedType(1);
583 return std::numeric_limits<WantedType>::min();
588 return std::numeric_limits<WantedType>::max();
596 template<
typename DataType >
617 return std::numeric_limits<DataType>::min();
622 return std::numeric_limits<DataType>::max();
static hid_t h5DataTypeId()
static hid_t h5DataTypeId()
static H5::DataType h5DataType()
static const TypeIdentifier dataType
static H5::DataType h5DataType()
static bool isVectorial()
static hid_t h5DataTypeId()
static bool isVectorial()
static H5::DataType h5DataType()
static DataType wantedTypeMin()
static bool isVectorial()
static bool isVectorial()
static WantedType scaleFactor()
static H5::DataType h5DataType()
static WantedType wantedTypeMax()
static bool isVectorial()
static hid_t h5DataTypeId()
static hid_t h5DataTypeId()
static DataType wantedTypeMax()
static H5::DataType h5DataType()
static bool isVectorial()
static hid_t h5DataTypeId()
static hid_t h5DataTypeId()
static bool isVectorial()
static bool isVectorial()
static H5::DataType h5DataType()
static WantedType wantedTypeMin()
The SVMError class is the parent class for all errors that are thrown by the LIBSVMTL.
static H5::DataType h5DataType()
static H5::DataType h5DataType()
static bool isVectorial()
static bool isVectorial()
static H5::DataType h5DataType()
static hid_t h5DataTypeId()
static H5::DataType h5DataType()
static H5::DataType h5DataType()
static hid_t h5DataTypeId()
static H5::DataType h5DataType()
static bool isVectorial()
static H5::DataType h5DataType()
static hid_t h5DataTypeId()
static hid_t h5DataTypeId()
static bool isVectorial()
static bool isVectorial()
static bool isVectorial()
static hid_t h5DataTypeId()
static bool isVectorial()
static hid_t h5DataTypeId()
static hid_t h5DataTypeId()
static H5::DataType h5DataType()
static bool isVectorial()
static bool isVectorial()
static hid_t h5DataTypeId()
static H5::DataType h5DataType()
static H5::DataType h5DataType()
static H5::DataType h5DataType()
TypeIdentifier
Type identifiers.
static DataType scaleFactor()
static H5::DataType h5DataType()
static H5::DataType h5DataType()
static hid_t h5DataTypeId()
static bool isVectorial()
static hid_t h5DataTypeId()
static hid_t h5DataTypeId()
static hid_t h5DataTypeId()
static bool isVectorial()