CLUEstering
High-performance density-based weighted clustering library developed at CERN
Loading...
Searching...
No Matches
read_csv.hpp File Reference

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

#include "CLUEstering/data_structures/PointsHost.hpp"
#include "CLUEstering/detail/concepts.hpp"
#include <string>
#include "CLUEstering/utils/detail/read_csv.hpp"

Go to the source code of this file.

Functions

template<size_t NDim, concepts::queue TQueue>
clue::PointsHost< NDim > clue::read_csv (TQueue &queue, const std::string &file_path)
 Read points from a CSV file into a PointsHost object.
 
template<size_t NDim, concepts::queue TQueue>
clue::PointsHost< NDim > clue::read_output (TQueue &queue, const std::string &file_path)
 Read output points from a CSV file into a PointsHost object.
 

Detailed Description

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

Function Documentation

◆ read_csv()

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

Read points from a CSV file into a PointsHost object.

Template Parameters
NDimThe number of dimensions of the points
TQueueThe type of the queue to use for reading the file
Parameters
queueThe queue to use for reading the file
file_pathThe path to the CSV file to read
Returns
A PointsHost object containing the points read from the file

◆ read_output()

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

Read output points from a CSV file into a PointsHost object.

Template Parameters
NDimThe number of dimensions of the points
TQueueThe type of the queue to use for reading the file
Parameters
queueThe queue to use for reading the file
file_pathThe path to the CSV file to read
Returns
A PointsHost object containing the output points read from the file