src/biu/Matrix.hh File Reference
#include <iostream>
#include <vector>
#include <cassert>
#include "biu/assertbiu.hh"
#include "biu/Matrix.icc"
Include dependency graph for Matrix.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Namespaces | |
| namespace | biu |
Data Structures | |
| class | biu::Matrix< T > |
Functions | |
| template<class T> | |
| std::ostream & | operator<< (std::ostream &out, const biu::Matrix< T > &m) |
| template<class T> | |
| std::istream & | operator>> (std::istream &in, biu::Matrix< T > &m) |
Function Documentation
template<class T>
| std::ostream& operator<< | ( | std::ostream & | out, | |
| const biu::Matrix< T > & | m | |||
| ) | [inline] |
Prints the matrix elements black (' ') separated and linewise to stream.
- Parameters:
-
out the output stream to write to m the matrix to print
- Returns:
- the changed output stream out
template<class T>
| std::istream& operator>> | ( | std::istream & | in, | |
| biu::Matrix< T > & | m | |||
| ) | [inline] |
Reads (m.rows*m.cols) matrix elements from stream assuming that they are whitespace separated.
- Parameters:
-
in the output stream to write to m the matrix to print
- Returns:
- the changed output stream out
