GetFeatures
API定义  | 
virtual APP_ERROR GetFeatures(int n, float16_t *features, const idx_t *indices) = 0;  | 
|---|---|
功能描述  | 
查询“n”条指定下标索引的特征向量。  | 
输入  | 
int n:删除特征向量数目。 const idx_t *indices:待查询的下标索引,长度为n。  | 
输出  | 
float16_t *features:查询下标索引对应的特征向量,长度为n * 向量维度dim。在调用前需由用户自行申请内存,确保内存大小正确。  | 
返回值  | 
APP_ERROR:调用返回状态,具体请参见接口调用返回值参考 。  | 
约束说明  | 
  | 
父主题: IndexIL