apply_noalloc

API Definition

void apply_noalloc(idx_t n, const float *x, float *xt) const override

Function

Performs linear transformation on feature vector data.

Input

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

const float *x: feature vector data.

float *xt: result after linear transformation.

Output

N/A

Return Value

N/A

Restrictions

Do not use this protected member function. Program running exceptions may occur if the protected API is called by a derived subclass.

  • n ∈ (0, 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.
  • The xt 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.