Matrices  1.0
Basic matrix library
 All Classes Files Functions Variables Friends
Classes | Macros | Functions
Matrix.h File Reference

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.
 

Detailed Description

Matrix class header file.

Function Documentation

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.

Parameters
outputStreamthe stream to send the Matrix to.
matthe matrix to send to the stream.
Returns
The updated output 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.

Parameters
inputStreamthe stream to read the Matrix from.
matthe matrix to read from the stream.
Returns
The updated input stream.