DOCI-Exact  1.0
SparseMatrix_CRS.h File Reference
#include <iostream>
#include <vector>
#include "helpers.h"
+ Include dependency graph for SparseMatrix_CRS.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  helpers::SparseMatrix_CRS
 

Namespaces

 helpers
 

Functions

std::ostream & operator<< (std::ostream &output, helpers::SparseMatrix_CRS &matrix_p)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  output,
helpers::SparseMatrix_CRS matrix_p 
)

Output stream operator overloaded, the usage is simple, if you want to print to a file, make an ifstream object and type:

object << matrix << endl;

For output onto the screen type:

cout << matrix << endl;

Parameters
outputThe stream to which you are writing (e.g. cout)
matrix_pde SparseMatrix_CRS you want to print

Print sparse matrix to output

Parameters
outputthe ostream to print to
matrix_pthe matrix to print
Returns
the filled ostream (with the matrix)

Print sparse matrix to output

Parameters
outputthe ostream to print to
matrix_pthe matrix to print
Returns
the filled ostream (with the matrix)

Definition at line 120 of file SparseMatrix_CRS.cpp.