File containing definitions of functions for reading/writing sparse matrices from/to binary files. More...
#include "files_sparse_bin.h"
Functions | |
void | write_matrix_to_bin (const char *filename, const std::vector< int > &I, const std::vector< int > &J, const std::vector< real > &val, const int &N) |
void | read_matrix_from_bin_Elias_format (const char *filename, std::vector< int > &I, std::vector< int > &J, std::vector< real > &val) |
Read data from the binary file. | |
void | read_matrix_from_bin (const char *filename, std::vector< int > &I, std::vector< int > &J, std::vector< real > &val, int &N, int &M) |
Read data from the binary file. |
File containing definitions of functions for reading/writing sparse matrices from/to binary files.
void read_matrix_from_bin | ( | const char * | filename, | |
std::vector< int > & | I, | |||
std::vector< int > & | J, | |||
std::vector< real > & | val, | |||
int & | N, | |||
int & | M | |||
) |
Read data from the binary file.
Matrix is stored in the format: NNZ N M [rows] [columns] [values]
Referenced by main().
void read_matrix_from_bin_Elias_format | ( | const char * | filename, | |
std::vector< int > & | I, | |||
std::vector< int > & | J, | |||
std::vector< real > & | val | |||
) |
Read data from the binary file.
Matrix is stored in the format: row column value row column value row column value ...
void write_matrix_to_bin | ( | const char * | filename, | |
const std::vector< int > & | I, | |||
const std::vector< int > & | J, | |||
const std::vector< real > & | val, | |||
const int & | N | |||
) |
Referenced by GetDensFromFock::get_dens_from_fock_sparse(), and main().