Matrix class header file. More...
#include <vector>
#include <iostream>
Go to the source code of this file.
Classes | |
class | Matrix |
Basic class for matrices. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &outputStream, const Matrix &mat) |
Stream insertion operator. | |
std::istream & | operator>> (std::istream &inputStream, Matrix &mat) |
Stream extraction operator. | |
Matrix class header file.
std::ostream& operator<< | ( | std::ostream & | outputStream, |
const Matrix & | mat | ||
) |
Stream insertion operator.
Provides the ability to output Matrices to C++ streams, including std::cout
and filestreams
.
Note that the stream operators do not require special access to the Matrix internals, so are not members or friends.
outputStream | the stream to send the Matrix to. |
mat | the matrix to send to the stream. |
std::istream& operator>> | ( | std::istream & | inputStream, |
Matrix & | mat | ||
) |
Stream extraction operator.
Provides the ability to read Matrices from C++ streams, including std::cin
and filestreams
. The size of the Matrix determines how much data is read from the stream.
Note that the stream operators do not require special access to the Matrix internals, so are not members or friends.
inputStream | the stream to read the Matrix from. |
mat | the matrix to read from the stream. |