Skip to content
Snippets Groups Projects
Commit 2ade7530 authored by Peter Bastian's avatar Peter Bastian
Browse files

operator<< für die Vec<dim,T> Klasse

[[Imported from SVN: r662]]
parent a7376565
No related branches found
No related tags found
No related merge requests found
......@@ -148,6 +148,17 @@ namespace Dune {
Vec<dim,T> z; for (int i=0; i<dim; i++) z(i) = -b(i);return z;
}
// Ausgabe
template <int dim, class T>
std::ostream& operator<< (std::ostream& s, const Vec<dim,T>& a)
{
s << "Vec<" << dim << "> = [";
for (int i=0; i<dim; i++)
s << " " << a(i);
s << " ]";
return s;
}
/** @} */
} // end namespace Dune
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment