add_with_ids
API definition |
void add_with_ids(idx_t n, const float *x, const idx_t *ids) override; |
|---|---|
Function |
Creates an AscendIndex database and adds new feature vectors into the database. Each feature vector in the database has a corresponding ID. |
Input |
idx_t n: number of feature vectors to be added to the database. const float *x: feature vectors to be added to the database. const idx_t *ids: IDs of the feature vectors to be added to the database. |
Output |
N/A |
Return value |
N/A |
Restrictions |
|
API definition |
void add_with_ids(idx_t n, const uint16_t *x, const idx_t *ids); |
||
|---|---|---|---|
Function |
Creates an AscendIndex database and adds new feature vectors into the database. Each feature vector in the database has a corresponding ID. |
||
Input |
idx_t n: number of feature vectors to be added to the database. const uint16_t *x: feature vectors to be added to the database. const idx_t *ids: IDs of the feature vectors to be added to the database. |
||
Output |
N/A |
||
Return value |
N/A |
||
Restrictions |
|