RemoveFeatures

API Definition

APP_ERROR RemoveFeatures(int n, const idx_t *indices) override

Function

Deletes n feature vectors with specified subscript indexes from the vector library.

Input

int n: number of feature vectors to be deleted.

const idx_t *indices: subscript index corresponding to the feature vector. The length is n.

Output

N/A

Return Value

APP_ERROR: return status. For details, see Return Code Reference.

Restrictions

  • indices: The index range of each feature is [0, ntotal). ntotal can be obtained through the GetNTotal API.
  • n: The value range is [0, capacity].