applyChain

API Definition

const float *applyChain(idx_t n, const float *x) const

Function

Performs linear transformation on feature vector data.

Input

Index::idx_t n: number of feature vectors in the training dataset.

const float *x: feature vector data.

Output

N/A

Return Value

Feature vector data after linear transformation.

Restrictions

  • The value of n cannot be greater than 1e9.
  • The x must be a non-null pointer with a length of dim x n. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown.