hops
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Functions
_
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Variables
Typedefs
b
d
e
f
m
o
p
r
s
u
v
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
~
Variables
_
a
b
c
d
e
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
b
c
e
f
h
i
m
r
s
t
u
v
Enumerations
Enumerator
Related Functions
:
a
c
d
f
h
n
o
r
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
Functions
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
w
Variables
Typedefs
c
d
f
n
p
Enumerations
Enumerator
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
include
hops
FileReader
CsvReader.hpp
Go to the documentation of this file.
1
#ifndef HOPS_CSVREADER_HPP
2
#define HOPS_CSVREADER_HPP
3
4
#include <fstream>
5
#include <string>
6
#include <vector>
7
8
namespace
hops
{
9
class
CsvReader
{
10
public
:
11
CsvReader
() =
delete
;
12
13
template
<
typename
VectorType>
14
static
VectorType
readVector
(
const
std::string
&file);
15
16
template
<
typename
MatrixType>
17
static
MatrixType
readMatrix
(
const
std::string
&file,
bool
hasColumnAndRowNames =
false
);
18
};
19
}
20
21
#endif //HOPS_CSVREADER_HPP
hops::CsvReader::readMatrix
static MatrixType readMatrix(const std::string &file, bool hasColumnAndRowNames=false)
Definition:
CsvReader.cpp:45
hops::MatrixType
Eigen::MatrixXd MatrixType
Definition:
MatrixType.hpp:7
hops::CsvReader::CsvReader
CsvReader()=delete
hops::CsvReader::readVector
static VectorType readVector(const std::string &file)
Definition:
CsvReader.cpp:6
hops::CsvReader
Definition:
CsvReader.hpp:9
hops
Definition:
CsvReader.hpp:8
string
NAME string(REPLACE ".cpp" "_bin" example_name ${example_filename}) if($
Definition:
hops/Third-party/HighFive/src/examples/CMakeLists.txt:6
hops::VectorType
Eigen::VectorXd VectorType
Definition:
VectorType.hpp:7
Generated by
1.8.17