MetricKnn API
Fast Similarity Search using the Metric Space Approach
|
Datatype Constants. More...
#include "../metricknn_c.h"
Go to the source code of this file.
Functions | |
bool | mknn_datatype_isAnySignedInteger (const MknnDatatype datatype) |
Returns whether the given datatype is one of the signed integer types. More... | |
bool | mknn_datatype_isAnyUnsignedInteger (const MknnDatatype datatype) |
Returns whether the given datatype is one of the unsigned integer types. More... | |
bool | mknn_datatype_isAnyFloatingPoint (const MknnDatatype datatype) |
Returns whether the given datatype is one of the floating point types. More... | |
bool | mknn_datatype_isInt8 (const MknnDatatype datatype) |
bool | mknn_datatype_isInt16 (const MknnDatatype datatype) |
bool | mknn_datatype_isInt32 (const MknnDatatype datatype) |
bool | mknn_datatype_isInt64 (const MknnDatatype datatype) |
bool | mknn_datatype_isUInt8 (const MknnDatatype datatype) |
bool | mknn_datatype_isUInt16 (const MknnDatatype datatype) |
bool | mknn_datatype_isUInt32 (const MknnDatatype datatype) |
bool | mknn_datatype_isUInt64 (const MknnDatatype datatype) |
bool | mknn_datatype_isFloat (const MknnDatatype datatype) |
bool | mknn_datatype_isDouble (const MknnDatatype datatype) |
bool | mknn_datatype_areEqual (const MknnDatatype datatype1, const MknnDatatype datatype2) |
Returns if two datatypes are identical. More... | |
size_t | mknn_datatype_sizeof (const MknnDatatype datatype) |
Returns the size in bytes of the given datatype (a number between 1 and 8). More... | |
const char * | mknn_datatype_toString (const MknnDatatype datatype) |
bool | mknn_datatype_parseString (const char *string, MknnDatatype *out_datatype) |
Variables | |
MknnDatatype | MKNN_DATATYPE_SIGNED_INTEGER_8bits |
Integer 8 bits-length signed. More... | |
MknnDatatype | MKNN_DATATYPE_SIGNED_INTEGER_16bits |
Integer 16 bits-length signed. More... | |
MknnDatatype | MKNN_DATATYPE_SIGNED_INTEGER_32bits |
Integer 32 bits-length signed. More... | |
MknnDatatype | MKNN_DATATYPE_SIGNED_INTEGER_64bits |
Integer 64 bits-length signed. More... | |
MknnDatatype | MKNN_DATATYPE_UNSIGNED_INTEGER_8bits |
Integer 8 bits-length unsigned. More... | |
MknnDatatype | MKNN_DATATYPE_UNSIGNED_INTEGER_16bits |
Integer 16 bits-length unsigned. More... | |
MknnDatatype | MKNN_DATATYPE_UNSIGNED_INTEGER_32bits |
Integer 32 bits-length unsigned. More... | |
MknnDatatype | MKNN_DATATYPE_UNSIGNED_INTEGER_64bits |
Integer 64 bits-length unsigned. More... | |
MknnDatatype | MKNN_DATATYPE_FLOATING_POINT_32bits |
Floating point 32 bits-length. More... | |
MknnDatatype | MKNN_DATATYPE_FLOATING_POINT_64bits |
Floating point 64 bits-length. More... | |
Datatype Constants.
bool mknn_datatype_areEqual | ( | const MknnDatatype | datatype1, |
const MknnDatatype | datatype2 | ||
) |
Returns if two datatypes are identical.
datatype1 | one of the constants MKNN_DATATYPE_xxx . |
datatype2 | one of the constants MKNN_DATATYPE_xxx . |
bool mknn_datatype_isAnyFloatingPoint | ( | const MknnDatatype | datatype | ) |
Returns whether the given datatype is one of the floating point types.
datatype | one of the constants MKNN_DATATYPE_xxx . |
bool mknn_datatype_isAnySignedInteger | ( | const MknnDatatype | datatype | ) |
Returns whether the given datatype is one of the signed integer types.
datatype | one of the constants MKNN_DATATYPE_xxx . |
bool mknn_datatype_isAnyUnsignedInteger | ( | const MknnDatatype | datatype | ) |
Returns whether the given datatype is one of the unsigned integer types.
datatype | one of the constants MKNN_DATATYPE_xxx . |
bool mknn_datatype_parseString | ( | const char * | string, |
MknnDatatype * | out_datatype | ||
) |
string | the string to read and parse a datatype. The string should be a value returned by mknn_datatype_toString. |
out_datatype | the parsed value |
size_t mknn_datatype_sizeof | ( | const MknnDatatype | datatype | ) |
Returns the size in bytes of the given datatype (a number between 1 and 8).
datatype | one of the constants MKNN_DATATYPE_xxx . |
const char* mknn_datatype_toString | ( | const MknnDatatype | datatype | ) |
datatype | the constant |
MknnDatatype MKNN_DATATYPE_FLOATING_POINT_32bits |
Floating point 32 bits-length.
Corresponds to standard C type float
.
MknnDatatype MKNN_DATATYPE_FLOATING_POINT_64bits |
Floating point 64 bits-length.
Corresponds to standard C type double
.
MknnDatatype MKNN_DATATYPE_SIGNED_INTEGER_16bits |
Integer 16 bits-length signed.
Corresponds to int16_t
(see stdint.h).
MknnDatatype MKNN_DATATYPE_SIGNED_INTEGER_32bits |
Integer 32 bits-length signed.
Corresponds to int32_t
(see stdint.h).
MknnDatatype MKNN_DATATYPE_SIGNED_INTEGER_64bits |
Integer 64 bits-length signed.
Corresponds to int64_t
(see stdint.h).
MknnDatatype MKNN_DATATYPE_SIGNED_INTEGER_8bits |
Integer 8 bits-length signed.
Corresponds to int8_t
(see stdint.h).
MknnDatatype MKNN_DATATYPE_UNSIGNED_INTEGER_16bits |
Integer 16 bits-length unsigned.
Corresponds to uint16_t
(see stdint.h).
MknnDatatype MKNN_DATATYPE_UNSIGNED_INTEGER_32bits |
Integer 32 bits-length unsigned.
Corresponds to uint32_t
(see stdint.h).
MknnDatatype MKNN_DATATYPE_UNSIGNED_INTEGER_64bits |
Integer 64 bits-length unsigned.
Corresponds to uint64_t
(see stdint.h).
MknnDatatype MKNN_DATATYPE_UNSIGNED_INTEGER_8bits |
Integer 8 bits-length unsigned.
Corresponds to uint8_t
(see stdint.h).