Reader_utils_interface.h
1/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
2 * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
3 * Author(s): Vincent Rouvreau
4 *
5 * Copyright (C) 2017 Inria
6 *
7 * Modification(s):
8 * - YYYY/MM Author: Description of the modification
9 */
10
11#ifndef INCLUDE_READER_UTILS_INTERFACE_H_
12#define INCLUDE_READER_UTILS_INTERFACE_H_
13
14#include <gudhi/reader_utils.h>
15
16#include <iostream>
17#include <vector>
18#include <string>
19#include <map>
20#include <utility> // for pair<>
21
22namespace Gudhi {
23
24// Redefine functions with a different name in order the original name can be used in the Python version.
25std::vector<std::vector<double>> read_matrix_from_csv_file(const std::string& filename,
26 const char separator = ';') {
27 return read_lower_triangular_matrix_from_csv_file<double>(filename, separator);
28}
29
30inline std::map<int, std::vector<std::pair<double, double>>>
31 read_pers_intervals_grouped_by_dimension(std::string const& filename) {
33}
34
35inline std::vector<std::pair<double, double>>
36 read_pers_intervals_in_dimension(std::string const& filename, int only_this_dim = -1) {
37 return read_persistence_intervals_in_dimension(filename, only_this_dim);
38}
39
40
41} // namespace Gudhi
42
43
44#endif // INCLUDE_READER_UTILS_INTERFACE_H_
This file includes common file reader for GUDHI.
std::vector< std::pair< double, double > > read_persistence_intervals_in_dimension(std::string const &filename, int only_this_dim=-1)
Definition: reader_utils.h:359
std::map< int, std::vector< std::pair< double, double > > > read_persistence_intervals_grouped_by_dimension(std::string const &filename)
Definition: reader_utils.h:339
GUDHIdev  Version 3.5.0  - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding.  - Copyright : MIT Generated on Tue Aug 16 2022 14:01:50 for GUDHIdev by Doxygen 1.9.4