Function treeweave_sorted

Function Documentation

void treeweave_sorted(treeweave_t f, const double *x, double *res, size_t n)

Evaluate a sorted 1D batch (input_dim must be 1).

Parameters:
  • f – Handle from treeweave_fit() (NULL-safe: no-op).

  • x – n inputs; the caller promises x[i] <= x[i+1].

  • res – n * output_dim packed results.

  • n – Number of points.