OGS
Stream.h File Reference

Detailed Description

Helper tools for debugging.

Author
Norihiro Watanabe
Date
2014-03-07

Definition in file Stream.h.

#include <algorithm>
#include <iterator>
#include <ostream>
#include <vector>
Include dependency graph for Stream.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
std::ostream & operator<< (std::ostream &os, const std::vector< T > &v)
 

Function Documentation

◆ operator<<()

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
const std::vector< T > &  v 
)

Definition at line 23 of file Stream.h.

24 {
25  std::copy(v.begin(), v.end(), std::ostream_iterator<T>(os, " "));
26  os << "\n";
27  return os;
28 }
void copy(PETScVector const &x, PETScVector &y)
Definition: LinAlg.cpp:37

References MathLib::LinAlg::copy().