add
API Definition |
void add(Index::idx_t n, const float *x) override; |
|---|---|
Function |
Creates a base library for AscendIndex and adds new feature vectors into the library. When this API is used to add features, the value range of default IDs of the feature vectors to be added is [0, ntotal). |
Input |
Index::idx_t n: number of feature vectors to be added to the base library. const float *x: feature vectors to be added to the base library. |
Output |
N/A |
Return Value |
N/A |
Restrictions |
The length of the x must be dim x n. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown. The value of n cannot exceed 1e9. |
Parent topic: AscendIndex