|
ergo
|
File containing declaration of functions for reading/writing sparse matrices from/to binary files. More...
#include "realtype.h"#include <iostream>#include <fstream>#include <cstring>#include <assert.h>#include <vector>#include <stdexcept>Go to the source code of this file.
Functions | |
| void | write_matrix_to_bin (const char *filename, const vector< int > &I, const vector< int > &J, const 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, vector< int > &J, vector< real > &val, int &N, int &M) |
File containing declaration of functions for reading/writing sparse matrices from/to binary files.
| void read_matrix_from_bin | ( | const char * | filename, |
| std::vector< int > & | I, | ||
| vector< int > & | J, | ||
| vector< real > & | val, | ||
| int & | N, | ||
| int & | M ) |
| 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 vector< int > & | I, | ||
| const vector< int > & | J, | ||
| const vector< real > & | val, | ||
| const int & | N ) |