Functions providing the ability to read your data.
More...
|
template<typename T > |
INLINE void | ai::parseFileInMatrix (const std::string filename, const char separator, std::vector< std::vector< T > > &matrix) |
|
template<typename T > |
INLINE void | ai::parseFileInVector (const std::string filename, const char separator, std::vector< T > &vector) |
|
INLINE void | ai::parseFileIntoString (const std::string filename, std::string &content) |
|
template<typename T > |
INLINE void | ai::accumulateFileInMatrix (const std::string filename, const char separator, std::vector< std::vector< T > > &matrix) |
|
template<typename T > |
INLINE void | ai::accumulateFileInVector (const std::string filename, const char separator, std::vector< T > &vector, const bool checkForNaN=false) |
|
Group of functions that reads files and writes its content into your variables
◆ accumulateFileInMatrix()
template<typename T >
INLINE void ai::accumulateFileInMatrix |
( |
const std::string |
filename, |
|
|
const char |
separator, |
|
|
std::vector< std::vector< T > > & |
matrix |
|
) |
| |
◆ accumulateFileInVector()
template<typename T >
INLINE void ai::accumulateFileInVector |
( |
const std::string |
filename, |
|
|
const char |
separator, |
|
|
std::vector< T > & |
vector, |
|
|
const bool |
checkForNaN = false |
|
) |
| |
◆ parseFileInMatrix()
template<typename T >
INLINE void ai::parseFileInMatrix |
( |
const std::string |
filename, |
|
|
const char |
separator, |
|
|
std::vector< std::vector< T > > & |
matrix |
|
) |
| |
- Template Parameters
-
- Exceptions
-
std::runtime_error | If file could not be open |
◆ parseFileIntoString()
INLINE void ai::parseFileIntoString |
( |
const std::string |
filename, |
|
|
std::string & |
content |
|
) |
| |
- Exceptions
-
std::runtime_error | If file could not be open |
◆ parseFileInVector()
template<typename T >
INLINE void ai::parseFileInVector |
( |
const std::string |
filename, |
|
|
const char |
separator, |
|
|
std::vector< T > & |
vector |
|
) |
| |
- Template Parameters
-
- Exceptions
-
std::runtime_error | If file could not be open |