neuro_toolbox
Namespaces | Functions
IO.hpp File Reference
#include "config.hpp"
Include dependency graph for IO.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 NTB
 

Functions

template<typename T >
std::vector< T > NTB::load_vector (std::string filename)
 
bool NTB::file_exists (const std::string &filename)
 
template<typename T >
std::vector< std::vector< T > > NTB::load_matrix (const std::string filename, const int row, const int col)
 
template<typename T >
std::vector< std::vector< T > > NTB::adjmat_to_adjlist (const std::vector< std::vector< T >> &A, const double threshold=1e-8, std::string in_degree="row")
 
template<typename T >
void NTB::write_matrix_to_file (const std::vector< std::vector< T >> &A, const std::string filename)
 
template<typename T >
void NTB::write_vector_to_file (const std::vector< T > &v, const std::string filename)
 
void NTB::spikes_to_file (const std::string filename, const std::vector< std::vector< double >> &spikes)