KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
kjb::Matrix_stream_io Class Reference

static functions to read and write matrix classes with iostream. More...

#include <m_matrix_stream_io.h>

Static Public Member Functions

static void write_int_matrix (std::ostream &out, const Int_matrix &imat)
 Writes an integer matrix to an ostream using binary format. More...
 
static void read_int_matrix (std::istream &in, Int_matrix &imat)
 Reads an integer matrix from an istream using binary format. More...
 
static void write_matrix (std::ostream &out, const Matrix &imat)
 Writes a matrix to an ostream using binary format. More...
 
static void read_matrix (std::istream &in, Matrix &imat)
 Reads a matrix from an istream using binary format. More...
 

Detailed Description

static functions to read and write matrix classes with iostream.

Member Function Documentation

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
inthe istream to read from
imatthe 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
inthe istream to read from
imatthe 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
outthe ostream to write to
imatthe 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
outthe ostream to write to
imatthe matrix to write

The documentation for this class was generated from the following files: