VectorEncoding

The numeric datatype of the vector values.

Entries

Link copied to clipboard

Encodes vector using 8 bits of precision per sample. Values provided with higher precision (eg: queries provided as float) must be in the range -128, 127. NOTE: this can enable significant storage savings and faster searches, at the cost of some possible loss of precision.

Link copied to clipboard

Encodes vector using 32 bits of precision per sample in IEEE floating point format.

Properties

Link copied to clipboard

The number of bytes required to encode a scalar in this format. A vector will nominally require dimension * byteSize bytes of storage.

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.