File reading

Provides functions to read points from a CSV file into a PointsHost object.

Authors

Simone Balducci, Felice Pantaleo, Marco Rovere, Wahid Redjeb, Aurora Perego, Francesco Giacomini

namespace clue

Functions

template<std::size_t NDim, concepts::queue TQueue>
inline clue::PointsHost<NDim> read_csv(TQueue &queue, const std::string &file_path)

Read points from a CSV file into a PointsHost object.

Template Parameters:
std::size_t NDim

The number of dimensions of the points

concepts::queue TQueue

The type of the queue to use for reading the file

Parameters:
TQueue &queue

The queue to use for reading the file

const std::string &file_path

The path to the CSV file to read

Returns:

A PointsHost object containing the points read from the file