18 #ifndef __DATA_MANAGEMENT_DATA_INTERNAL_CONVERSION_H__
19 #define __DATA_MANAGEMENT_DATA_INTERNAL_CONVERSION_H__
21 #include "data_management/features/defines.h"
25 namespace data_management
31 enum ConversionDataType
36 DAAL_OTHER = 0xfffffff
43 inline ConversionDataType getConversionDataType() {
return DAAL_OTHER; }
45 inline ConversionDataType getConversionDataType<int>() {
return DAAL_INT32; }
47 inline ConversionDataType getConversionDataType<double>() {
return DAAL_DOUBLE; }
49 inline ConversionDataType getConversionDataType<float>() {
return DAAL_SINGLE; }
51 typedef void (*vectorConvertFuncType)(
size_t n,
const void * src,
void * dst);
52 typedef void (*vectorStrideConvertFuncType)(
size_t n,
const void * src,
size_t srcByteStride,
void * dst,
size_t dstByteStride);
54 typedef bool (*vectorCopy2vFuncType)(
const size_t nrows,
const size_t ncols,
void * dst,
void const * ptrMin, DAAL_INT64 * arrOffsets);
57 DAAL_EXPORT vectorCopy2vFuncType getVector();
59 DAAL_EXPORT vectorCopy2vFuncType getVector<int>();
61 DAAL_EXPORT vectorCopy2vFuncType getVector<float>();
63 DAAL_EXPORT vectorCopy2vFuncType getVector<double>();
65 DAAL_EXPORT vectorConvertFuncType getVectorUpCast(
int,
int);
66 DAAL_EXPORT vectorConvertFuncType getVectorDownCast(
int,
int);
68 DAAL_EXPORT vectorStrideConvertFuncType getVectorStrideUpCast(
int,
int);
69 DAAL_EXPORT vectorStrideConvertFuncType getVectorStrideDownCast(
int,
int);
71 #define DAAL_REGISTER_WITH_HOMOGEN_NT_TYPES(FUNC) \
81 FUNC(unsigned short) \
85 template<
typename T> DAAL_EXPORT
void vectorAssignValueToArray(T*
const ptr,
const size_t n,
const T value);
daal::algorithms::math::abs::value
Definition: abs_types.h:88