src/classify/intfeaturespace.cpp
void IntFeatureSpace::IndexFeatures(const INT_FEATURE_STRUCT *features, int num_features,
                                    std::vector<int> *mapped_features) const {
  mapped_features->clear();
  for (int f = 0; f < num_features; ++f) {
    mapped_features->push_back(Index(features[f]));
  }
}
// Bulk calls to Index. Maps the given array of features to a vector of
// int32_t indices in the same order as the input.
Bulk calls to Index. Maps the given array of features to a vector of
int32_t indices in the same order as the input.
Bulk calls to Index . Maps the given array of features to a vector of int32_t indices in the same order as the input .
void IntFeatureSpace::IndexFeatures(const INT_FEATURE_STRUCT *features, int num_features,
                                    std::vector<int> *mapped_features) const {
  mapped_features->clear();
  for (int f = 0; f < num_features; ++f) {
    mapped_features->push_back(Index(features[f]));
  }
}
void IntFeatureSpace :: IndexFeatures ( const INT_FEATURE_STRUCT * features , int num_features , std :: vector < int > * mapped_features ) const { mapped_features -> clear ( ) ; for ( int f = 0 ; f < num_features ; ++ f ) { mapped_features -> push_back ( Index ( features [ f ] ) ) ; } }
Bulk calls to Index.
Bulk calls to Index .