GENIE
interface.cc
Go to the documentation of this file.
2 
3 #include "interface.h"
4 
5 using namespace std;
6 using namespace genie;
7 
8 shared_ptr<genie::table::inv_table> genie::table::BuildTable(const TableData& table_data)
9 {
11  config.data_points = &const_cast<TableData&>(table_data);
12  genie::table::inv_table* table_ptr = nullptr;
13  genie::original::preprocess_for_knn_csv(config, table_ptr);
14  // Note: force array deleter to be used
15  shared_ptr<genie::table::inv_table> table(table_ptr, [](genie::table::inv_table* p) { delete[] p; });
16 
17  return table;
18 }
bool preprocess_for_knn_csv(GPUGenie_Config &config, genie::table::inv_table *&_table)
Definition: interface.cc:150
This is the top-level namespace of the project.
The declaration for class inv_table.
Definition: inv_table.h:41
std::vector< std::vector< int > > TableData
Raw table data format used for building the table.
Definition: types.h:12
Definitions about configurations that can be set by users.
Definition: interface.h:71
std::shared_ptr< genie::table::inv_table > BuildTable(const TableData &table_data)
Definition: interface.cc:8
std::vector< std::vector< int > > * data_points
Definition: interface.h:81