KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
m_matrix_stream_io.h
Go to the documentation of this file.
1 /* ======================================================================== *
2  | |
3  | Copyright (c) 2007-2010, by members of University of Arizona Computer |
4  | Vision group (the authors) including |
5  | Luca Del Pero |
6  | |
7  | For use outside the University of Arizona Computer Vision group please |
8  | contact Kobus Barnard. |
9  | |
10  * ======================================================================== */
11 
12 /* $Id: m_matrix_stream_io.h 18278 2014-11-25 01:42:10Z ksimek $ */
13 
24 #ifndef MATRIX_STREAM_IO_H_INCLUDED
25 #define MATRIX_STREAM_IO_H_INCLUDED
26 
27 #include <iosfwd>
28 
29 namespace kjb {
30 
31 class Matrix;
32 class Int_matrix;
33 
39 {
40 public:
41 
43  static void write_int_matrix(std::ostream& out, const Int_matrix & imat);
44 
46  static void read_int_matrix(std::istream& in, Int_matrix & imat);
47 
49  static void write_matrix(std::ostream& out, const Matrix & imat);
50 
52  static void read_matrix(std::istream& in, Matrix & imat);
53 
54 };
55 
56 }
57 
58 #endif
59 
60 
This class implements matrices, in the linear-algebra sense, restricted to integer-valued elements...
Definition: l_int_matrix.h:71
static functions to read and write matrix classes with iostream.
Definition: m_matrix_stream_io.h:38
static void write_int_matrix(std::ostream &out, const Int_matrix &imat)
Writes an integer matrix to an ostream using binary format.
Definition: m_matrix_stream_io.cpp:39
static void read_int_matrix(std::istream &in, Int_matrix &imat)
Reads an integer matrix from an istream using binary format.
Definition: m_matrix_stream_io.cpp:88
static void read_matrix(std::istream &in, Matrix &imat)
Reads a matrix from an istream using binary format.
Definition: m_matrix_stream_io.cpp:189
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
static void write_matrix(std::ostream &out, const Matrix &imat)
Writes a matrix to an ostream using binary format.
Definition: m_matrix_stream_io.cpp:143