Vowpal Wabbit
example_predict.cc
Go to the documentation of this file.
1 /*
2 Copyright (c) by respective owners including Yahoo!, Microsoft, and
3 individual contributors. All rights reserved. Released under a BSD
4 license as described in the file LICENSE.
5 */
6 
7 #include "example_predict.h"
8 
10 {
11  indices = v_init<namespace_index>();
12  ft_offset = 0;
13  // feature_space is initialized through constructors
14 }
15 
17 {
18  indices.delete_v();
19  for (size_t i = 0; i < UINT8_MAX; i++) feature_space[i].delete_v();
20 }
21 
23 {
24  for (auto ns : indices) feature_space[ns].clear();
25  indices.clear();
26 }
v_array< namespace_index > indices
std::array< features, NUM_NAMESPACES > feature_space
void delete_v()
Definition: v_array.h:98