static functions to read and write matrix classes with iostream.
More...
#include <m_matrix_stream_io.h>
static functions to read and write matrix classes with iostream.
void Matrix_stream_io::read_int_matrix |
( |
std::istream & |
in, |
|
|
Int_matrix & |
imat |
|
) |
| |
|
static |
Reads an integer matrix from an istream using binary format.
Reads an integer matrix from an istream using binary format. The format is: num_rows,num_cols followed by the matrix elements
- Parameters
-
in | the istream to read from |
imat | the matrix will be stored here |
void Matrix_stream_io::read_matrix |
( |
std::istream & |
in, |
|
|
Matrix & |
imat |
|
) |
| |
|
static |
Reads a matrix from an istream using binary format.
Reads a matrix from an istream using binary format. The format is: num_rows,num_cols followed by the matrix elements
- Parameters
-
in | the istream to read from |
imat | the matrix will be stored here |
void Matrix_stream_io::write_int_matrix |
( |
std::ostream & |
out, |
|
|
const Int_matrix & |
imat |
|
) |
| |
|
static |
Writes an integer matrix to an ostream using binary format.
Writes an integer matrix to an ostream using binary format. The format is: num_rows,num_cols followed by the matrix elements
- Parameters
-
out | the ostream to write to |
imat | the matrix to write |
void Matrix_stream_io::write_matrix |
( |
std::ostream & |
out, |
|
|
const Matrix & |
imat |
|
) |
| |
|
static |
Writes a matrix to an ostream using binary format.
Writes a matrix to an ostream using binary format. The format is: num_rows,num_cols followed by the matrix elements
- Parameters
-
out | the ostream to write to |
imat | the matrix to write |
The documentation for this class was generated from the following files: