Reader_utils_interface.h
1 /* This file is part of the Gudhi Library. The Gudhi library
2  * (Geometric Understanding in Higher Dimensions) is a generic C++
3  * library for computational topology.
4  *
5  * Author(s): Vincent Rouvreau
6  *
7  * Copyright (C) 2017 Inria
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
23 #ifndef INCLUDE_READER_UTILS_INTERFACE_H_
24 #define INCLUDE_READER_UTILS_INTERFACE_H_
25 
26 #include <gudhi/reader_utils.h>
27 
28 #include <iostream>
29 #include <vector>
30 #include <string>
31 #include <map>
32 #include <utility> // for pair<>
33 
34 namespace Gudhi {
35 
36 // Redefine functions with a different name in order the original name can be used in the Python version.
37 std::vector<std::vector<double>> read_matrix_from_csv_file(const std::string& filename,
38  const char separator = ';') {
39  return read_lower_triangular_matrix_from_csv_file<double>(filename, separator);
40 }
41 
42 inline std::map<int, std::vector<std::pair<double, double>>>
43  read_pers_intervals_grouped_by_dimension(std::string const& filename) {
45 }
46 
47 inline std::vector<std::pair<double, double>>
48  read_pers_intervals_in_dimension(std::string const& filename, int only_this_dim = -1) {
49  return read_persistence_intervals_in_dimension(filename, only_this_dim);
50 }
51 
52 
53 } // namespace Gudhi
54 
55 
56 #endif // INCLUDE_READER_UTILS_INTERFACE_H_
std::map< int, std::vector< std::pair< double, double > > > read_persistence_intervals_grouped_by_dimension(std::string const &filename)
Definition: reader_utils.h:337
Definition: SimplicialComplexForAlpha.h:26
std::vector< std::pair< double, double > > read_persistence_intervals_in_dimension(std::string const &filename, int only_this_dim=-1)
Definition: reader_utils.h:357
This file includes common file reader for GUDHI.
GUDHI  Version 2.3.0  - C++ library for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding.  - Copyright : GPL v3 Generated on Fri Oct 5 2018 15:05:03 for GUDHI by Doxygen 1.8.13